Split your closed trades by one dimension
https://app.skylit.ai/api/nexus/v1/journal/breakdownClosed trades in range, split along by. Only slices with trades come back.
bestandworstare the slices with the highest and lowestavgPnlamong those with at leastminSampleForVerdict(5) measured trades, and are left out when none qualifies.
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).mainagentrangestringdefault30dHow far back, in New York time. Left out,
30d.7d30d90dytdallbystringdefaultdurationThe dimension. Left out,
duration.sessionis when the trade was opened,weekdaythe day it was closed,playbookthe setup you tagged it with.durationsessionweekdaydirectiontickerplaybook
Responses
- 200
The slices.
- 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
dataobjectrangestringbystringbucketsobject[]bestobjectworstobjectminSampleForVerdictinteger
metaobjectWhich account was read.
accountstringmainagentportstring | nulluuidAlways
nullfor now.
Last updated