Your closed and settled spreads
https://app.skylit.ai/api/nexus/v1/spreads/historyEvery spread you closed or that settled at expiry, newest closed first: each leg's open and close price, the realized P&L in dollars and as a percent, why it closed (MEMBER you closed it, DESK the desk closed it for you, EXPIRY it settled) and when. Main account only, as above. Your history is yours to read whenever spreads are open or not.
curl -s "https://app.skylit.ai/api/nexus/v1/spreads/history?limit=50&offset=0" \
-H "Authorization: Bearer $SKYLIT_API_KEY"
Authorization
Authorization: Bearer <your API key>Required. A missing header returns 401; an invalid, revoked or expired key returns 403.
Query parameters
limitintegerdefault50min 1 · max 200How many to return, 1 to 200 (more is read as 200).
offsetintegerdefault0min 0How many to skip first.
accountstringmainor left out. Spreads are on your main account only.main
Responses
- 200
Your closed and settled spreads, newest closed first.
- 400
bad_request: limit or offset out of range. - 401
Missing or invalid key.
- 422
port_unsupported: spreads are on your main account only. - 503
unavailable: spreads are not available on this server right now.
Response fields
dataobject[]requiredspreadIdstringuuidaccountstringmainstrategystringunderlyingstringnetEffectstringDEBITCREDITstatusstringEXPIREDsettled at expiry.CLOSEDEXPIREDquantityintegeropenPricenumber | nullclosePricenumber | nullcloseEffectstringDEBITCREDITrealizedPnlnumber | nullrealizedPnlPercentnumber | nullRealized P&L as a percent of what the spread was opened for: the debit you paid, or the credit you took in. A credit spread that loses more than its credit reads below -100. Null for a spread whose legs can open for a debit or a credit (a broken wing butterfly, a condor with uneven wings): dollars only.
closeReasonstringMEMBERDESKEXPIRYopenedAtstringdate-timeclosedAtstringdate-timelegsobject[]
metaobjectrequiredtotalintegerEvery row there is, across all pages.
limitintegeroffsetinteger
Last updated