Read a month of days
https://app.skylit.ai/api/nexus/v1/journal/calendarOne month, in New York time: a row for each day that closed a trade, and the month's totals.
- A day or a month with nothing measured has
realizedPnl: null, never0. A day with0 < measuredCount < tradeCountis a partial sum. grossProfit,grossLoss,avgWinandavgLosscome from the trades, soprofitFactoris the trade figure.bestDayandworstDayare among measured days only, and left out when none was measured.
Authorization
Authorization: Bearer <your API key>Required. A missing header returns 401; an invalid, revoked or expired key returns 403.
Query parameters
accountstringmain(your own simulated wallet, the default) oragent(your bot's).mainagentmonthstringYYYY-MM. Left out, the month in progress.
Responses
- 200
The month.
- 400
Code:
bad_request.account,range,byormonthisn't one of the allowed values, oraccount=mainwas sent toagent/edge. The message says which. - 401
No key, or a key that isn't valid. Codes:
missing_api_key,invalid_api_key. - 403
The key works but this can't be read. Codes:
feature_disabled(you sentport: ports aren't available yet, so leave it out),account_suspended,nexus_access_denied. - 404
Code:
user_not_found. This Skylit account hasn't used Nexus yet, so it has no journal. - 429
Over a rate limit. Wait
Retry-Afterseconds, then retry. Codes:rate_limited, andstream_limit_reached(too many live streams open: 3 per key, 6 per account). - 500
Something went wrong on our side. If you sent a
clientOrderId, retry with the same one. Code:internal_error.
Response fields
dataobjectmonthstringtimezonestringrealizedPnlnumber | nulltradeCountintegermeasuredCountintegerwinsintegerlossesintegerbreakevenintegerwinRatenumbergreenDaysintegerredDaysintegerflatDaysintegerunmeasuredDaysintegergrossProfitnumbergrossLossnumberprofitFactornumberavgWinnumberavgLossnumberriskRewardnumberAverage win over average loss.
0when nothing was lost.bestDayobjectOne day in New York time.
realizedPnlis over measured trades only, andnullwhen none was measured.worstDayobjectOne day in New York time.
realizedPnlis over measured trades only, andnullwhen none was measured.daysobject[]
metaobjectWhich account was read.
accountstringmainagentportstring | nulluuidAlways
nullfor now.
Last updated