API Documentation
Last updated
Was this helpful?
Was this helpful?
"You're in."// If your API Key is invalid.
"Application API Key is invalid."
// If your API Key is valid but User Token is invalid.
"Not a valid user token.[
{
"underlying": "XYZ",
"id": 1,
"strategy": "Strangle (Short)",
"strikes": "100/105",
"current_expiration_date": "2020-01-01",
"notes": "string or null",
"original_basis": -1.0,
"current_basis": -1.0,
"amount": 100.00,
"realized_pl": -2.0,
"is_open": true,
"account": {
"id": 1,
"name": "string"
},
"quantity": -1,
"decimal_places": 2,
"group_tags": [
{
"id": 1,
"name": "string"
},
],
"legs": [
{
"id": 1,
"symbol": "XYZ_010120P100",
"quantity": -1.0,
"expiration_date": "2020-01-01",
"original_basis": 0.50,
"current_basis": 0.50,
"strike": 100,
"amount": 50.0,
"realized_pl": -1.0,
"transactions": [
{
"id": 1,
"entry_date": "2019-12-01T19:24:40.000Z",
"quantity": -1.0,
"price": 0.50,
"amount": 50.0,
"order_action": "SELL_TO_OPEN",
"instrument": "PUT",
"commission_and_fees": -1.0,
"created_at": "2019-12-02T19:24:40.000Z"
},
]
},
]
},
][
{
"underlying": "string",
"id": 1,
"strategy": "string",
"entry_date": "2019-12-02T19:24:40.000Z",
"close_date": "2019-12-03T19:24:40.000Z",
"original_expiration_date": "2020-01-01",
"original_dte": 30,
"original_cost": -10.0,
"days_in_trade": 1,
"notes": "string or null",
"realized_pl": 1.0,
"fees": -1.0,
"is_open": false,
"account": {
"id": 1,
"name": "string"
},
"decimal_places": 2,
"group_tags": [
{
"id": 1,
"name": "string"
},
],
"num_transactions": 2,
"dividends": 0.00
}
]