Read your journal's headline figures
https://app.skylit.ai/api/nexus/v1/journal/statsThe figures the Journal shows first, over closed trades in range: trades, win rate, net P&L, profit factor, your best and worst trade, and consistency.
measuredTradesis how many trades carry a realized P&L.netPnl: 0withmeasuredTrades: 0means nothing was measured, not a breakeven.winRateleaves breakeven trades out.profitFactoris0when nothing was lost, andconsistencyPercentis0when nothing was won: neither is a score.metasays which account was read.
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.7d30d90dytdall
Responses
- 200
The figures.
- 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
dataobjectrangestringtradesintegercontractsintegermeasuredTradesintegerTrades that carry a realized P&L. Every money figure is over these only.
winsintegerlossesintegerbreakevenintegerwinRatenumberWins over wins plus losses, as a percent.
netPnlnumberavgWinnumberavgLossnumberPer losing trade, positive.
profitFactornumberGross profit over gross loss.
0when nothing was lost.bestTradeobjectworstTradeobjectconsistencyPercentnumberYour biggest green day as a share of everything won. Lower is steadier.
0when nothing was won.biggestDayobjectOne day in New York time.
realizedPnlis over measured trades only, andnullwhen none was measured.activeDaysintegergreenDaysintegerredDaysinteger
metaobjectWhich account was read.
accountstringmainagentportstring | nulluuidAlways
nullfor now.
Last updated