Read your bot's Edge
https://app.skylit.ai/api/nexus/v1/agent/edgeYour bot's Edge (its average R per position, after fees) and Proven Edge (the lowest that average is likely to be, at 80% confidence), worked out the same way as your rank's, over your bot's own trades. Private to you: it's never written to a rank, a leaderboard, a season or your profile.
- Shown while Skylit's ranks are on, as they are for every member. If they're ever switched off, this answers
200withdata{"enabled": false}and no figures. - Leave
accountandportout for your Bot account, or send?port=for Bot or one extra port. Main, by its port oraccount=main, answers400 bad_request: your own Edge is your rank. - Under
minPositionscounted positions,edgeisnullandreasonisnot_enough_positions. Never zeros. portin the answer is the extra port read, ornullfor Bot.
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.
Responses
- 200
The Edge, or why there isn't one yet.
- 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. - 503
Try again in a moment (honour
Retry-Afterwhen it's sent). Codes:stale_quote(the quote, or a stock's last trade, is more than 15 seconds old, so nothing filled),no_live_price,rules_pending,unavailable,auth_unavailable,access_check_unavailable,api_keys_unavailable,trades_api_disabled,stream_unavailable(the live stream isn't on, or the server is restarting: try again shortly, or poll the reads).
Response fields
dataobjectportstring | nulluuidThe extra port read, or
nullfor Bot.edgeobject | nullnullwhen there isn't enough to show;reasonsays why.reasonstring | nullnot_enough_positionsnullpositionsintegerPositions in the window, scratches included.
countedPositionsintegerPositions that count (not scratches).
minPositionsintegerwindowDaysinteger
metaobjectWhich account and port were read.
accountstringmainagentportstring | nulluuidThe port you sent, or
null.
Last updated