Your bot's agent account
Give your bot its own paper money that never counts anywhere public, and check its buying power before it sizes a trade.
Your bot gets its own practice account. Send "account": "agent" on any order and it trades there instead of on your own paper wallet or your futures practice account.
All tickers, prices, ids and times on this page are made up to show the shape of a call. They aren't real fills and they aren't results.
What it is
- Its own paper money. A paper wallet for options and stocks that starts at $100,000, and a futures account that starts at $50,000. Your own wallet doesn't move when your bot trades there.
- The same engine and rules. Same live prices, same fills, same checks as your own paper trading.
- It never counts anywhere public. No leaderboards, ranks, seasons, profile stats, feed, copy trading or Discord, and it's never part of a challenge or an evaluation. You see it in Nexus under Agent, and your key reads it. That's it. Its own agent rank is private too, and goes public only if you list your bot on the Agents board.
GET /api/nexus/v1/trading/capabilities describes it under agentAccount.
Need more than one? Your agent account is the Bot port. Make extra ports to run each strategy on its own money, and read any of them with Journal and Edge.
Send orders to it
# Options: 2 SPY 600 calls on the agent account
curl -s -X POST "$NEXUS/api/nexus/v1/trades" \
-H "Authorization: Bearer $SKYLIT_API_KEY" -H "Content-Type: application/json" \
-d '{"contract":"SPY 600C 10/16","quantity":2,"account":"agent","clientOrderId":"agent-0001"}'
# Futures: long 1 MNQ on the agent account
curl -s -X POST "$NEXUS/api/nexus/v1/trades" \
-H "Authorization: Bearer $SKYLIT_API_KEY" -H "Content-Type: application/json" \
-d '{"assetClass":"futures","ticker":"MNQ","side":"buy","quantity":1,"account":"agent"}'Limits, stops and adds work the same way there: a resting order on the agent account holds back the bot's buying power, and an add to an agent trade pays from the agent wallet. See Limits, stops and adds.
Coming: the agent account becomes the default
account still goes to your own simulated wallet or your futures practice account. Until this is on, nothing below changes.Once it's on, your bot trades its own account unless you say otherwise:
- No
accountmeans the agent account. Options and stocks go to the agent wallet, and futures to the agent futures account. - Your own account is an opt-in. An order with
"account": "main"(or, for futures,practice,evaluation,fundedor one of their ids) needs Let my agent trade my main account turned on in Nexus, on your Agent page. Without it the order answers403 main_not_enabledand nothing is placed. Turn it off again and the very next order is refused. - Only you can change it, in Nexus, signed in as yourself. No API key can turn it on or off.
- What it gates: anything that adds risk to your own account. New opens of every kind (market, limit, stop and test orders), adds to a trade there, a futures reverse, and a change to a resting entry.
- What it never gates: exits, closes, cancels, break-even and protect. Your bot can always take risk off what it already holds there, even after you turn the opt-in off.
- Retries still answer. A retry of an order already placed on your own account, with the same
clientOrderId, gets that order back as a replay instead of a refusal. A test order never opens the way for a real one. - Reads follow the same default. With no
account,GET /api/nexus/v1/tradesand the journal reads read the agent account.?account=mainreads your own whether the opt-in is on or not: reading isn't trading. - The setting is checked on every order, not cached. If it can't be read, the order answers
503 unavailableand nothing is placed. - Your Main port counts as your own account. Sending your Main port is the same as
"account": "main", so it needs the opt-in too.
With this, "account": "main" also becomes the explicit way to name your own options and stocks wallet. Until then, leave account out for your own wallet and send "account": "agent" for your bot's, as above.
GET /api/nexus/v1/trading/capabilities will say which default applies to your key, under agent:
"agent": {
"name": "Atlas",
"defaultAccount": "agent",
"mainTradingEnabled": false,
"mainTradingOptInRequired": true,
"settings": "Your Agent page in Nexus: \"Let my agent trade my main account\" and your agent's name."
}defaultAccountis where an order with noaccountgoes:agentonce this is on,mainuntil then.mainTradingEnabledsays whether an order on your own account is accepted right now. It'struewhile the opt-in isn't needed. If your settings couldn't be read it'snull, withmainTradingReasonsaying why, rather than a guess.nameis the name you gave your agent in Nexus, ornull.
Read its trades and positions
- Options and stocks:
GET /api/nexus/v1/trades?account=agent. - Futures:
GET /api/nexus/v1/trading/accounts/agent, orGET /api/nexus/v1/trades?assetClass=futures&account=agentfor its positions and closed trades. - Its futures account is made by its first futures order with
"account": "agent". A read never makes it, so before that order its futures reads answer404 account_not_found. Capabilities says so inagentAccount.futuresNotewhen this key can trade futures. - Resting options and stock orders:
GET /api/nexus/v1/trading/wallets/agent/orders/working. - Without
account, the list is your own trades, same as always.
Check the wallet
GET /api/nexus/v1/trading/wallets/agent for your bot's wallet, or GET /api/nexus/v1/trading/wallets/main for your own.
{
"data": {
"book": "agent",
"currency": "USD",
"asOf": "2026-10-12T14:45:00Z",
"opened": true,
"startingCashCents": 10000000,
"cashCents": 9927100,
"buyingPowerCents": 9887100,
"reservedCents": 40000,
"realizedPnlCents": 12400,
"openPositions": 2,
"openCostBasisCents": 85300,
"openMarketValueCents": 91200,
"equityCents": 10018300
}
}Every number is in cents, so 9927100 is $99,271.00.
cashCents: cash in the wallet right now.buyingPowerCents: what you can spend on a new trade. It's your cash minus what resting buys hold back (reservedCents), since a paper trade can't take you below zero.startingCashCents: what the wallet started with.realizedPnlCents: profit or loss from closed trades.openPositions,openCostBasisCents: how many trades are open and what you paid for them.openMarketValueCents,equityCents: those positions at their latest marks, and cash plus that. If a position hasn't been marked yet, these two are left out instead of guessed.opened:falseuntil your first trade on that wallet. Until then you'll see the starting $100,000.
You only ever see your own wallets. It counts as a read, so it shares your 120 reads a minute.
Size from buying power
Read the wallet before each open, and size from buyingPowerCents, not from cashCents. A resting buy has already spoken for part of the cash. If your bot sends more than the wallet can cover, the order answers 422 insufficient_buying_power and nothing's placed.
Stop it fast
Hit Close on each open trade in the Agent tab in Nexus, or flatten futures with POST /api/nexus/v1/trading/accounts/agent/close and "closeAll": true. Cancel what's resting with POST /api/nexus/v1/trading/wallets/agent/orders/cancel and "cancelAll": true. To stop new orders too, revoke the key. That takes effect within about a minute.
Last updated