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 and port were read.- Closed Simulated spreads on your Main account count here, one closed position per spread: its close time is its exit and its total realized P&L its result. A spread shows dollars only: when it is
bestTradeorworstTradeit carrieskind: "spread"and nopnlPercent. The Bot and your ports never hold a spread.
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).mainagentportstringuuidOne of your ports (see Ports in the Nexus Trades guide), by id.
account, if you send it too, must agree:agent(or left out) for Bot and an extra port, left out for Main. Left out,accountalone decides.rangestringdefault30dHow 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,accountdoesn't agree withport, or Main was 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 done. Codes:
feature_disabled(ports are switched off on the server: leaveportout),account_suspended,nexus_access_denied. - 404
Codes:
port_not_found(no live port with that id on your account),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 and port were read.
accountstringmainagentportstring | nulluuidThe port you sent, or
null.
Last updated