API reference
Every public route of the Orblivion API, with its authentication, its fields, its answers and its limits. The base URL is https://api.orblivion.com, and every path below starts with /api/v1/.
Overview#
| Route | Auth | What it does |
|---|---|---|
| Server | ||
GET /api/v1/config | none | Chain, contracts, tokens, fees, the disclosure table, limits and the session co-signer: what the SDKs pin and check. |
GET /api/v1/health | none | Overall ok, degraded or down (503). |
GET /api/v1/stats | none | Live numbers for a status page: the latest block, the core assets' prices and routes, latencies, the fee and how many tokens are tradable. One cached answer. |
GET /api/v1/treasury | none | The treasury's public record: each weekly split of the fees the platform wallet received, the transfers that moved them, prize payouts, and the record's hash chain. |
| Sign-in and API keys | ||
POST /api/v1/auth/challenge | none | A one-time Sign-In with Ethereum message for a wallet. |
POST /api/v1/auth/verify | none | The wallet's signature of the challenge (EVM or Solana), for an API key to its account. |
GET /api/v1/auth/me | API key | The key's wallet, account (its owner and wallets), expiry and Orbio agent. |
GET /api/v1/auth/risk-ack | API key | The one-time risk acknowledgement the account's owner key signs before accepting BEYOND_DEFAULTS. |
POST /api/v1/auth/risk-ack | API key and the owner key's signature | Store the owner key's signature of the risk acknowledgement. |
POST /api/v1/auth/revoke | API key | Revoke the key that makes the request, at once. |
POST /api/v1/auth/revoke-all | wallet signature | Revoke every API key of a wallet's account, with a fresh wallet signature and no key. |
POST /api/v1/auth/link | API key and both wallets' signatures | Add the account's other wallet (EVM or Solana): each wallet signs its own text. |
POST /api/v1/auth/unlink | API key and one wallet's signature | Take the linked wallet out of the account; its keys stop at once. |
| Tokens | ||
GET /api/v1/tokens/<address> | API key | A token's record and disclosures, screened on demand. |
GET /api/v1/tokens | API key | Search the token registry. |
GET /api/v1/tokens/stats | API key | How many tokens the registry knows, by tier, kind and risk. |
| Trading | ||
POST /api/v1/live/prepare | API key (wallet) | Quote, check, build and simulate a trade in one call. The fast path. |
POST /api/v1/live/quote | API key | Every route Orblivion can find, ranked, with disclosures. Never refuses for risk. |
POST /api/v1/live/build | API key (wallet) | The unsigned transactions for a wallet, without the simulation. |
POST /api/v1/live/simulate | API key | Build and simulate against live chain state, for a wallet or a synthetic one. |
POST /api/v1/live/submit | API key (wallet) | Relay signed transactions that Orblivion built for this key. |
POST /api/v1/live/fast | API key (wallet) | Fast mode: a major-pair trade the SDK built and signed on a pinned route, checked and relayed in one call. |
GET /api/v1/live/fast/terms | API key (wallet) | What an SDK keeps warm for fast mode: this wallet's fee tier, the pinned routes' hash, limits and base fee. |
POST /api/v1/live/revoke | API key (wallet) | The transactions that take a wallet's token approvals back. |
| Sessions | ||
POST /api/v1/live/session/grant | API key (wallet) | Start a session (what the main key signs), then switch it on with the signatures. |
POST /api/v1/live/session/trade | API key (wallet or executor) | One co-signed session trade for the executor to send. |
POST /api/v1/live/session/setup | API key (wallet) | An active session's setup, built again for its owner to send. |
POST /api/v1/live/session/top-up | API key (wallet) | Set an active session's ERC-20 budget back to at most one day's cap: the approvals to send. |
POST /api/v1/live/session/revoke | API key (wallet) | Stop co-signing now, and get the on-chain revocation to send. |
POST /api/v1/live/session/check | API key (wallet) | Read whether the session was ended on chain from the wallet, and mark it revoked if so. |
GET /api/v1/live/account | API key (wallet) | The signed-in wallet's agent account: its address, whether it is created, owner access, what it holds. |
POST /api/v1/live/account/owner-access | API key (wallet) | Keep the wallet's signature on its agent account's owner access. |
POST /api/v1/live/account/fund | API key (wallet) | The transaction that moves funds from the wallet into its agent account. |
POST /api/v1/live/account/withdraw | API key (wallet) | One owner batch that sends what the agent account holds back to the wallet. |
| Solana | ||
POST /api/v1/solana/build | API key | An unsigned swap for the owner's own Solana wallet, to check and sign. 503 SOLANA_OFF where this server doesn't run live Solana. |
POST /api/v1/solana/send | API key | Land a signed Solana swap that Orblivion built for this key. |
| Hosted agents | ||
POST /api/v1/hosted | API key (wallet) | Create a hosted agent (paper or live). |
GET /api/v1/hosted | API key (wallet) | The wallet's hosted agents. |
GET /api/v1/hosted/<id> | API key (owner) | One agent, in detail. |
POST /api/v1/hosted/<id>/update | API key (owner) | Change an agent's settings, terms or live switch. |
POST /api/v1/hosted/<id>/session | API key (owner) | Attach a session granted to the agent's executor. |
POST /api/v1/hosted/<id>/pause | API key (owner) | Pause the agent. |
POST /api/v1/hosted/<id>/resume | API key (owner) | Resume the agent. |
POST /api/v1/hosted/<id>/stop | API key (owner) | Stop the agent for good and revoke its session. |
POST /api/v1/hosted/<id>/delete | API key (owner) | Delete a stopped agent. |
GET /api/v1/hosted/<id>/logs | API key (owner) | The agent's log, newest first. |
GET /api/v1/hosted/<id>/portfolio | API key (owner) | Its value over time and its fills, for a chart. |
GET /api/v1/hosted/<id>/executor | API key (owner) | The executor's address, gas balance and attestation. |
POST /api/v1/hosted/<id>/rotate-executor | API key (owner) | Replace the agent's executor key. |
POST /api/v1/hosted/<id>/rotate-webhook-secret | API key (owner) | Replace the webhook signing secret. |
POST /api/v1/hosted/<id>/refund-gas | API key (owner) | A stopped agent's executor gas, back to the owner's own wallet. |
POST /api/v1/hosted/<id>/go-live | API key (owner) | A paper agent on several chains goes live on every chain, from the account's wallets. |
POST /api/v1/hosted/<id>/paper-copy | API key (owner) | Try on paper: a new paper agent with this agent's strategy, tokens and limits. |
POST /api/v1/hosted/<id>/budget | API key (owner) | A live Solana chain's weekly session budget, approved again by the owner's wallet. |
GET /api/v1/hosted/ai | API key | What an AI agent can be set up with: templates, models with prices and a per-tick estimate, and both funding sources for this wallet. |
GET /api/v1/hosted/solana/<mint> | API key | A Solana token's screen by its mint, for a paper agent on Solana: its risks and whether it can trade. 404 SOLANA_OFF where this server doesn't offer Solana agents. |
POST /api/v1/hosted/ai/connect | API key (wallet) | Start Sign in with Orbio for this wallet: Orbio's consent page for model calls only, back to this host's redirect page. |
POST /api/v1/hosted/ai/connect/claim | API key (wallet) | A tab signed in with the same wallet claims the sign-in a script started (its claim link), then checks it and opens Orbio. |
POST /api/v1/hosted/ai/connect/finish | API key (wallet) | Finish a sign-in with the code, state and issuer Orbio's redirect carried: the redirect page sends it. |
POST /api/v1/hosted/ai/connect/cancel | none | End an open sign-in that won't be finished (the redirect page sends it), so its code is worth nothing afterwards. |
POST /api/v1/hosted/ai/disconnect | API key (wallet) | Forget this wallet's Orbio sign-in and revoke it at Orbio. |
GET /api/v1/hosted/<id>/spend | API key (owner) | An AI agent's model calls (tokens, cost, outcome) and today's total against its budget. |
POST /api/v1/hosted/<id>/chat | API key (owner) | Talk to the agent: why it traded, held or paused, from its own log; an AI agent may propose a new strategy. |
POST /api/v1/hosted/<id>/strategy | API key (owner) | Confirm a proposed strategy: only an AI agent's strategy text changes. |
| Try an agent | ||
GET /api/v1/guest | none | Whether a visitor can try an AI agent with no wallet here now, and what it starts with. |
POST /api/v1/guest | none | Start a 24-hour paper AI agent with no wallet: a guest key that reads only that agent. |
POST /api/v1/guest/strategy | guest key | Change the trial agent's strategy. |
POST /api/v1/guest/claim | API key (wallet) | Make it real: move the trial agent to the key's wallet. |
| Rewind | ||
GET /api/v1/rewind | none | The team's three Rewind examples over the last recorded week, and whether new words can run now; with rule and end, a shared link's rule over its own week. |
POST /api/v1/rewind | none | A visitor's own words as a fixed rule, replayed over the last recorded week next to simply holding. |
| Your account | ||
GET /api/v1/me/trades | API key (wallet) | The key's own wallet's trades through Orblivion, newest first; refused calls with refused=1. |
GET /api/v1/me/portfolio | API key (wallet) | The wallet's balances at independent prices (unpriced tokens listed with their amount), its fee tier and the volume to the next. |
GET /api/v1/me/sessions | API key (wallet) | The wallet's active sessions and hosted agents in summary. |
| The league | ||
GET /api/v1/league | none | The current season and its countdown, the prize reserve and this season's estimated payout, and the latest seasons. |
GET /api/v1/league/standings | none | A season's standings: score, return, drawdown, trades, active days, and each entrant's eligibility rule by rule. |
GET /api/v1/league/seasons | none | Every season on record, with its winners, amounts and payout transactions. |
GET /api/v1/league/seasons/<n> | none | One season's record: final standings, winners, amounts, the reserve's ledger row, the stake withdrawal and the payout hashes. |
GET /api/v1/league/reserve | none | The prize reserve's ledger, season by season, and this season's estimate. |
GET /api/v1/league/me | API key (wallet) | The wallet's league entries. |
POST /api/v1/league/statement | API key (wallet) | The text an Orbio agent's owner signs to enter it through another wallet, or to confirm its eligibility for the prize league. |
POST /api/v1/league/enter | API key (wallet) | Enter the wallet's own agent account, or one of its hosted paper agents, from the moment of entry (the season under way). |
POST /api/v1/league/confirm | API key (wallet) | The owner's signed eligibility confirmation for a prize entry made without it: no prize until it is on file. |
POST /api/v1/league/leave | API key (wallet) | Leave the league, at once. |
| Live trades | ||
GET /api/v1/trades | none | Every trade Orblivion relayed and saw mined, and its hosted agents' Solana trades, newest first, with its transaction, minimum, what it received, Orblivion's fee and route, and each chain's counters since its first trade. One cached answer. |
GET /api/v1/activity | none | The same answer as GET /api/v1/trades, at its first name. Ad blockers block this path in browsers, so pages read /api/v1/trades. |
| Watch a live agent | ||
GET /api/v1/showcase | none | Orblivion's own hosted agents on show, in brief: id, name, wallet, mode, status and strategy. One cached answer; 404 when none is on show. |
GET /api/v1/showcase/<id> | none | One agent on show, read-only: its status and next check, its strategy's public settings, today's use of its limit, a trade in flight and its holdings at its last check. |
GET /api/v1/showcase/<id>/logs | none | Its checks (prices, decision and reason), orders step by step with their receipts, and holds by code, newest first. |
GET /api/v1/showcase/<id>/portfolio | none | Its value over time as its checks read it, with its trades as markers, for a chart. |
GET /api/v1/showcase/<id>/share | none | A page for sharing an agent on show: its meta tags give X a large image card of its result against holding. |
GET /api/v1/showcase/<id>/card.png | none | That card, a 1200x630 PNG: the agent's name and tags and its result against holding as of its last check. |
Requests and answers#
- Request bodies are JSON objects, at most 64 KB, sent with a
Content-Length(chunked bodies are refused with411). Answers are JSON withCache-Control: no-store. - Authenticated routes take
Authorization: Bearer <api key>(Authentication). - Token amounts are strings of the token's smallest unit; dollar amounts are numbers; times are unix seconds.
- Tokens are a core symbol or a
0xaddress, as on Tokens and risks. - Every quote, plan, simulation and session trade answers
risks,fee_bps,fee_class,fee_tier,fee_sideandfee_tokenat its top level. See Fees and gas.
Errors#
{"error": {"code": "RISK_NOT_ACCEPTED", "message": "...", "unaccepted": ["HONEYPOT"], "risks": [...]}}code is stable; message is for people and may change. Some errors carry more fields beside them (unaccepted, blocked, policy, diffs, checks, retry_after_s). Every code is on Errors.
Rate limits#
Limits are token buckets: a burst, then a steady rate. Past one, the answer is 429 RATE_LIMITED with a Retry-After header in seconds. The numbers can change; always honour Retry-After.
| What | Per | Burst, then |
|---|---|---|
config, health, stats, treasury (no key) | client address, and overall | 60, then 2 a second |
showcase and its routes (no key) | client address | 40, then 2 a second (as well as the row above) |
auth/challenge, auth/verify, auth/link, auth/unlink | client address, and overall | 10, then one every 10 seconds |
| Any request with an API key | key | 30, then 10 a second |
live/quote, live/build, live/simulate | key | 6, then one every 2 seconds |
live/prepare, live/revoke, live/session/* | key | 20, then 4 a second |
live/fast with its simulation (the default) or check_only | key | 20, then 4 a second (and the 30, then 10 a second of every key) |
tokens/<address> | key, and client address | 20 then one every 2 seconds; 40 then one a second |
tokens (search) | key, and client address | 30 then 2 a second; 40 then one a second |
hosted/* | client address, and key | 60 then 5 a second; 20 then 2 a second |
me/trades, me/sessions | key | 20, then 2 a second |
me/portfolio | key, and overall | 6, then one every 2 seconds; one answer per wallet is reused for 5 seconds |
| Failed authentications | client address | 20, then one every 5 seconds |
| Screening a token Orblivion hasn't seen | caller, and overall | its own budget: 429 with Retry-After: 60 |
Server#
GET/api/v1/config#
Auth: none. What the SDKs read once and hold every answer to. They pin the chain, the contracts, the token addresses, the co-signer and the disclosure contract, and refuse a server whose config differs (CONFIG_MISMATCH).
| Field | Meaning |
|---|---|
chain_id | 4663 |
version | the server's version |
auth | sign-in settings: challenge_ttl_s (300), key_ttl_s (2,592,000), domain, require_orbio_agent, key_prefix |
universal_router, permit2, multicall3 | contract addresses |
tokens | the core tokens: {symbol: {address, decimals, kind, native}} |
fee | the fee schedule: schedule (2), major_symbols, major_tiers ([{min_30d_volume_usd, bps}]), other_bps (50), max_bps (100) and the recipient, which the SDKs pin and hold the server to (CONFIG_MISMATCH); to_self_allowed, placeholder and how are information. Schedule 1's bps and default_bps are gone. See Fees and gas. |
risks | the disclosure table, {code: "severe" or "info"} |
high_price_impact_bps, price_impact_bps | 1000 and 300: where HIGH_PRICE_IMPACT and PRICE_IMPACT start |
limits | max_notional_usd, max_slippage_bps, default_slippage_bps, slippage_tolerance_by_size, max_vs_mid_bps, deadline_s, permit_trade_expiry_s, approval_modes, default_approval_budget_usd |
session | cosigner (address), delegation_manager, stateless_delegator, enforcers, leaf_ttl_s (120) |
agent_account | what an owner's agent account is built from: factory (MetaMask's SimpleFactory), implementation (HybridDeleGator), delegation_manager |
submit_enabled | whether POST /api/v1/live/submit relays on this server |
universe | how tokens by address are routed: hops, known hooks, tiers, the Pons curve's fee modes |
solana | browser_rpc_key: the key the agents page reads Solana with from the browser (a Helius key that works only from Orblivion's own pages), or null, when the page uses the public Solana RPC |
GET/api/v1/health#
Auth: none. {"status": "ok" | "degraded" | "down", "service", "version"}. The answer is 200 unless the service is down (503), so a monitor can read the status code alone. degraded means it answers but something it depends on is impaired.
GET/api/v1/stats#
Auth: none. No query. The live numbers the Orblivion home page shows, for a status page or a dashboard. It is one shared answer for every caller, rebuilt at most every 5 seconds from what the server already holds, so polling it costs nothing; poll it every few seconds at most. Any part the server can't read right now is null, and the answer is still 200.
| Field | Meaning |
|---|---|
status | ok, degraded or down, as health says it |
generated_at | when the answer was built (unix seconds); cached_s is how long ago that was |
block | number and age_s: the latest Robinhood Chain block the server has read, and how old that read was at generated_at (blocks come about every 0.1 s) |
prices | the price snapshot: its block, its age_s and ref_size_usd, the size its reference quotes are taken at (1,000) |
assets | each core asset (ETH, cbBTC, ORBIO, NVDA, SPY): symbol, kind (crypto or stock), mark (its reference price in USDG) and mark_source (chainlink or uniswap-v4-mid), mid (between the best buy and sell quotes), spread_bps, stale (true while its market is closed or its price is old), routes (how many routes are quoted), and buy and sell: the best quote each way at the reference size, {venue, fee, price, vs_mark_bps} (fee is the pool's fee tier; vs_mark_bps is how far the price is from the mark against the trader, negative when better), or null |
routes | the routes quoted per snapshot, all assets together |
latency_ms | ref_quotes (quoting every route of a snapshot), rpc (a block-number read) and sequencer (a TCP round trip from the server) |
relay | whether this server relays signed transactions (POST /api/v1/live/submit) |
fee_bps | Orblivion's fee rates in bps, for the home page: {major_max, major_min, other}: a major trade's posted rate (25), its lowest volume tier (10) and any other trade's rate (50). The schedule itself is fee in GET /api/v1/config (Fees and gas) |
tokens | tradable: how many of the tokens Orblivion has screened have a route it can trade through (the same count as tokens/stats), or null while they are first counted |
ai_pool | today's pool of Orblivion's own Orbio credits for AI agents: pool_usd, left_usd, and how many owners and agents it funded today (owners_funded, agents_funded); null while it isn't on. No owner or agent is named |
{"status": "ok", "generated_at": 1791300000.0, "cached_s": 1.2,
"block": {"number": 28412345, "age_s": 3.1}, "prices": {"block": 28412300, "age_s": 7.6, "ref_size_usd": 1000.0},
"assets": [{"symbol": "ETH", "kind": "crypto", "mark": 2000.12, "mark_source": "chainlink", "mid": 2000.4,
"spread_bps": 3.1, "stale": false, "routes": 2,
"buy": {"venue": "Uniswap v3", "fee": "0.01%", "price": 2000.71, "vs_mark_bps": 2.9},
"sell": {"venue": "Uniswap v3", "fee": "0.01%", "price": 2000.09, "vs_mark_bps": 0.2}}],
"routes": 9, "latency_ms": {"ref_quotes": 64.0, "rpc": 41.5, "sequencer": 12.3}, "relay": true,
"fee_bps": {"major_max": 25, "major_min": 10, "other": 50},
"tokens": {"tradable": 1840},
"ai_pool": {"pool_usd": 5.0, "left_usd": 3.62, "owners_funded": 4, "agents_funded": 6}}GET/api/v1/treasury#
Auth: none. No query. The treasury's public record: every fee Orblivion charges goes to the platform wallet (fee.recipient in GET /api/v1/config), and each week, for the week ending Monday 00:00 UTC, what came in goes to operations. Orblivion's trading fees all fund operations: the team earns from the layer only when people trade on it. Weeks ending on or before 19 October 2026 were split 50% operations, 40% buybacks and 10% treasury, and keep that split in the record. Each week is one row of the record, with its split and the transfers that moved it; a season's prize payout is a row too, and so is each day of the fee refund week. One shared answer, read again only when the record changes. The weekly splits name no trading wallet and no trade; a fee refund names the trading wallet it was sent to and the fee transactions it returns, since the refund is a public transfer to that wallet.
| Field | Meaning |
|---|---|
platform_wallet | the wallet every fee is paid to |
buckets | {operations, buybacks, treasury}, as the latest week names them: each bucket's wallet, or null while it isn't set up (its share is then booked and held in the platform wallet) or when the week's split gives it no share |
split_bps | the split new weeks take: {operations: 10000, buybacks: 0, treasury: 0} since the week starting 19 October 2026 |
split_history | every split there has been: from and until (unix seconds, null for open-ended) and its split_bps; a week that starts at or after from and ends at or before until takes it. {operations: 5000, buybacks: 4000, treasury: 1000} until 19 October 2026, then all to operations |
integrity | ok, rows, head (the latest row's hash), and broken_at and why when a row fails its checks: rows from there on aren't served |
weeks | the weekly splits, newest first (below) |
totals | per token, every recorded week added up: received, refunded (sent back in the fee refund week, so never split), outside (outside the ledger), trades, booked and moved per bucket, owed (booked to a bucket and still held) and held (dust or unpriced, waiting for a later week) |
prize_payouts | each season's payout, newest first: season (id, start, end), token, symbol, decimals, stake (gain, to_reserve: half of it, kept_staked: what the reserve's ceiling kept out of that half, staked for good), cap (usd, orbio_usd: ORBIO's mark at the season's end, orbio: the cap in atoms), reserve (before, added, ceiling: three caps, payout: a third of the reserve, at most the cap, paid, after), recipients (rank, agent, wallet, share_bps, amount, tx_hash), stake_withdrawal (tx_hash, amount, note), distributor, note; empty until the first payout |
fee_refunds | the fee refund week: start and end (unix seconds), deadline (every refund sent by then), cap_usd (per trading wallet, over the week), days (each recorded day, newest first; below), totals (per token: amount, refunds, fees), wallets and refunds (counts) |
explorer_tx | the explorer's transaction page prefix |
generated_at, cached_s | when the answer was built, and how long ago |
A week's row:
| Field | Meaning |
|---|---|
week | start and end (unix seconds, Monday 00:00 UTC), label, first_block and last_block |
status | moved (its transfers went out), booked (a wallet its split needs isn't set up yet: held in the platform wallet) or preview (a look at a week so far, never in the real record) |
split_bps | the week's own split: {operations: 5000, buybacks: 4000, treasury: 1000} for a week ending on or before 19 October 2026, {operations: 10000, buybacks: 0, treasury: 0} after |
tokens | per token: received and trades (fee payments), outside and outside_trades (fees no trade relayed through Orblivion explains, such as an SDK user's own transaction), refunded (only in a week of the fee refund week: what was sent back, taken out of the pool), carried_in (held from earlier weeks), pool, status (split, dust, unpriced or nothing), booked, moved, owed_in and owed_out per bucket, folded (only in the first week whose split gives buybacks and treasury no share: what earlier weeks booked to them and still held, moved to operations), carried_out, value_usd and mark (the independent price it was valued at) |
note | only on a week that folds: says what was folded and why |
transfers | bucket, to, token, symbol, decimals, amount, tx_hash, block: each one sent from the platform wallet, checked on chain before the row was written |
reconciliation | status (agrees, or accepted with the owner's reason in accepted), ledger, eth (trace, balance or ledger: how ETH fees, which leave no log, were read) and counts |
seq, prev_hash, hash, recorded_at | the row's place in the chain: hash is the SHA-256 of the row's JSON (keys sorted, no spaces, ASCII) without hash, and prev_hash is the previous row's |
A fee refund day's row (kind fee_refund, in fee_refunds.days):
| Field | Meaning |
|---|---|
day | start and end (unix seconds, 00:00 UTC), label, first_block and last_block |
status | refunded, or none when nothing was due that day |
cap_usd | the most each trading wallet is refunded over the week, in USD |
refunds | wallet (the trading wallet), token, symbol, decimals, amount, usd (its value when the trades were mined, counted against the wallet's cap), capped (only part was refunded: the wallet reached the cap), fees (each fee payment it returns: tx and amount), tx_hash and block of the refund, checked on chain before the row was written |
counts | fee payments of relayed trades that day (relayed), how many were refunded, and how many weren't and why: already (an earlier batch), team (Orblivion's own wallets), blocked (wallets that can't use Orblivion; a day recorded before 27 October 2026 holds this count under an older name, as the record's hashes keep it), refused (under the Terms of Use), capped, unpriced (held until valued), held (a difference being checked); outside: arrivals no relayed trade explains, never refunded |
reconciliation, seq, prev_hash, hash, recorded_at | as in a week's row |
Amounts are strings of each token's smallest unit. Every fee is counted three ways before anything moves: what reached the wallet on chain, the fee the server built for each trade, and each trade's receipt read again.
{"generated_at": 1793000000.0, "cached_s": 2.1, "platform_wallet": "0x…",
"buckets": {"operations": "0x…", "buybacks": null, "treasury": null},
"split_bps": {"operations": 10000, "buybacks": 0, "treasury": 0},
"split_history": [{"from": null, "until": 1792368000, "split_bps": {"operations": 5000, "buybacks": 4000, "treasury": 1000}},
{"from": 1792368000, "until": null, "split_bps": {"operations": 10000, "buybacks": 0, "treasury": 0}}],
"integrity": {"ok": true, "rows": 10, "head": "0x…", "broken_at": null, "why": null},
"weeks": [{"kind": "fee_split", "seq": 9, "status": "moved",
"week": {"start": 1792368000, "end": 1792972800, "label": "2026-10-19/2026-10-26",
"first_block": 92289001, "last_block": 98337000},
"split_bps": {"operations": 10000, "buybacks": 0, "treasury": 0},
"buckets": {"operations": "0x…", "buybacks": null, "treasury": null},
"note": "What earlier weeks booked to buybacks and treasury and still held is folded into operations: …",
"tokens": [{"token": "0x0000000000000000000000000000000000000000", "symbol": "ETH", "decimals": 18,
"received": "16375447803629", "trades": 12, "outside": "0", "outside_trades": 0,
"carried_in": "0", "pool": "16375447803629", "status": "split",
"booked": {"operations": "16375447803629", "buybacks": "0", "treasury": "0"},
"owed_in": {"operations": "13500000000000", "buybacks": "10800000000000", "treasury": "2700000000000"},
"folded": {"operations": "0", "buybacks": "10800000000000", "treasury": "2700000000000"},
"moved": {"operations": "43375447803629", "buybacks": "0", "treasury": "0"},
"owed_out": {"operations": "0", "buybacks": "0", "treasury": "0"},
"carried_out": "0", "value_usd": "0.04", "mark": "Chainlink ETH / USD"}],
"transfers": [{"bucket": "operations", "to": "0x…", "token": "0x0000000000000000000000000000000000000000",
"symbol": "ETH", "decimals": 18, "amount": "43375447803629", "tx_hash": "0x…", "block": 98400000}],
"reconciliation": {"status": "agrees", "ledger": true, "eth": "trace",
"counts": {"agrees": 12, "outside_ledger": 0, "differences": 0}, "accepted": null},
"prev_hash": "0x…", "hash": "0x…", "recorded_at": 1792980000}],
"totals": [{"token": "0x0000000000000000000000000000000000000000", "symbol": "ETH", "decimals": 18,
"received": "43375447803629", "outside": "0", "trades": 31, "held": "0",
"booked": {"operations": "29875447803629", "buybacks": "10800000000000", "treasury": "2700000000000"},
"moved": {"operations": "43375447803629", "buybacks": "0", "treasury": "0"},
"owed": {"operations": "0", "buybacks": "0", "treasury": "0"}}],
"prize_payouts": [],
"fee_refunds": {"start": 1791763200, "end": 1792368000, "deadline": 1792627200, "cap_usd": "100",
"days": [{"kind": "fee_refund", "seq": 1, "status": "refunded",
"day": {"start": 1791763200, "end": 1791849600, "label": "2026-10-12",
"first_block": 86241001, "last_block": 87080000},
"cap_usd": "100",
"refunds": [{"wallet": "0x…", "token": "0x0000000000000000000000000000000000000000",
"symbol": "ETH", "decimals": 18, "amount": "1085627054753", "usd": "0.00271407",
"capped": false, "fees": [{"tx": "0x…", "amount": "1085627054753"}],
"tx_hash": "0x…", "block": 87090000}],
"counts": {"relayed": 4, "refunded": 1, "already": 0, "team": 3, "blocked": 0,
"refused": 0, "capped": 0, "unpriced": 0, "held": 0, "outside": 0},
"reconciliation": {"status": "agrees", "ledger": true, "eth": "trace",
"counts": {"agrees": 4, "outside_ledger": 0, "differences": 0},
"accepted": null},
"prev_hash": "0x…", "hash": "0x…", "recorded_at": 1791860000}],
"totals": [{"token": "0x0000000000000000000000000000000000000000", "symbol": "ETH", "decimals": 18,
"amount": "1085627054753", "refunds": 1, "fees": 1}],
"wallets": 1, "refunds": 1},
"explorer_tx": "https://…/tx/"}Sign-in and API keys#
An account holds at most one EVM wallet and one Solana wallet. Either one signs in to it, and gets a key for the account: the key names the wallet that signed it in. The account's first wallet is its owner for good: its agents and league entries carry that address. Both wallets manage the account's agents; anything that moves a chain's funds (a session, a budget, a revoke, funding) still takes that chain's own wallet, signed in with its own key. Link a second wallet with POST /api/v1/auth/link.
POST/api/v1/auth/challenge#
Auth: none.
| Request | |
|---|---|
address | the wallet's 0x address, or a Solana address (base58, exactly as the wallet shows it: its letters' case matters) |
Answers the message to sign, with its family (evm or solana), nonce, domain, uri, chain_id, version, statement, issued_at and expires_at (five minutes later). For an EVM wallet the message is EIP-4361 ("Sign-In with Ethereum", chain_id 4663); for a Solana one it is CAIP-122 ("Sign In With Solana": "… wants you to sign in with your Solana account:", chain_id mainnet). Errors: 400 BAD_REQUEST (not an address), 503 AUTH_DOMAIN_UNSET, 503 SIGNIN_UNAVAILABLE (a Solana wallet, when this server can't sign one in right now).
POST/api/v1/auth/verify#
Auth: none.
| Request | |
|---|---|
address | the wallet |
signature | the wallet's personal_sign of the challenge's message: 0x and 130 hex digits; for a Solana wallet its Ed25519 signMessage of the message's UTF-8 bytes, 64 bytes in base58 or base64 |
nonce | optional: which open challenge was signed |
| Answer | |
|---|---|
api_key | the key, shown once: orbl_w_... |
key_id, expires_at | the key's id and expiry (30 days) |
wallet, family, account | the wallet that signed the key in, its family, and its account |
owner, addresses | the account's owner key (its first wallet) and its wallets: {"evm"?: "0x…", "solana"?: "…"} |
linked_at | {<address>: <unix seconds>}: when each linked address (not the owner key) joined the account |
orbio_agent | {agent_id, token, symbol, role, name} when the wallet is an Orbio agent's wallet or owner, else null |
orbio_check | ok, or why Orbio's agent list couldn't be read |
Errors: 401 CHALLENGE_EXPIRED (no open challenge: expired or used), 401 BAD_SIGNATURE, 403 NOT_ORBIO_AGENT (a server that signs in only Orbio agents), 503 ORBIO_UNAVAILABLE.
GET/api/v1/auth/me#
Auth: API key. Answers wallet, owner, addresses, linked_at, account, key_id, expires_at, orbio_agent, risk_ack. linked_at is {<address>: <unix seconds>}: when each address linked to the account (not its owner key) joined it, so either wallet can say so at sign-in. risk_ack is {version, signed}: the text's newest version, and whether the account's owner key has signed the risk acknowledgement, any version.
GET/api/v1/auth/risk-ack#
Auth: API key a wallet signed in. Your limits are your choice. Past one of Orblivion's recommended limits (see Past a recommended limit), a request, a live hosted agent or a session goes through only when its accept_risks names BEYOND_DEFAULTS, and naming it takes this acknowledgement first: signed once ever by the account's owner key, kept for good. A paper agent goes past them with neither (a paper agent's accept_risks may still name the code: it is kept, and asks for nothing until the agent goes live). Answers {message, nonce, expires_at, version, owner, signed, cases, then}; cases maps each threshold's name (hosted_trade, trade, approval, slippage, tier_c_session, solana_fast, solana_hosted) to its line, for a page to show above its sign button; a RISK_ACK_NEEDED refusal's cases lists the names a request crosses. message starts Orblivion: risk acknowledgement, then names this host, the account, its owner key, the text's version, the nonce and when it was issued; the acknowledgement itself follows. Read it: it is what you sign. Its lines are wrapped at about 36 characters, so a wallet shows them whole. An account that signed any version isn't asked again; a new signer gets the newest. A paper agent that goes live (POST /api/v1/hosted/<id>/go-live) takes what a live create takes: BEYOND_DEFAULTS for limits past the recommended ones, and this acknowledgement for the code.
POST/api/v1/auth/risk-ack#
Auth: API key a wallet signed in. {"nonce", "signature"}: the owner key's signature of message, exactly (personal_sign for an EVM owner, signMessage for a Solana one). Answers {acknowledged: true, version, owner, at}. A text works once, for ten minutes. Both SDKs check the text and sign it (sign_risk_ack() / signRiskAck()). Errors: 401 LINK_EXPIRED (no open text with this nonce), 401 RISK_ACK_SIGNATURE (not the owner key's signature of the text), 403 WALLET_NOT_BOUND.
POST/api/v1/auth/revoke#
Auth: API key. No body. Revokes the key that makes the request: {"revoked": true, "key_id", "wallet"}. Every later use is 401 UNAUTHORIZED.
POST/api/v1/auth/revoke-all#
Auth: a wallet signature, no key. For an owner who lost a key, or fears one leaked.
POST /api/v1/auth/challengewith{"address": "0x…", "purpose": "revoke-all"}. Its message says it revokes all API keys; it can't be used to sign in, and a sign-in challenge can't be used here. One use, on the host that issued it, within 5 minutes.- Sign
messagewith the wallet (EIP-191personal_sign), thenPOST /api/v1/auth/revoke-allwith{"address", "signature", "nonce"}.
Answers {"wallet", "revoked": <how many keys were live>, "note"}. Every key of the wallet's account stops at once, whichever of its wallets signed it in; sign in again for a new one. A Solana wallet signs the message with signMessage. Sessions are separate: revoke them with POST /api/v1/live/session/revoke. Rate-limited with sign-in. Errors: BAD_SIGNATURE, CHALLENGE_EXPIRED, RATE_LIMITED.
POST/api/v1/auth/link#
Auth: API key (either wallet's). Adds the account's other wallet: an EVM one to an account with a Solana wallet, or a Solana one to an account with an EVM wallet. Each wallet signs its own text, so each proves itself; a key alone can't link.
{"address"}: the wallet to add. Answers{statements, evm, solana, nonce, expires_at, sign, then}.statementsis{"evm": …, "solana": …}: one text for each wallet, in its own sign-in layout (EIP-4361 for the EVM wallet, CAIP-122 for the Solana one), so the wallet checks the domain and warns on another site. Both name the account's owner key, both wallets, the domain, one nonce and a ten-minute window.signlists the two wallets in the order to sign (the account's own first).- Each wallet signs its own text exactly: the EVM one
statements.evmwithpersonal_sign, the Solana onestatements.solanawithsignMessage. Read it first: it says both wallets will sign in to the account and manage its agents. {"nonce", "signatures": {"<address>": "<signature>", …}}. Answers{owner, addresses, linked, note}.
A text works once, for this account. A wallet that already has its own Orblivion account can join only when that account is empty (no hosted agents, no league entry, no other wallet): that account then closes and its keys stop. The co-signer checks both signatures itself and records the link; nothing is linked when it can't. Errors: 400 BAD_REQUEST, 401 LINK_EXPIRED, 401 LINK_SIGNATURE, 403 WALLET_NOT_BOUND, 409 FAMILY_TAKEN, 409 ADDRESS_IN_USE, 429 RATE_LIMITED, 503 LINK_UNAVAILABLE.
POST/api/v1/auth/unlink#
Auth: API key (either wallet's). Takes the linked wallet out of the account; the owner's own wallet stays.
{"address"}: the wallet to take out. Answers{statements, nonce, expires_at, sign, then}:statementsis{"evm": …, "solana": …}, one text for each wallet that may sign it (the one leaving, or the owner's), in its own sign-in layout.- Either wallet signs its own text exactly.
{"nonce", "address": "<the wallet that signed>", "signature"}. Answers{owner, addresses, unlinked, keys_revoked}.
Every key the leaving wallet signed in to the account stops at once. It is refused while a live agent uses that wallet, running or stopped: delete the agent first. A text is for the link it was issued under: after that wallet is unlinked or linked again, ask for a new one (401 LINK_EXPIRED). Signed in alone afterwards, the wallet gets its own account again. Errors: 400 BAD_REQUEST, 401 LINK_EXPIRED, 401 LINK_SIGNATURE, 404 NOT_LINKED, 409 OWNER_ADDRESS, 409 ADDRESS_LIVE, 429 RATE_LIMITED.
Tokens#
GET/api/v1/tokens/<address>#
Auth: API key. It takes no query parameters. The core assets may be given by symbol.
The token's record, screened on demand when Orblivion doesn't know it yet (within about 8 seconds; UNSCREENED when its simulation is still running):
| Field | Meaning |
|---|---|
address, symbol, name, decimals | read from the chain. symbol and name are whatever the deployer chose: escape them. |
kind | core, stock, orbio_agent, pons, bridged or erc20 |
stock_beacon | whether the screen saw the token on the Robinhood stock tokens' beacon. That reading, not kind, makes a token by address a stock token for the fee class (kind is Robinhood's lists) |
tier, tradable, blocked_reason | A, B, C, or blocked with NO_ROUTE |
venues | the pools and curve it trades on |
reference | its price reference: source (chainlink, twap, median, spot, curve or none) and where it reads it |
liquidity_usd, creator_tax_bps, curve_fee_bps, multiplier, flags | what the screen measured |
risks | its disclosures, severe first |
limits, warnings | its tier's defaults, and plain sentences about it |
screened_at, screen_status | when it was screened, and how this answer was had |
fee_bps | as on any answer |
Errors: 400 ADDRESS_REQUIRED (a symbol that isn't a core asset), 404 NOT_A_TOKEN, 404 UNKNOWN_TOKEN, 429 RATE_LIMITED, 503 SCREEN_UNAVAILABLE, each 429 and 503 with Retry-After.
GET/api/v1/tokens#
Auth: API key. Searches the registry; never screens.
| Query | |
|---|---|
q | up to 64 characters: a name, a symbol or an address prefix. A symbol finds the core asset exactly, and says how many other tokens use it. |
tier, kind | filters |
limit | 1 to 100 (20) |
Answers {query, tokens: [record, ...], count, warnings}.
GET/api/v1/tokens/stats#
Auth: API key. No query. {total, tradable, by_tier, by_kind, by_risk, blocked_by_reason, generated_at, cached_s}, counted at most every 30 seconds. Errors: 503 STATS_PENDING while the first count runs.
Trading#
POST/api/v1/live/prepare#
Auth: API key bound to wallet. Quote, policy, the unsigned transactions and a simulation of exactly them, in one call. See Trading.
| Request | Default | Meaning |
|---|---|---|
wallet | required | your wallet; must be the key's |
token_in, token_out | required | a core symbol or a token address |
notional_usd or amount_in | one required | the size, in dollars or in input atoms |
slippage_bps | the pair's default | from the quote, before the fee; at most the pair's cap |
min_amount_out | none | your own floor, in output atoms |
accept_risks | [] | severe risk codes this trade accepts |
approval_mode | budget | budget, exact or unlimited |
approval_budget_usd | 25 | the budget for budget mode (recommended at most 10,000; past it, accept_risks names BEYOND_DEFAULTS) |
allow_unlimited_approval | false | required with unlimited, which is past the recommended approval limit too: accept_risks also names BEYOND_DEFAULTS |
permit_mode | signature | signature (Permit2 typed data) or transaction |
permit_scope | trade | trade (this amount, 30 minutes) or 30d |
permit_signature, permit_now | the second call of the permit round trip | |
route_id | the best | a route from an earlier quote |
venues | ["uniswap", "pons"] | the venues to consider |
fund | auto | auto simulates against your wallet when it holds the input, else lends the balance; true or false forces it |
curve_fee_mode | auto | for curve tokens: auto, batch or two_step |
action | trade | revoke answers as POST /api/v1/live/revoke |
max_fee_bps | none | the most this request will pay, in bps: a plan whose fee would be above it is refused (FEE_BPS) |
fee_bps | none | not taken: the server sets the fee from the trade's class and the wallet's volume tier, and a request that names one is refused (FEE_FIXED) |
| Answer | Meaning |
|---|---|
ready | tx can be signed and sent as it is |
tx | the transaction to sign (the last step's), or null while a signature is needed first. Its value, as in every step's tx, is a decimal string of wei, exact in a browser: pass int(value) to eth_account |
steps | [{kind, why, tx, decoded}]: approve, sign_permit, fee_transfer, swap |
execution | router, curve or batch |
route, quote | the route taken, and its quote (amount_out, vs_mid_bps, gas, gas_usd) |
amount_in, notional_usd | the size, Orblivion's fee included |
amount_out_min, amount_out_expected, deadline | the on-chain minimum, the simulated output and the swap's deadline |
fee | {bps, side, recipient, token, command}, plus amount on curve and batch plans |
fee_bps, fee_class, fee_tier | the fee this trade pays, its class (major or other) and its rate on the schedule (a major trade's volume tier, or 50). See Fees and gas. |
fee_side, fee_token | where the fee comes from: input or output, and the token it is paid in by address (ETH is 0x0000000000000000000000000000000000000000). The end of the trade that ranks higher pays, ETH first and USDG second; see which token pays the fee. |
simulation | {ok, amount_out, fee_transfer, gas_total, funded_by_overrides, ...}, or null until ready |
checks, policy_ok | the policy checks, all passed |
permit, permit_now | the Permit2 typed data to sign when needed |
approval | the approval's mode, budget, allowance left, reason and what is left after the trade |
wallet_state | your wallet's balances and allowances as read |
tokens | the records of the tokens by address the plan used |
risks, accepted_risks | the disclosures |
timings | where the time went, in ms |
Errors: 400 BAD_REQUEST, 403 WALLET_MISMATCH, 403 WALLET_NOT_BOUND, 422 RISK_NOT_ACCEPTED, 422 NO_ROUTE, the policy codes (MAX_NOTIONAL, MIN_NOTIONAL, MAX_SLIPPAGE, ROUTE_VS_MID, ROUTE_VS_REF, NO_REFERENCE_MID, STOCK_PAUSED, WALLET_BLOCKED, APPROVAL_MODE, APPROVAL_BUDGET, UNLIMITED_APPROVAL, TOKEN_NOT_ALLOWED, SAME_TOKEN), 422 FEE_FIXED, 422 FEE_BPS, 422 LIMIT_NOT_REACHABLE, the curve codes (CURVE_PAIR, CURVE_GRADUATED, SNIPE_TAX, FEE_MODE, FEE_TOO_SMALL), 422 QUOTE_ONLY, 422 QUOTE_SIM_MISMATCH, 422 TOKEN_UNKNOWN, 409 TOKEN_CHANGED, 429 RATE_LIMITED, 503 SCREEN_UNAVAILABLE, 502 RPC_UNAVAILABLE.
POST/api/v1/live/quote#
Auth: API key. Read-only: every route Orblivion can find for the trade, ranked, the best ones simulated. A quote discloses and never refuses for risk.
| Request | |
|---|---|
token_in, token_out, notional_usd or amount_in | as for prepare |
slippage_bps, venues, accept_risks | as for prepare. venues may add the aggregators velora, kyberswap and lifi, which are quoted for comparison but never built. |
fast | true checks the routes that won recent full scans first |
Answers {token_in, token_out, amount_in, notional_usd, slippage_bps, best, routes, candidates, mid, marks, gas_price_wei, eth_usd, policy, policy_ok, timings, risks, fee_bps, fee_class, fee_tier, fee_side, fee_token, ...}. Each route row has id, venue, label, ok, amount_out, vs_mid_bps, gas, gas_usd, total_bps, and for tokens by address impact_bps and guard_bps.
POST/api/v1/live/build#
Auth: API key bound to wallet. The same request and answer as prepare, without the simulation (simulation is absent). Use prepare unless you simulate elsewhere.
POST/api/v1/live/simulate#
Auth: API key (bound to wallet when one is given). The same request as build, plus:
| Request | |
|---|---|
wallet | optional: without it, a synthetic wallet is funded by state overrides (a what-if that can't be signed) |
mode | later (default: approvals in place) or first (a fresh wallet: approval, then the swap with a permit) |
fund | with a real wallet: false simulates its real balances and allowances exactly; true lends it the input |
Answers {ok, error, block, transactions, amount_out, amount_out_min, fee_paid, fee_transfer, gas_total, gas_usd, funded_by_overrides, synthetic, build, risks, fee_bps, fee_class, fee_tier, fee_side, fee_token, ...}. Read the disclosures at the top level, not inside build. A synthetic wallet's simulation only discloses; it never refuses for risk.
POST/api/v1/live/submit#
Auth: API key. Relays signed transactions that Orblivion built for this key, signed by the wallet they were built for (or a session's executor).
| Request | |
|---|---|
raw_tx | one signed transaction, 0x hex |
raw_txs | or a two-step curve plan's transactions together, in order: [approve], fee_transfer, swap |
fee_tx_hash | a curve swap sent on its own after its fee: the fee's hash |
Answers {tx_hash, as_built, timings}, and for raw_txs also tx_hashes and fee_first. Errors: 403 SUBMIT_DISABLED (relaying is off here: send it through any RPC), 422 NOT_AS_BUILT (with diffs), 403 WALLET_MISMATCH, 422 FEE_FIRST (with sent when part of a plan went out), 422 SUBMIT_REJECTED, 502 SEQUENCER_UNREACHABLE, 400 BAD_REQUEST.
POST/api/v1/live/fast#
Auth: API key bound to the signing wallet. Fast mode: a major-pair trade the agent's SDK built and signed itself on a pinned route, checked and relayed in one call (see Fast mode). Off unless the server relays.
| Request | |
|---|---|
raw_tx | the signed EIP-1559 transaction, 0x hex |
token_in, token_out | a pinned pair: ETH, WETH, USDG, NVDA, SPY (never cbBTC), in a direction GET /api/v1/live/fast/terms lists |
amount_in, min_out | atoms, as strings |
deadline | unix seconds, at most 60 s away (the SDKs use 30) |
fee_bps | this wallet's fee: its major tier |
permit | an ERC-20 input's Permit2 permit carried in the swap, when the router has no allowance: {amount, expiration, nonce, sig_deadline, signature}, for exactly amount_in |
simulate | default true: simulate the exact signed transaction first; false skips only that (every other check still runs; a transaction that would revert then costs its gas) |
check_only | true: every check and the simulation, nothing relayed |
fund | with check_only: state overrides give the wallet its input in the simulation (a dry run of an unfunded wallet) |
Orblivion trusts none of it: it rebuilds the calldata with its own builder from amount_in, min_out, deadline and permit, its own fee, the pinned route and the pinned fee recipient, and relays only a byte-for-byte match. Answers {tx_hash, relayed, repeat, route, fee: {bps, class, tier, side, token, recipient}, min_out, min_out_floor, checks, simulation, timings}; the same signed bytes sent again answer the same hash (repeat: true) without a second relay. Errors: the fast mode codes (each refusal carries failures, and FEE_BPS, MIN_OUT, GAS and PRICE_STALE carry terms), 422 SUBMIT_REJECTED, 422 NONCE, 502 SEQUENCER_UNREACHABLE. On any code answered before the relay, take the normal path (prepare, then submit) and sign its first transaction at the same nonce as the refused fast transaction. After a fast transaction whose receipt reads status 0x0 (mined and reverted), take the normal path at a fresh nonce. After any other answer, or none, look the hash up before signing anything else; not there, you may take the normal path once, at that same nonce and with a router or batch plan only (the errors page has why). The SDKs do all of this themselves.
GET/api/v1/live/fast/terms#
Auth: API key bound to a wallet. What an SDK keeps warm for fast mode, for this key's own wallet: {enabled, routes: {version, sha256, pairs, max_usd}, deadline_s, limits, fee: {schedule, class, tier_bps, bps, posted_bps, recipient}, base_fee_wei, max_notional_usd, mark_max_age_s, slippage_tolerance_by_size, stock_session_open, server_time}. The SDKs refuse fast mode (and fall back) when routes.sha256 isn't their own pinned table's.
POST/api/v1/live/revoke#
Auth: API key bound to wallet.
| Request | Default | |
|---|---|---|
wallet | required | |
tokens | ["USDG"] | ERC-20 symbols or addresses |
spender | Permit2 | the spender whose approval to take back |
Answers {steps, before, simulation: {ok, after}, ready, nothing_to_revoke, note}: approve(spender, 0) while an allowance is left, and Permit2.lockdown while the router holds a live Permit2 allowance, simulated against the wallet. Send the steps like any build.
Receipts come from the chain: ask any Robinhood Chain RPC for eth_getTransactionReceipt with the hash submit returned. The SDKs poll for it themselves, then check what was mined.
Sessions#
POST/api/v1/live/session/grant#
Auth: API key bound to wallet. Two calls. See Sessions.
| Start: request | Default | |
|---|---|---|
wallet, executor | required | the owner's wallet and the executor's address |
tokens | ["ETH", "USDG"] | at least two |
max_trade_usd | 25 | recommended at most 1,000; past it, accept_risks names BEYOND_DEFAULTS |
max_slippage_bps | none (300) | the most slippage any of the session's trades may ask, signed in its binding: Orblivion's engine holds every trade's slippage to it; the co-signer holds the slippage a trade states to it, and its own price floor follows it past 300 (under 300 its floor stays at 3% under its own price). 1 to 9,999; past 300, accept_risks names BEYOND_DEFAULTS |
max_day_usd | 100 | from max_trade_usd to 100 times it |
max_trades | 50 | 1 to 10,000 |
expires_in_s | 86400 | 60 seconds to 30 days (24 hours with a token without a Chainlink feed; ORBIO's may run longer with BEYOND_DEFAULTS) |
setup_budget_usd | max_day_usd | the ERC-20 budget the setup approves; trades spend it and top-up sets it back to at most one day's cap |
accept_risks | none | the session's risk terms, bound in the root |
value_guard | none | true, or {max_loss_bps, max_total_loss_usd}: the value guard as the root's last caveat (new and not yet independently audited) |
Answers {session_id, status: "pending", wallet, executor, cosigner, expires, wallet_code, sign: {delegation: {typed_data, digest, delegation_hash, binding}, authorization, curve_roots}, setup, risk_terms, caveats, limits, exposure, on_chain_bounds, not_enforced_on_chain, curve, then}. For a plain wallet sign.authorization is {chain_id, address, nonce_if_relayed, nonce_if_self_sent, digest_if_relayed, warning, note}: signed for nonce_if_relayed, it works only while the wallet sends nothing before the session's first trade (note); otherwise the wallet sets its code itself (Sessions).
| Switch on: request | |
|---|---|
session_id | from the first call |
delegation_signature | the main key's EIP-712 signature of sign.delegation.typed_data |
authorization_signature | a plain wallet's EIP-7702 authorization signature |
curve_root_signatures | {delegation_hash: signature} for curve sessions |
Answers {session_id, status: "active", delegation_hash, authorization_stored, limits, curve_roots, ...}.
Errors: 422 SESSION_LIMIT, 422 BAD_EXECUTOR, 403 EXECUTOR_OWNER (a hosted agent's executor, and this wallet isn't its owner), 422 WALLET_CODE (the wallet runs other code), 400/422 BAD_SIGNATURE, 422 TOKEN_NOT_ALLOWED, 422 UNKNOWN_TOKEN, 422 NO_ROUTE, 422 RISK_NOT_ACCEPTED, 409 SESSION_REVOKED / SESSION_EXPIRED, 503 NO_MARK, 503 SIGNER_UNAVAILABLE, 403 WALLET_MISMATCH, 404 NO_SESSION.
POST/api/v1/live/session/trade#
Auth: API key bound to the session's wallet or its executor.
| Request | |
|---|---|
session_id | required |
token_in, token_out, notional_usd or amount_in | the trade |
slippage_bps, min_amount_out, route_id, fund | as for prepare |
max_fee_bps | the most this trade will pay, in bps: a trade whose fee would be above it is refused (FEE_BPS). It can only refuse; the fee is the one the session's binding allows. |
Answers {session_id, ready, simulated_ok, tx, executor, wallet, leaf, execution, swap, simulation, checks, spend, risks, fee_bps, fee_class, fee_tier, fee_side, fee_token, risk_terms, timings}. The fee is one the session's binding allows for the trade's class (Sessions). tx is the executor's redeemDelegations transaction to sign and submit. simulation.couldnt_run true means no node would run the simulation: the trade didn't revert, and ready is false, so ask again for a new one. When the trade's first simulation, before anything is co-signed, fails without a revert, the trade is refused 502 RPC_UNAVAILABLE with couldnt_run: true when no node would run it, false when a node ran it and answered with an error of its own, which may be the trade's doing.
Send the executor's signed transaction through POST /api/v1/live/submit: only a trade Orblivion relays counts toward the wallet's volume tier.
With fund: false (a trade to send), a wallet that can't run the session's code is refused before anything is planned or co-signed: 409 SESSION_CODE, with fix, wallet_code, wallet_nonce and authorization_nonce; a wallet that can't be read, 502 RPC_UNAVAILABLE. Otherwise (a dry run) the answer's SESSION_CODE check says so and ready is false.
Errors: 409 SESSION_PENDING, SESSION_REVOKED, SESSION_EXPIRED, SESSION_EXPIRY, SESSION_BOUND, SESSION_CODE; 422 SESSION_TOKENS, SESSION_TRADES_LEFT, SESSION_MAX_TRADE, SESSION_MAX_DAY, SESSION_TARGET, SESSION_RECIPIENTS, SESSION_SETUP, FEE_BPS; 400 SESSION_TERMS; the co-signer's refusals (REFUSED and others, with signer_checks); and the trading errors of prepare.
POST/api/v1/live/session/setup#
Auth: API key bound to the session's wallet.
| Request | |
|---|---|
session_id | required: an active session |
The session's setup as it stands now, built again from the session's own budgets, tokens and curve roots against the wallet's allowances read now; steps already in place are left out. The grant's own setup is relayed for 30 minutes after the grant; this one is relayed for 30 minutes after this call, so the owner can send the setup at any time while the session is active. It changes nothing about the session.
Answers {session_id, status, wallet, executor, cosigner, expires, setup: [steps], nothing_to_set_up, binding, signed_roots, on_chain_bounds: {erc20_total_atoms}, curve_tokens_on_curve, then}. signed_roots are the roots the owner signed ({role, typed_data, signature, ...}), so a client can hold every step to what the wallet's own signature binds. The SDKs' sessions.setup_steps (Python) and sessions.setupSteps (TypeScript) check and send it.
Errors: 409 SESSION_PENDING / SESSION_REVOKED / SESSION_EXPIRED, 403 WALLET_MISMATCH (the executor's key, or another wallet's), 404 NO_SESSION, 502 RPC_UNAVAILABLE.
POST/api/v1/live/session/top-up#
Auth: API key bound to the session's wallet.
| Request | |
|---|---|
session_id | required: an active session that ends more than five minutes from now |
again | true to confirm a second top-up within 24 hours of the last one that landed or was relayed (else 409 TOPUP_AGAIN) |
confirm_shared | the ids of the wallet's other active sessions that sell the same tokens, to confirm a top-up that sets their allowance too (else 409 SESSION_BUDGET_SHARED) |
The session's ERC-20 budget, set back to its cap (Sessions). Trades spend each token's Permit2 allowance for the router, and nothing refills it on its own; this answers what restores it. For each token short of its cap (or approved above one day's cap): Permit2.approve(token, router, cap, the session's end), and token.approve(Permit2, cap) only when the token's approval to Permit2 is short too. The cap is one day's cap at most (the signed per-trade cap x max_day_usd / max_trade_usd, rounded down) and never more than the grant's budget; it resets the allowance, never adds to it, and never lasts past the session's end. The steps are simulated in order against the wallet's state and relayed by /live/submit for 30 minutes while the session is active (after a revoke or its end, 409 SESSION_NOT_ACTIVE). It changes nothing about the session. Permit2 keeps one allowance per wallet, token and router, shared by every live session of the wallet that sells the token: the last cap set holds for all of them. The same answer comes back for 15 seconds while the chain reads the same (cached).
Answers {session_id, status, wallet, executor, cosigner, expires, binding, signed_roots, tokens, low, used_up, steps, batch, nothing_to_top_up, simulation, gas_price_wei, shared, last_top_up, cached, rule, then}.
| Field | |
|---|---|
tokens | per ERC-20: address, decimals, day_cap_atoms, granted_atoms, cap_atoms (what a top-up sets: the smaller), allowance (erc20_to_permit2, router_amount, router_expiration), left_atoms, left_share, left_usd, cap_usd, spent_24h_atoms, spent_24h_usd, runs_out_in_s, runs_out_at, and the flags short, above_cap (above this session's own cap and its rounding slack, with above_because; never counted as low), expired, used_up, low (with low_because: under 25% of the cap, under a day of the session's recent spend, used up, expired) and needs_top_up |
shared | the wallet's other active sessions that sell any of these tokens through the router: [{session_id, executor, expires, tokens}] |
last_top_up | the last top-up of this session that Orblivion saw land on chain or relayed: {at, seen_at, set, how, tx_hash} (at, from which its 24 hours run: when it was relayed or seen landed; built_at too for one seen on chain), or null |
steps | the unsigned transactions, each with kind (approve or permit2_approve), token, why, tx and decoded |
batch | for a wallet that runs EIP7702StatelessDeleGator on chain: the same steps as one transaction from the wallet to itself (kind top_up_batch, calls, tx, simulation); else null |
simulation | each step's result and the allowances read back afterwards (after) |
binding, signed_roots | what the owner signed: a client takes each token's cap (its caps entry x max_day_micro_usd / max_trade_micro_usd) and the session's end from them, never from tokens |
The SDKs' sessions.top_up (Python) and sessions.topUp (TypeScript), from 0.1.4, check every step against the binding and send it, pinned to the session by its Grant, its revocation record or its root's hash, after reading on chain that its root isn't disabled.
Errors: 409 SESSION_PENDING / SESSION_REVOKED / SESSION_EXPIRED, 409 SESSION_EXPIRY (it ends within five minutes: grant a new session), 409 SESSION_BUDGET_SHARED (another active session of the wallet sells the same token: shared and confirm_shared say which), 409 TOPUP_AGAIN (a top-up landed or was relayed in the last 24 hours: last_top_up says when and what it set; send again: true to confirm), 403 WALLET_MISMATCH (the executor's key, or another wallet's), 404 NO_SESSION, 502 RPC_UNAVAILABLE. These two refusals come only when there is something to send.
POST/api/v1/live/session/revoke#
Auth: API key bound to the session's wallet.
| Request | |
|---|---|
session_id | required |
reset_code | true adds the authorization that resets the wallet's code, for after the on_chain steps (its nonces count past them: after_steps) |
Answers {session_id, status: "revoked", revoked_at, wallet, executor, cosigner, expires, delegation_hash, curve_roots, effective, signer_revoked, on_chain: [steps], simulation, approvals, reset_code}. The co-signer stops at once; send on_chain with the main key to end it on chain too. executor, delegation_hash and each curve_roots[].delegation_hash show the session as Orblivion reports it; they come from the same answer as the steps, so only a client that kept the session's revocation record can check them. Without one, the SDKs refuse a disable of any root the answer doesn't name as the session's (REVOKE_ROOT); with one, they build the on-chain steps themselves (Revoking).
POST/api/v1/live/session/check#
Auth: API key bound to the session's wallet (or, for an agent account, its owner).
| Request | |
|---|---|
session_id | required: the server reads the chain itself and takes nothing else from the request |
Whether any delegation of the session still in force is disabled on chain, read now: its root, and a launch-curve session's curve and fee roots. For a session ended from the wallet without Orblivion (the agents page's End every session on chain, when Orblivion can't be reached). When one is, the session is revoked at Orblivion as revoke would (the co-signer stops), and each of the wallet's hosted agents (or legs) on it pauses SESSION_REVOKED, whatever paused it before, except a pause that already says the session is over or ADDRESS_BLOCKED. A running agent's tick finds it on its own too. Answers {session_id, status, disabled_on_chain, live_roots}: disabled_on_chain is true (then status is revoked; when this call read it, marked says whether this call revoked it, and signer_revoked whether the co-signer was told), false (all still enabled: nothing changes), or null when it wasn't read. live_roots lists the delegation hashes still enabled, to disable the rest ([] when none is), and is null when they weren't read: an expired session answers from its record without a read, and a read that fails changes nothing and adds error: "CHAIN_READ" and a detail (ask again). A session already revoked is read again and nothing changes, so every browser gets the same answer: disabled_on_chain true when a delegation of it is disabled, false when it was revoked at Orblivion with its delegations all still enabled. Errors: 403 WALLET_MISMATCH, 404 NO_SESSION.
Agent accounts#
An agent account is a smart account the signed-in wallet owns: MetaMask's HybridDeleGator v1.3.0 behind a proxy, at an address worked out from the wallet alone (the SDKs' agentAccount / agent_account, the same as MetaMask's Smart Accounts Kit gives). A session on it names the account as wallet and the signed-in wallet as owner: the owner signs its roots, and every transaction the owner sends for it (setup, top-up, withdraw, stop) is one owner_batch, a redeemDelegations to the DelegationManager under owner access (a delegation from the account to its owner whose one caveat, Redeemer, lets only the owner redeem it; salt 0). An owner batch makes only these calls, and the SDKs' decodeOwnerBatch / decode_owner_batch refuse any other: approvals to Permit2, the Universal Router through Permit2, or the session's Pons curves (or of 0, to anyone, but only on a token Orblivion lists or the account's sessions named: on an ERC-721 the same call gives token 0 away), Permit2's lockdown, disableDelegation (of any delegation but owner access itself), and transfers and ETH back to the owner; never a call to the account itself. checkOwnerBatch / check_owner_batch also hold each approval to the step's budget and Permit2's expiry to the session's end: run it on every owner batch before the owner signs. Before an owner batch is built, the account's calls are simulated from it: a call that reverts (a token that won't move: paused, frozen) is left out and named in dropped ([{kind, token, revert}]; null when the simulation couldn't run, and then nothing is left out), so one token never blocks the rest. Every route here is for the key's own wallet's account; none takes an owner or an account.
Auth: an API key bound to a wallet.
GET/api/v1/live/account#
Answers {owner, address, deployed, state ("pending" | "deployed" | "other"), owner_access ("missing" | "signed" | "disabled"), balances: {ETH, <token>: atoms}, usd, allowances, live_roots, fund_to, create, owner_access_typed_data}. balances covers the tokens Orblivion lists and any token one of the account's sessions named by address (usd values only the listed ones). allowances lists the account's approvals still open ([{token, spender, amount}], null when a read failed): to Permit2, which an owner signature can draw on, and to each Pons curve a session's setup approved (spender the curve). withdraw, and revoke with withdraw: true, close every one no live session uses. live_roots lists every root the owner signed of every session of the account that hasn't expired, whatever its status (a session revoked at Orblivion, or one a newer session replaced, keeps its roots live on chain until the owner disables them): [{session_id, status, expires, role ("root" | "curve" | "fee"), delegation_hash, typed_data, signature}], a curve or fee root with its token, curve, cap and per_trade (as the setup's signed_roots). A root read as disabled is left out; one that couldn't be read is listed, so read each again before disabling it. create (while the account has no code) is the transaction that makes it, sent from the wallet directly, which pays its gas (Orblivion doesn't relay it); owner_access_typed_data (while it is missing) is what the wallet signs for owner access. Errors: 403 WALLET_NOT_BOUND, 502 RPC_UNAVAILABLE.
POST/api/v1/live/account/owner-access#
{signature}: the wallet's EIP-712 signature on owner access, kept only if it recovers to the wallet. Answers {owner, address, owner_access: "signed", delegation_hash}. Errors: 400 BAD_SIGNATURE, 422 BAD_SIGNATURE.
POST/api/v1/live/account/fund#
{token, amount} (atoms): the unsigned transaction that moves them from the wallet into its account, sent from the wallet directly. Its value is a decimal string of wei, as in prepare. Its gas comes from a simulation of that deposit (+30%, L1 data included), and is left out when the simulation can't run, for the wallet to estimate. Only once owner access is signed and not disabled, so what goes in can always come out. Errors: 400 BAD_REQUEST, 409 OWNER_ACCESS_MISSING, 409 OWNER_ACCESS_DISABLED, 502 RPC_UNAVAILABLE.
POST/api/v1/live/account/withdraw#
{tokens?}: one owner_batch that first closes the account's approvals to Permit2 that no live session sells, and each Pons curve's allowance that no live session trades on, then sends what it holds back to the wallet (every token Orblivion lists, and every token one of the account's sessions named by address, with a balance; or the tokens named, from those; then the ETH; tokens: [] only closes). The recipient is always the wallet. Answers {owner, address, steps, dropped, approvals, nothing_to_withdraw}: approvals is {error} when an approval couldn't be read, and then the batch closes none and still withdraws (withdraw again to close them; with tokens: [] it's a 502 RPC_UNAVAILABLE). A token named twice is sent once. /live/submit relays it like any build. Errors: 409 ACCOUNT_PENDING (the account holds something but has no code yet, so the batch would only revert: send create from the wallet first), 409 OWNER_ACCESS_MISSING, 409 OWNER_ACCESS_DISABLED, 502 RPC_UNAVAILABLE.
A session on the account: POST /api/v1/live/session/grant takes owner (the key's wallet) with wallet its account (422 AGENT_ACCOUNT otherwise; 409 OWNER_ACCESS_MISSING until owner access is signed, 409 OWNER_ACCESS_DISABLED once it is disabled on chain, 502 RPC_UNAVAILABLE when that can't be read), answers owner and wallet_code: "agent_account" (or "agent_account_pending" before the account is created) and no authorization. Its setup_budget_usd stays within the approval maximum (422 SESSION_LIMIT; BEYOND_DEFAULTS doesn't lift it): the account's approvals can be drawn on by any owner signature. Setup, top-up and revoke answer one owner_batch step {kind: "owner_batch", tx, calls}, calls being the steps the account runs (each call's tx.value a decimal string of wei, exact in a browser). revoke takes withdraw: true (the withdrawal in the same batch: the agents page's End it on chain and withdraw) and refuses reset_code; its batch also closes every approval to Permit2 that no other live session sells, and its answer adds dropped and stop_only: when anything else is in the batch, a second owner_batch that only disables the session's roots, for when the whole batch still fails on chain (the page's End it on chain only). With steps to send while the account has no code yet, revoke still stops the session at Orblivion and answers 409 ACCOUNT_PENDING with create: send it from the wallet, then revoke again to end the session on chain too.
A hosted agent on the account: POST /api/v1/hosted with mode: "live" takes agent_account: true, and POST /api/v1/hosted/<id>/update takes it (or false) while the live agent has no session attached. The agent then trades from the wallet's agent account (address, with agent_account: true in its view); its executor stays the wallet's: made for, attested to and refunded to the wallet. A batch whose owner access was disabled on chain is refused 409 OWNER_ACCESS_DISABLED.
Leaving without Orblivion#
What an agent account holds can always come back to its owner without Orblivion: no API key, no server answer.
- Owner access, from the SDK. Sign owner access again. It is the same delegation, so the signature gives no new rights, and only the owner can redeem it. Then send one owner batch of transfers to yourself, from your wallet to the DelegationManager; your wallet pays the gas. An owner batch never disables owner access: the page and the SDKs refuse one that would. If the account has no code yet, send its create transaction first (
deployTx(owner)/deploy_tx(owner); anyone may send it). Add any token a session named by address to the list. A browser wallet signs the same delegation as EIP-712 typed data.
import { DEFAULT_RPC_URLS, DELEGATION_MANAGER, TOKENS, agentAccount, delegationDigest, ownerAccess, ownerBatch,
type Execution } from '@orblivion/sdk'
import { createPublicClient, createWalletClient, encodeFunctionData, erc20Abi, http } from 'viem'
import { privateKeyToAccount } from 'viem/accounts'
const key = privateKeyToAccount(process.env.OWNER_KEY as `0x${string}`) // the account's owner
const owner = key.address
const account = agentAccount(owner)
const rpc = createPublicClient({ transport: http(DEFAULT_RPC_URLS[0]) })
const sig = await key.sign({ hash: delegationDigest(ownerAccess(owner)) }) // owner access, signed again
const calls: Execution[] = []
for (const t of Object.values(TOKENS).filter((t) => !t.native)) { // and any token a session named by address
const held = await rpc.readContract({ address: t.address, abi: erc20Abi, functionName: 'balanceOf', args: [account] })
if (held > 0n) calls.push({ target: t.address, value: 0n,
data: encodeFunctionData({ abi: erc20Abi, functionName: 'transfer', args: [owner, held] }) })
}
const eth = await rpc.getBalance({ address: account })
if (eth > 0n) calls.push({ target: owner, value: eth, data: '0x' })
const wallet = createWalletClient({ account: key, transport: http(DEFAULT_RPC_URLS[0]) })
console.log(await wallet.sendTransaction({ chain: null, to: DELEGATION_MANAGER, data: ownerBatch(owner, sig, calls) }))import os
from eth_abi import encode
from eth_account import Account
from eth_utils import to_checksum_address
from orblivion import AccountSigner, Rpc
from orblivion.agent_account import agent_account, owner_access, owner_batch
from orblivion.constants import CHAIN_ID, DELEGATION_MANAGER, TOKENS
from orblivion.delegation import delegation_typed_data
from orblivion.execution import Execution
signer = AccountSigner(Account.from_key(os.environ["OWNER_KEY"])) # the account's owner
owner, rpc = signer.address, Rpc()
account = agent_account(owner)
sig = signer.sign_typed_data(delegation_typed_data(owner_access(owner))) # owner access, signed again
calls = []
for token in [t.address for t in TOKENS.values() if not t.native]: # and any token a session named by address
held = int(rpc.eth_call(token, "0x70a08231" + encode(["address"], [account]).hex()), 16)
if held:
calls.append(Execution(token, 0, "0xa9059cbb" + encode(["address", "uint256"], [owner, held]).hex()))
eth = rpc.balance(account)
if eth:
calls.append(Execution(owner, eth, "0x"))
data = owner_batch(owner, sig, calls)
gas = int(rpc.call("eth_estimateGas", [{"from": owner, "to": DELEGATION_MANAGER, "data": data}]), 16)
tx = {"type": 2, "chainId": CHAIN_ID, "nonce": rpc.nonce(owner), "to": to_checksum_address(DELEGATION_MANAGER),
"value": 0, "data": data, "gas": gas * 13 // 10, "maxFeePerGas": rpc.gas_price() * 2, "maxPriorityFeePerGas": 0}
print(rpc.send_raw(signer.sign_transaction(tx)))- If owner access is disabled, send an ERC-4337 UserOp through the account's EntryPoint instead. Owner access is off only if you switched it off yourself, outside the page and the SDKs, which refuse to. The owner can't call the account directly: in HybridDeleGator v1.3.0 both
executefunctions areonlyEntryPoint. The EntryPoint is v0.7,0x0000000071727de22e5e9d8baf0edac6f37da032(the account'sentryPoint()), and the UserOp is itsPackedUserOperation, with the account assenderand the nonce from the EntryPoint'sgetNonce(account, 0). ItscallDataisencodeBatch(calls)/encode_batch(calls)with the same transfers: the account'sexecute(bytes32 mode, bytes executionCalldata), in batch mode. The owner signs the account's own EIP-712 hash, not the EntryPoint'suserOpHash: typed dataPackedUserOperation(address sender,uint256 nonce,bytes initCode,bytes callData,bytes32 accountGasLimits,uint256 preVerificationGas,bytes32 gasFees,bytes paymasterAndData,address entryPoint)under the account's domain (HybridDeleGator, version1, chain 4663, verifyingContract the account). Send it yourself with the EntryPoint'shandleOps([userOp], yourWallet). The account pays the EntryPoint's prefund from its own ETH before the calls run: an account that holds only tokens, the usual case, first needs the EntryPoint'sdepositTo(account)from your wallet, and one that holds ETH can pay it if you send back a little less ETH than it holds. MetaMask's Smart Accounts Kit (Hybrid implementation, salt 0) signs it this way for the same account (toMetaMaskSmartAccount).
Neither route disables a session's roots: a root stays in force until it expires, unless the batch also carries its disable (the DelegationManager's disableDelegation, a call the account makes; an owner batch may carry it for any delegation but owner access itself).
Solana#
Trades from the owner's own Solana wallet: Orblivion builds the swap, the SDK (orblivion[solana], @orblivion/sdk/solana) checks every instruction and simulates it before the wallet signs, and Orblivion's relay lands the signed bytes. Off where the server doesn't run live Solana (503 SOLANA_OFF).
POST/api/v1/solana/build#
Auth: API key. An unsigned swap for the owner's own wallet, to check and sign.
| Request | |
|---|---|
owner | the trading wallet's address (base58): it signs and pays. It must be one of this key's account addresses: sign in with it, or link it to the account (POST /api/v1/auth/link) |
sell, buy | two mints, or SOL, USDC, USDT, USDG, PYUSD, JUP; an end left out is the server's cash token (USDC by default). One end must be one of those six: Orblivion's fee is paid in it |
amount or amount_usd | atoms of sell as a string, or US dollars for a token with an independent price |
slippage_bps | 1 to 1,000 |
mode | fast (the six's default; any other pair only with BEYOND_DEFAULTS accepted, after the account's one-time risk acknowledgement (else 409 RISK_ACK_NEEDED), since outside a bundle it can be front-run up to the slippage) or protected (a Jito bundle: every other pair's default) |
fallback_after_s | a protected trade also goes out on the fast path if its bundle hasn't landed by then: 3 s by default, 0 never, otherwise 2 to 60. After the fallback a trade can land and fail on a stale route, paying its network fee |
max_tip_lamports, max_priority_lamports | caps on the tip and the priority fee the wallet pays |
accept_risks | severe risk codes the owner accepts for this trade; a token with no independent price needs NO_REFERENCE |
Answers {chain: "solana", owner, sell, buy, amount_in, quote_out, min_out, slippage_bps, fee: {bps, mint, account, side}, channel, mode, also, fallback_after_s, tip_lamports, tip_floor, tip_account, cu_limit, cu_price_micro_lamports, priority_lamports, transaction (unsigned v0, base64), lookup_tables, blockhash, last_valid_block_height, notional_usd, reference: {expected_out, floor, under_bps} | null, risks, route, token_accounts_at_most, max_accounts}. The minimum output is held to an independent price (Pyth on chain, or the token's reference) at most the fee plus the slippage under it. The network's costs (signatures, priority fee, tip, rent for accounts the swap opens) are the wallet's and go to the network, not to Orblivion. Errors: the Solana codes, 409 RISK_NOT_ACCEPTED (with risks and needs), 409 REF_DEVIATION (with reference), 502 NO_ROUTE, 422 SIMULATION_FAILED (with the log lines), 403 WALLET_MISMATCH (owner isn't one of this key's account addresses), 451 ADDRESS_BLOCKED, 503 SOLANA_OFF, 400 BAD_REQUEST.
POST/api/v1/solana/send#
Auth: API key: the one the transaction was built for. {transaction}: the signed transaction, base64. Orblivion relays it only if its message is byte-for-byte one it built for this key, and its signatures verify. Answers {signature, status, slot, err, sends, channel, detail, bundles, bundled, verdicts, seen, limited, fell_back}:
status:landed,failed(landed with an error, paying its network fee),expired(its blockhash passed without it landing: nothing was spent),rejected(Jito's simulation refused every bundle of a protected trade),refused(no channel took it),pendingorsending(still landing: the SDK keeps confirming and sends the same bytes again);fell_back: the fast path was used.
Landing waits at most 30 s. Errors: 409 NOT_AS_BUILT, 400 BAD_SIGNATURE, 451 ADDRESS_BLOCKED, 503 SOLANA_OFF, 400 BAD_REQUEST.
Hosted agents#
Auth: an API key bound to a wallet, for every route here but GET /api/v1/hosted/ai (below); an agent belongs to the wallet that created it, and another wallet's key gets 403 FORBIDDEN. Request fields are exact: any other field is 400 UNKNOWN_FIELD. See Hosted agents.
POST/api/v1/hosted#
Creates an agent: {brain, params, interval_s, pairs, limits: {max_trade_usd, max_day_usd, max_position_usd}, mode?, name?, paper_book?, accept_risks?}. An AI agent (brain: "orbio_llm") takes params: {strategy, model, funding? (orblivion), fallback_own? (true), template?, budget_usd_day?, max_orders?} and ticks at most every 300 seconds; its answer carries ai with its model, funding and today's spend. Answers 201 with the agent. A live agent comes back paused with its executor and executor_attestation; a webhook agent's answer carries webhook_secret, once. Errors: 400 BAD_REQUEST, 400 UNKNOWN_FIELD, 422 BAD_TERMS, 429 TOO_MANY_AGENTS (20 per wallet), 503 SIGNER_REQUIRED. On Solana (where this server offers it): add chain: "solana". Such an agent trades on paper by default (live where this server runs Solana live, below), names its tokens by their mint exactly as written, against its cash leg quote: USDC (the default unless the server names another), SOL or USDG (for example pairs: ["JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN-USDC"]; never the cash leg's own mint as a token). It starts with $1,000: half in its cash token and half in SOL at SOL's price then (with SOL as its cash, half in USDC), or all in its cash token when it doesn't trade that other token, and its book and limits count in USD, takes no webhook brain, ticks at most once a minute (interval_s and a DCA's period_s at least 60), and is filled at Jupiter's quotes less the fee and the network's cost (live, where the server runs Solana live: mode: "live" with solana_owner, the owner's Solana wallet exactly as the wallet gives it) (its trades carry filled_at: "quote", network_usd and tip_lamports); every Solana pair pays the other rate. Agents answer with chain (robinhood or solana) and quote, the cash leg they trade against (USDG on Robinhood Chain); an agent keeps its own if the server's changes later. Errors: 404 SOLANA_OFF, 422 SOLANA_PAPER_ONLY (a create or update asking for mode: "live" or live: true where this server doesn't run Solana live), 422 SOLANA_BRAIN, 422 SOLANA_TOKEN, 422 SOLANA_QUOTE.
On several chains at once: instead of pairs, limits, paper_book and chain, give legs, one per chain, each {pairs, limits, quote?, paper_book?} with the rules a one-chain agent on that chain follows: {name?, brain: "orbio_llm", params, interval_s, legs: {robinhood: {pairs: ["ETH-USDG"], limits: {...}}, solana: {pairs: ["<mint>-USDC"], limits: {...}, quote?: "USDC"}}, accept_risks?}. One brain, one strategy and one tick for all of them; each chain keeps its own pairs, limits, cash token and paper book, and an order trades on one chain, from that chain's cash (no pair across chains, no transfer between them). Such an agent has an AI brain. It is live on every chain or paper on every chain, never both: mode: "live" here (or each leg's own mode, all the same), or POST /api/v1/hosted/<id>/go-live later. Robinhood Chain trades live, and so does Solana where this server runs Solana live; on a server that doesn't, an agent with a Solana leg stays on paper. To try a live agent's strategy on another chain, copy it to paper. It answers with legs (each {chain, label, quote, pairs, limits, tokens, status, pause_reason, pnl, paper: {balances, fills}, mode, live, address, session, executor, budget, live_stats}, below), chain, quote, pairs and paper set to null or empty, limits the total of its legs' (shown, never a cap of its own) and tokens keyed by chain (robinhood:ETH, solana:<mint>). A one-chain paper AI agent becomes one when an update gives it legs (its chain becomes its first leg). Each leg also carries usage ({day_usd, day_cap_usd}, its own daily limit's use), and /portfolio's trades carry chain. POST /api/v1/hosted/<id>/update changes its legs by chain: {legs: {solana: {limits: {...}}}} changes a leg (its book stays), a new chain adds one (a paper agent only: 409 MODE_MIXED on a live one), null removes one (at least one stays; 409 LEG_LIVE for a live one: stop the agent instead), and {legs: {robinhood: {live: true}}} turns a live chain's own switch on or off. Errors: 409 MODE_MIXED (some legs live and some paper), 422 LEG_NOT_LIVE_YET (live with a leg on a chain that can't trade live here; chains names them), 422 LEGS_AI_ONLY, 409 EVM_WALLET_NEEDED, 409 SOLANA_WALLET_NEEDED, 409 LEG_LIVE, and each leg's own, prefixed with its chain. A live agent created this way also answers executors ({<chain>: {address, attestation}}) and account, as go-live does.
A live leg (each chain's view in legs.<chain>):
| Field | |
|---|---|
mode, live | paper or live, and the chain's own live switch |
address | the wallet it trades from: on Robinhood Chain the account's EVM address (its owner key, or the EVM wallet linked to an account first made with Solana), on Solana its Solana wallet (its owner key, or the Solana wallet linked to an account first made with an EVM wallet), fixed when it goes live |
session | {id, expires, root_hash, status, limits, terms, root} of its attached session, or null. root (GET /api/v1/hosted/<id> only) is the registered root as the grant built it, {delegation: {typed_data, digest, delegation_hash, binding}, signature}: check it yourself (the signature recovers to the leg's wallet, the delegate is the co-signer you pin, the Redeemer caveat names the leg's executor, the hash is root_hash) before counting its caps |
executor | {address, balance_wei, min_balance_wei, enough, trades_left_gas, gas_per_trade_wei, attestation}: its gas, with how many trades it pays for at today's gas price before it falls under its minimum (the GAS_LOW pause). In GET /api/v1/hosted/<id> only (a chain read), null in the list |
budget | {day_cap_usd, left_usd, low, used_up, runs_out_in_s, tokens: {<token>: {left_usd, cap_usd}}}: what is left of its session's budget on chain; low at 10% or less of the day's cap, used_up the pause. GET /api/v1/hosted/<id> only |
live_stats | {trades, volume_usd, gas_wei} |
A live Solana chain's fields differ: its session is {id, session_id, vault, expires, status, program, limits, terms_hash} (the session account, its id as a decimal string, since a u64 doesn't fit a JSON number, its vault and the session program), its executor {address, balance_lamports, min_balance_lamports, enough, trades_left_gas, attestation} (min_balance_lamports, under which the chain pauses GAS_LOW: the rent its trades still pay for the vault's new token accounts, once each, and about ten trades at the most one may cost besides, no more than the session has left, but never less than one trade that makes as many token accounts as a trade may; plus the rent-exempt reserve Solana keeps on the executor; within half of one transfer's worth, so one gas step always meets it; trades_left_gas: the trades it pays for at that cost before it falls under its minimum; the signing service's attestation of the executor: a fresh one while it holds less than one transfer's worth, 0.05 SOL, else the one from going live, without the balance it was made at; none once the agent is stopped; SOL goes to it only through the gas step), and its budget {approved_atoms, left_atoms, delegate, refill}: a week of its daily cap approved, what is left of it, what your cash account names as its delegate now, and refill when the next week is due (POST /api/v1/hosted/<id>/budget). With SOL as its cash, the session's caps are in lamports, so their dollars move with SOL: the chain trades within the lower of its limits and the session's caps at SOL's price now, and limited ({code: "SESSION_CAPS", detail}, else null) says when those caps are the lower, so its trades are smaller (a one-chain Solana agent carries it at its top level). A live agent's worst_case counts, on each live Solana chain, every session of the agent still on chain (an earlier one a renewal ended, one opened and never attached): an active session's budget left, what each vault holds, and the executor's SOL. Its book counts an earlier session's vault too: held and held_values (by token, not in balances or values, since no order can spend them: only your wallet moves them, and the stop hands them back), included in value_usd.
A live chain's pause holds that chain alone (legs.<chain>.status and pause_reason: AWAITING_SESSION, AWAITING_LIVE, GAS_LOW, GAS_DAY_CAP, SESSION_BUDGET, SESSION_ENDED, SESSION_REVOKED, SESSION_LIMIT, SESSION_MARK, DAY_LIMIT, ERRORS, ADDRESS_UNLINKED, KILL_SWITCH, LIVE_DISABLED); the other chains trade on. A chain holding the trades ORBIO's following mark doesn't cover yet says so in legs.<chain>.holding, as an agent's holding (below). A live Solana chain also pauses SESSION_LIMIT when the signing service refuses an order at the session's own caps, OUTSIDE_SESSION when the agent's risk terms or pairs take a risk or a token that the session its wallet signed doesn't (plan a new session), and, when the same order was held for the same reason on every try for a day, with that hold's code. Your pause and the kill switch hold every chain.
GET/api/v1/hosted#
The wallet's agents: {agents: [...], worst_case}. Each has id, name, brain, params, interval_s, pairs, limits, mode, live, status (active, paused, stopped), pause_reason, holding, on_hold, trading, session_id, executor, terms, session_terms, tokens, pnl, last_decision, live_stats, watch. terms and session_terms carry fees ({major_max_bps, major_min_bps, other_bps}) and fee_schedule (2, or 1 for a session granted before schedule 2, which also keeps fee_bps). Every agent also carries account ({id, owner, managers}: whose agent it is, and every address of that account, each of which can change its strategy), stop (below, null until it is stopped) and, a live one, address (the wallet it trades from). holding is null unless the agent holds one way of trading while it runs: {code, sell, buy, since, last, detail}, today only SESSION_ANCHOR (ORBIO moved faster than its session's following mark, and a trade from sell to buy waits for the mark to catch up while its other trades go on), with when it first held and when it last held an order. It clears when a trade that way is co-signed or a new session is attached, so a last long ago means the agent hasn't asked for that trade since. on_hold is null unless the agent's last checks were held, in a row, for trouble that isn't its own: {code, since, checks}, such as AI_UNAVAILABLE (Orbio's AI isn't answering: it tries again after 15 minutes, then 30, then hourly, and pauses AI_UNAVAILABLE_DAY after more than a day of it), SIGNER_DOWN or CHAIN_READ. A held check makes no trade, never counts toward the three failures that pause an agent and doesn't clear them; on_hold clears when a check completes or a failure counts.
worst_case is the most the account's live wallets could lose on chain if Orblivion's co-signer, which holds every chain of every agent, signed against them: {usd, as_of, wallets: [{chain, wallet, tokens: [{token, allowance_atoms, allowance_usd}], eth_window_usd, gas_usd, sessions, agents}], shared_cosigner, note}. Per wallet: each token's approval to the router as the chain has it now (shared by every session and agent of that wallet), twice each active session's daily ETH cap, and its executors' gas. Paper chains count nothing. It is for display and SDKs; the agents page works out its own from the roots it signed and its own chain reads.
GET/api/v1/hosted/<id>#
One agent, with its brain_state and last_trade. A live agent also carries session_root_hash and session_expires, session_budget (what is left of the session's ERC-20 budget on chain per token, as top-up's tokens says it, with low, used_up, shared, last_top_up and read_at; the owner's view only, read at most every 15 seconds, null when it can't be read; the public showcase never carries it), stock_tokens (its tokens found to be stock tokens when it traded) and gas_refund (its executor's last refund, or null). A live agent also carries worst_case, over the wallets of its own live chains.
POST/api/v1/hosted/<id>/update#
Any of name, brain, params, interval_s, pairs, limits, live, accept_risks. Turning live on needs an attached session that the agent's limits and terms fit, a wallet that can run the session's code, and the kill switch off; a one-chain Robinhood Chain agent also needs what its first tick would check, read now (_Ready to trade_, below). On an agent with legs, live switches every chain and a live chain's own switch is legs.<chain>.live, under the same rules (a chain's own wins). Errors: 409 STOPPED, 409 AGENT_CHANGED (another request changed its config while this one was checked: read it again and retry), 409 PAPER_AGENT (a paper agent can't go live), 409 NO_SESSION, 409 SESSION_NOT_ACTIVE, 409 SESSION_CODE (with fix), 409 KILLED, 422 OUTSIDE_SESSION, 422 BAD_TERMS, and those of _Ready to trade_.
_Ready to trade:_ turning live on and resuming a one-chain Robinhood Chain agent that is live read the chain as its tick does, so it never goes live only to pause on its first tick: 409 SESSION_REVOKED once its owner has ended its session on chain (any of its delegations disabled: attach a new session), 409 GAS_LOW while its executor holds less than the tick keeps (about ten trades' gas at twice today's price, no more than the session's trades left: executor.min_balance_wei); and when every token it may sell through the router is an ERC-20 (selling ETH takes no approval; a pair with a token on its launch curve trades on that curve, without them, and the other pairs are checked all the same), one of them needs the session's approvals on chain with a minimum order's room: 409 PERMIT2_ALLOWANCE before the session's setup is sent from the wallet, 409 SESSION_BUDGET once that approval to the router has expired or what is left is under a minimum order (top it up: POST /api/v1/live/session/top-up). A read that fails is 503 CHAIN_READ (ask again): it never goes live on a guess.
POST/api/v1/hosted/<id>/go-live#
No body. A paper agent with legs goes live, on every chain at once: each chain trades from the account's address there (its EVM address on Robinhood Chain, its Solana wallet on Solana), fixed now, with an executor the signing service makes for that wallet and agent (for a wallet linked to an account first made with Solana, the signing service checks its own record of the link), and each waits paused (AWAITING_SESSION) for its session. Answers {agent, executors: {<chain>: {address, attestation}}, account: {id, owner, owner_family, address, managers}}: show whose agent it is, and who can change its strategy, before the wallet signs a session. Then, for each chain, from its wallet (sign in with it first): grant a session to its executor (/live/session/grant, wallet the leg's address), attach it with chain, send its setup with the executor's gas (fund_executor, below) in one batch, turn the chain's switch on and resume it with chain. Errors: 409 ALREADY_LIVE, 422 LEG_NOT_LIVE_YET (a leg on a chain that can't trade live on this server: chains names them), 409 PAPER_AGENT (an agent on one chain), 409 STOPPED, 409 EVM_WALLET_NEEDED (the account holds no EVM wallet: link one), 409 SOLANA_WALLET_NEEDED (it holds no Solana wallet: link one), 409 ACCOUNT_OWNER (the signing service's own records don't put that wallet in the account), 451 ADDRESS_BLOCKED, 503 SIGNER_REQUIRED, 503 EXECUTOR_ATTESTATION.
POST/api/v1/hosted/<id>/budget#
{chain?}. A live Solana chain's session budget for the next week: the transaction its owner's Solana wallet signs, unsigned (transaction, base64), the owner its only signer. It approves the session's vault again for seven days of its daily cap (approved_atoms, in the cash token's atoms): one approval, never more than that, and the session still holds each 24 hours to its daily cap. For SOL cash it first tops the wallet's wrapped-SOL account up to that week (wrap_lamports: what the account holds already counts, so it wraps only the rest), and sol_needed_lamports is all the wallet's SOL it takes (the wrap, the fee, and the account's rent when it has to be made again), as a plan's answer states them; a wallet holding less is refused before anything is signed (409 SOL_NEEDED). left_atoms is what the budget has left now and delegate what the cash account names now (this session's vault, or none). Your page or SDK checks the transaction before the wallet signs it (check_budget_tx / checkBudgetTx with the answer's wrap_lamports: that wrap exactly, at most the week's budget, then the approval). A Robinhood Chain session's budget is refilled with POST /api/v1/live/session/top-up. Errors: 409 BUDGET_SHARED (the wallet's cash account has another session's or app's budget on it: one token account has one, and refilling this one would end that one's), 409 SOL_NEEDED (extra: {sol_needed_lamports, sol_balance_lamports}), 409 NO_SESSION, 409 SESSION_ENDED, 409 STOPPED, 409 BUDGET_ROUTE (a Robinhood Chain session), 409 SOLANA_LIVE_OFF.
POST/api/v1/hosted/<id>/paper-copy#
No body. Try on paper: a new paper agent with this agent's brain, strategy (params), interval, risk terms and chains (each one's pairs, limits and cash token), each with a fresh paper book, named after it. The agent copied isn't touched, live or not. Answers 201 with the new agent. Errors: as POST /api/v1/hosted's (429 TOO_MANY_AGENTS, ...).
POST/api/v1/hosted/<id>/session#
{session_id, chain?}: attaches a session granted to the agent's executor by its owner; chain is required for an agent with legs, and the session's wallet must be that chain's address. Attaching it revokes the agent's earlier sessions on that wallet (pending or active, granted no later than this one): the signing service co-signs only the one the agent uses (/live/session/check answers them revoked). Their roots stay live on chain until the owner disables them (live_roots in GET /api/v1/live/account lists an agent account's). Errors: 409 PAPER_AGENT, 409 STOPPED, 409 AGENT_CHANGED, 404 NO_SESSION, 422 BAD_SESSION (with every reason), 422 OUTSIDE_SESSION, 503 EXECUTOR_ATTESTATION. A live Solana agent (where this server runs Solana live) takes two steps here. First {plan: {max_trade_usd?, max_day_usd?, hours?, max_trades?, marks?}} answers the transaction its owner's Solana wallet signs to open the session (transaction, base64, unsigned; session, the account to attach; session_id, its id as a decimal string; its terms, caps in the cash leg's atoms, expiry and fee): the limits default to the agent's and must hold them, and a token with no independent price needs its USD mark in marks, within 10% of the signing service's own price for it (else attaching is refused). The same transaction approves the session's vault for a week of its daily cap (budget_atoms; the session still holds each 24 hours to that cap, and POST /api/v1/hosted/<id>/budget refills it), and a SOL cash leg's wrapped-SOL account is topped up to that first: what it already holds counts, so a renewal wraps only the rest (wrap_lamports). sol_needed_lamports is the most of the wallet's SOL the plan takes (the wrap, the new accounts' rent and the fee); a wallet holding less is refused before it signs. The transaction sets no compute budget, and the fee it counts includes a priority fee of up to 200,000 lamports: a wallet that adds a larger one needs the difference too, or the chain refuses the transaction and nothing moves. Then {session_id}, the session account once it is open, attaches it: its wallet must be the agent's solana_owner and its executor the agent's. A plan for a chain that already has a session (a renewal) also revokes, in the same transaction, every earlier session of the agent still active on chain, which ends its budget; each earlier vault stays the agent's until its stop hands it back, and counts in its book, its position limit and worst_case. Errors: 409 SOLANA_LIVE_OFF, 409 QUOTE_IN_USE (another session or app holds a budget on the wallet's cash-leg account: revoke it first), 409 SOL_NEEDED (extra: {sol_needed_lamports, sol_balance_lamports}), 422 MARK_NEEDED, 422 SCALED_MINT (a Token-2022 mint whose balances are scaled: it can't trade live), 422 OUTSIDE_SESSION, 422 BAD_SESSION, 503 SESSION_ID. A Solana chain of an agent on several chains takes the same two steps with chain: "solana".
POST/api/v1/hosted/<id>/pause#
No body. Pauses the agent (pause_reason.code OWNER).
POST/api/v1/hosted/<id>/resume#
{chain?}. On an agent with legs, chain lifts that chain's pause once what paused it no longer holds (409 AGENT_PAUSED while the agent itself is paused, as after your pause: resume it without chain); without it, the agent's own pause and every chain's that can be lifted (one that can't stays paused, and still_paused says why, by chain). A live chain needs its session (409 NO_SESSION), its switch on (409 LIVE_OFF), its executor's gas (409 GAS_LOW; 503 CHAIN_READ when it, or on Solana the session's counts, can't be read now: try again) and, after a SESSION_BUDGET pause, its budget refilled (409 SESSION_BUDGET). After a SESSION_LIMIT pause for the session's 24-hour spend, a live agent or chain needs room for a $1 order in it (409 SESSION_LIMIT, "its session's daily limit is used: it resumes by itself once the window has room"; nothing changes). Errors: 409 STOPPED, 409 AGENT_CHANGED (an armed agent's session or limits changed while it was checked), 409 KILLED, 409 LIVE_DISABLED, 409 SESSION_CODE (a live agent whose wallet can't run its session's code; with fix), 422 OUTSIDE_SESSION, those of _Ready to trade_ for a one-chain live agent, 404 SOLANA_OFF (a Solana agent where this server doesn't run Solana now: such an agent pauses with SOLANA_OFF rather than tick).
POST/api/v1/hosted/<id>/stop#
No body. Final, for every chain at once: the agent and each of its chains stop, each live chain's session is revoked at Orblivion, and Orblivion's signing service is told to stop every session of every executor the agent has or had, for good (sent again every minute until it has it). The answer and the agent's stop from then on:
stop: {state, requested_at, receipt, solana?, legs: {<chain>: {wallet, on_chain: [steps]} | {paper: true}}, note}
stateisstoppinguntil the signing service has the stop for every chain, thenstopped.solana: the Solana session accounts (base58) the signing service stopped with the rest, once it has the stop ([]when the agent had none;nullfrom a signing service that doesn't run Solana); the same stop covers every chain.receiptis{message, signature}: the co-signer'spersonal_signoverpit.hosted.revoked.v1,agent:<id>,at:<unix seconds>androots:<each session's root hash, comma-separated>, one per line, then, from a signing service that runs Solana,solana:<each Solana session account the agent has had, base58, sorted, comma-separated>(empty when it had none). A checker should accept furtherkey:valuelines a later version adds. Orblivion counts the stop done only when the receipt names every live session, its root or its Solana account. The agents page shows the agent stopped only once it has checked the receipt against the co-signer it pins; until then it shows "stopping". The SDKs check it the same way:verify_stop_receipt(receipt, id, cosigner, roots, solana)in Python,verifyStopReceipt(receipt, id, cosigner, roots, solana)in TypeScript.legs.<chain>.on_chainare that chain's on-chain revocation steps (withlegs.<chain>.errorwhen the chain couldn't be read for them now: stop again to build them again) (the delegation disabled, the approvals reset), for that chain'swalletto send. On Solana they are unsigned transactions for its Solana wallet, the wallet the only signer, in order:{kind: "stop", transaction}(the session revoked, which ends its budget on your cash account, then closed) and{kind: "hand_back", transaction}, each moving one of the vault's token accounts back into your wallet's own and closing it, so one Solana refuses (such as a token account someone else made for the vault) leaves the others to land; then, for SOL cash,{kind: "unwrap", transaction}: your wrapped-SOL account closed, all its SOL back in your wallet as plain SOL (left out while another session or app holds a budget on it, or while another of your active sessions uses it as its cash account). The SDKs'check_unwrap_tx/checkUnwrapTxhold that step to exactly this. Each carrieslast_valid_block_height: they expire about a minute after they are made, and stopping again makes fresh ones. A token whose mint has a transfer hook is withdrawn from your wallet itself.note: trades already signed may still land for about two minutes.
A one-chain agent also answers session_revoke (its session's, with on_chain), as before.
POST/api/v1/hosted/<id>/delete#
No body. Errors: 409 STOP_FIRST (stop a live agent first), 409 SESSION_OPEN (a live Solana chain's session is still on chain, sessions names them: sign the stop's on-chain steps from your Solana wallet first, which close each one and hand its vault back), 503 CHAIN_UNAVAILABLE (Solana couldn't be read for them now: try again).
GET/api/v1/hosted/<id>/logs#
Query: limit (1 to 200, 50), before (a log id), after (a log id: only newer rows, for a page that polls), kinds (comma-separated: decision, trade, hold, session, watch, ...). Answers {id, rows, next_before}. A trade row records the fee it paid: fee_bps, fee_class and fee_tier; a live one also min_out, the least its swap had to deliver. A decision row carries book, the portfolio its tick saw before trading: {source: chain|paper|league, tokens: {symbol: {amount, price_usd, price_source, value_usd}}, total_usd, unpriced?} (a token without a price is listed in unpriced, never valued at 0; one with nothing left isn't). A hold, error or paused row carries why, its code in plain words, and each of its failed checks its own why where there is one; detail is the engine's technical reading. A hold or failure of an order carries it as order (sell, buy, amount_usd), or orders for several.
GET/api/v1/hosted/<id>/portfolio#
Query: since (unix seconds, 0), points (10 to 500, 240). The agent's value over time as its ticks saw it, {id, source, since, count, points: [[ts, total_usd], ...], trades: [{ts, mode, sell, buy, usd, tx_hash}]}: at most points points, the last value in each equal slice of time (the first and last always kept), and its fills since since as markers. A check that couldn't price a token the agent holds adds no point, and its pnl keeps the value and ts of its last check that could, for up to an hour (or three of its checks, if longer); that check's book lists the token in unpriced. A new agent whose first checks can't price a token it started with has no pnl and no point until one can, for up to that long from when it was made. After that the token counts at 0 and pnl.unpriced names it, so a price lost for good shows as a loss. History, not a live read: a live agent's value now is its wallet's balances, read from the chain. The owner's only.
GET/api/v1/hosted/<id>/executor#
Query: chain (an agent with legs; it may be left out while it has one live chain). {executor, chain, balance_wei, balance_usd, min_balance_wei, min_balance_usd, enough, trades_left_gas, gas_per_trade_wei, top_up, refund, executor_attestation, closed, fund_executor} (trades_left_gas: the trades it pays for at today's gas price before it falls under its minimum); refund is {available, why_not, route, last}. A deleted agent's executor is still shown. fund_executor is the one transfer that tops the executor up, for the setup batch or Top up gas: {kind: "fund_executor", chain_id: 4663, from, to, value_wei, data: "0x", attestation}, from the chain's wallet to its executor, twice the minimum less the balance, and never more than 0.005 ETH. It is offered while the executor holds under twice its minimum (so an owner can top up before it pauses), and is null from twice the minimum up and once the agent is stopped or its gas was refunded (closed). Check it as the agents page does before sending: rebuild the attestation's text for the wallet that pays (never from or address from the answer), check its signature against the co-signer you pin, the chain, empty data, and a value under your own cap. A Solana chain answers {executor, chain: "solana", balance_lamports, per_trade_lamports_at_cap, rent_due_lamports, min_balance_lamports, enough, trades_left_gas, top_up, refund, closed, fund_executor} (per_trade_lamports_at_cap: the most one trade may cost besides rent, its fees and tip at their caps; rent_due_lamports: the rent its trades still pay for the vault's new token accounts, once each, and counted in min_balance_lamports; trades_left_gas: the trades it pays for at per_trade_lamports_at_cap before it falls under its minimum), and its fund_executor is {kind, chain: "solana", from, to, lamports, transaction, last_valid_block_height, attestation}: one System transfer from your Solana wallet to the executor, unsigned (your wallet its only signer), of at most 0.05 SOL less what the executor holds. Its attestation is the Solana co-signer's ed25519 signature over an off-chain message naming the network's genesis hash, the session program, your wallet, the agent and the executor: rebuild that text from the values you pin and check it before signing (verify_executor_attestation and check_fund_executor_tx in both SDKs). The SDKs' gas step reads the executor's balance from a node of yours and refuses a transfer that would leave it holding more than 0.05 SOL. Errors: 409 NO_EXECUTOR (paper agents).
POST/api/v1/hosted/<id>/refund-gas#
{chain?} (as for /executor). A stopped (or deleted) live agent's executor gas, back to your wallet: the signing service builds and signs one plain ETH transfer from the executor to the wallet it recorded for the key (the chain's address; never an address from the request), of its balance less that transfer's own gas limit times its maximum fee, read from its own RPCs; type 2, chain 4663, no calldata. It closes the executor for trading first, for good. Orblivion checks the signed bytes, relays them and waits for the receipt. Answers {id, executor, to, value_wei, balance_wei, tx_hash, raw, nonce, gas, max_fee_per_gas, max_cost_wei, status, block, already, relay_error, closed}; status is mined, reverted, sent (no receipt yet) or uncertain (the relay may have reached the sequencer). Asked again before it is mined, the same signed transaction comes back (already), so at most one can land. The SDKs hold the answer to a plain transfer to your own wallet (REFUND_TO). Errors: 409 STOP_FIRST, 409 NO_EXECUTOR, 409 SESSION_ACTIVE (revoke it first), 409 REFUND_REFUSED (checks says why: a session still active at the signing service, something it signed can still execute for up to two minutes, or nothing left above the gas: "nothing to refund", as for an executor never funded), 409 REFUND_OWNER, 409 REFUND_IN_FLIGHT, 409 REFUND_GAS, 502 SIGNED_MISMATCH, 503 SIGNER_REQUIRED, 503 CHAIN_UNAVAILABLE, 503 SUBMIT_DISABLED, 503 STOP_PENDING (the stop hasn't reached the signing service yet: it is sent again every minute).
POST/api/v1/hosted/<id>/rotate-executor#
{chain?} (as for /executor). A new executor key; the session is revoked at Orblivion and the agent pauses until a new one is attached. Answers the agent with retired_executor and session_revoke. Errors: 409 PAPER_AGENT.
POST/api/v1/hosted/<id>/rotate-webhook-secret#
No body. A new webhook secret, shown once as webhook_secret; the old one stops at once. Errors: 409 NOT_WEBHOOK.
GET/api/v1/hosted/ai#
An API key bound to a wallet, or none: with no key it answers a visitor (the agents page's form before sign-in) with what a new wallet would be offered, nothing of any wallet's (no connection, no trades or fees, orbio_agent null), under the public per-address limit. What an AI agent can be set up with: {enabled, min_interval_s, max_orders, strategy_max, budget_default_usd, budget_max_usd, templates: [{id, title, interval_s, strategy}], models: [{id, price: {input, output, structured, source}, available, estimate}], app_fee_pct, funding: {own: {available, offered_here, connect_configured, connected, sub_hint, connected_at, today_usd, today_left_usd, client_id, redirect_uri, scope, models, min_interval_s, app_fee_pct, balance, signer_day_cap_usd}, orblivion: {available, pool_state, pool_usd, pool_left_usd, basis, owners_funded, agents_funded, models, min_interval_s, owner_share_max_usd, live_share_usd, trial_share_usd, trial_days, trial_until, trial_open, today_usd}}}: Orblivion's pool today and this wallet's share were it to run a live or a paper agent. Prices are USD per million tokens from Orbio's public catalogue; estimate is the cost of a tick and of a day at a few intervals. enabled is false on a server that can't call a model. own is your own Orbio balance through Sign in with Orbio: available and offered_here say whether this host offers it, redirect_uri is this host's redirect page (null where it isn't offered), client_id and scope are what Orbio's consent page must ask for, balance is always null (Orblivion asks Orbio for model calls only, not to read your balance) and signer_day_cap_usd is the most your own balance's calls through Orblivion may cost in a UTC day.
GET/api/v1/hosted/solana/<mint>#
A Solana token's screen, by its mint exactly as written, for a paper agent on Solana before it is made: the summary an agent's tokens carry (symbol, name, decimals, kind, tier, reference, liquidity_usd, risks, warnings, ...) plus tradable and problem ({code, detail} when it can't trade). Its severe risks trade only once accept_risks lists them, as on Robinhood Chain. Errors: 404 SOLANA_OFF (this server doesn't offer Solana agents), 422 SOLANA_TOKEN (not a mint).
POST/api/v1/hosted/ai/connect#
{}, or {handoff: true}. Starts Sign in with Orbio for the key's wallet: {authorize_url, expires_at, issuer, redirect_uri, client_id, scope, handoff, attestation}. Send the owner's browser to authorize_url, Orbio's own consent page (https://www.orbio.so/oauth/authorize, PKCE S256, scope=openid inference, prompt=consent), only after checking it asks for exactly that, with client_id and this host's redirect_uri, and nothing else (AI_AUTHORIZE_URL), and that attestation is the co-signer's: {signer, signature, owner, state_hash, claim_hash, redirect_uri, client_id, code_challenge, nonce_hash, expires}, an EIP-191 signature by the co-signer key over the lines orblivion.orbio.signin.v1, chain:4663, owner:<wallet>, state:<SHA-256 hex of the state>, claim:<SHA-256 hex of the claim id, or ->, redirect:<page>, client:<Orblivion's client id>, challenge:<the PKCE challenge>, nonce:<SHA-256 hex of the nonce> and expires:<unix seconds>, rebuilt from your own wallet, page and pinned client id and from the state, challenge and nonce of the address you open (SIGNIN_ATTESTATION): the SDKs and the pages do both. The sign-in is bound to this wallet and this API key, single use, and open 10 minutes. With handoff: true (a script), the answer carries claim_url instead of authorize_url: <site>/hosted.html#orbio=<claim>.<signature>, which the owner opens in a tab signed in with the same wallet (claim). Rate-limited per wallet and per address. Errors: 400 UNKNOWN_FIELD, 429 RATE_LIMITED, 429 FLOWS_FULL, 503 CONNECT_OFF (not offered on this host), 503 SIGNER_REQUIRED.
POST/api/v1/hosted/ai/connect/claim#
{claim}: the claim id from a script's claim link. A tab signed in with the same wallet claims the sign-in the script started: it is rebound to this API key, and the answer is {authorize_url, expires_at, issuer, redirect_uri, client_id, scope, attestation}, to check as above (with the claim's hash, and the link's signature) before opening Orbio. Each claim works once. Limited like connect. Errors: 400 STATE_UNKNOWN, 400 STATE_USED, 400 STATE_EXPIRED, 400 STATE_CLAIMED, 400 STATE_OWNER (another wallet's sign-in: one nobody claimed yet ends), 409 CLAIM_ELSEWHERE (it comes back to another site's page: refused before it is spent, so it still works there), 503 CONNECT_OFF.
POST/api/v1/hosted/ai/connect/cancel#
{state}, with no API key: ends an open sign-in that won't be finished, so its code is worth nothing afterwards. The redirect page sends it whenever it doesn't finish a sign-in. The answer is {ended: true} whatever the state. Limited per address. Errors: 400 BAD_REQUEST, 400 UNKNOWN_FIELD, 429 RATE_LIMITED.
POST/api/v1/hosted/ai/connect/finish#
{code, state, iss}, exactly as Orbio's redirect carried them: what the redirect page sends. Orblivion's signing service exchanges the code (PKCE: only it holds the verifier), checks Orbio's ID token and the grant, and keeps the sign-in encrypted. Answers {connected, sub_hint, scope, connected_at}; no answer ever carries a token. Errors: 400 STATE_UNKNOWN, 400 STATE_USED, 400 STATE_EXPIRED, 400 STATE_OWNER, 400 STATE_KEY, 400 STATE_UNCLAIMED, 400 ISSUER_MISSING, 400 ISSUER_MISMATCH, 422 SCOPE_MISSING, 422 SCOPE_EXCESS, 502 TOKEN_EXCHANGE, 502 ID_TOKEN, 503 CONNECT_OFF.
POST/api/v1/hosted/ai/disconnect#
No body. Forgets the wallet's Orbio sign-in and asks Orbio to revoke it: {disconnected, revoked_at_orbio} (disconnected is false when there was none; revoked_at_orbio says Orbio accepted the revoke, which its revocation endpoint answers even for a token it didn't know). Served on every host, even where signing in isn't offered.
GET/api/v1/hosted/<id>/spend#
An AI agent's model calls, newest first. Query: limit (1 to 200, 50), before (a row id). Answers {id, ai: {model, funding, fallback_own, budget_usd_day, budget_left_usd, today: {usd, calls, by_source, prompt_tokens, completion_tokens}, last, pool: {eligible, kind, why_not, share_usd, owner_used_usd, share_left_usd, pool_usd, pool_left_usd} | null, house: {eligible, code, why_not, day_usd, left_usd, paid_by} | null}, rows: [{id, ts, source, model, status, code, prompt_tokens, completion_tokens, cost_usd, cost_source, ms}], next_before}. source is who paid: orblivion (the pool), own, or house (one of Orblivion's own house agents, paid apart from the pool; house describes it, and is null for every other agent). status is ok, invalid (the answer was refused), error or hold; cost_source says where the cost came from (usage.cost, x-orbio-cost, or bound when the gateway didn't say and the call's worst case is counted). Errors: 409 NOT_AI (another brain).
POST/api/v1/hosted/<id>/chat#
{message, history?}: talk to the agent (Talk to your agent). message is 1 to 800 characters; history is the conversation so far as your client kept it, at most the last 6 turns of {who: "owner"|"agent", text}. Answers {id, answer, proposal, cost: {usd, source, model}, today: {usd, cap_usd}}: answer comes from the agent's own log (its checks, trades, holds and pauses); proposal is null, or for an AI agent asked to trade differently {strategy, before, based_on}: the whole new strategy, the current one, and the digest to confirm it with. source is who paid: own (your Orbio balance, once you signed in with Orbio) or talk (Orblivion's free share, out of the same daily share as your agents' thinking, a few messages a day per wallet). The chat changes nothing on the agent. Errors: 400 BAD_REQUEST, 409 STOPPED, 409 CHAT_CONNECT (the free share doesn't cover this message: sign in with Orbio), 409 NOT_CONNECTED, 429 CHAT_BUDGET (the agent's chats reached today's cap), 429 TALK_LIMIT, 429 SHARE_SPENT, 502 CHAT_MALFORMED/CHAT_SCHEMA/CHAT_STRATEGY/CHAT_EMPTY (the model's answer couldn't be used: ask again), 503 AI_OFF, 503 ORBIO_TIMEOUT.
POST/api/v1/hosted/<id>/strategy#
{strategy, based_on}: confirm a proposal from chat. Only an AI agent's strategy text changes (its template becomes custom); its model, pace, budget, payer, limits, tokens and session stay. based_on is the proposal's: if the strategy changed since, 409 STRATEGY_CHANGED (ask again). Answers the agent. Errors: 400 BAD_REQUEST, 409 NOT_AI, 409 STOPPED, 409 STRATEGY_CHANGED.
Try an agent, no wallet#
A visitor can try a hosted AI agent before signing in with a wallet: one request starts a paper AI agent on a practice book, paid from Orblivion's free AI share for 24 hours. Its guest key (orbl_g_...) reads only that agent (GET /api/v1/hosted/<id>, its logs and portfolio, as an owner's key does) and changes its strategy; every other route refuses it (403 GUEST_FORBIDDEN). A guest can't go live, trade real funds or enter the league. Its agent carries guest: {expires, claimed}. When its hours end and nobody moved it, it pauses (GUEST_ENDED); its model calls stop earlier at the trial's own budget (a hold, AI_GUEST_SPENT), or when the day's free trials have used Orblivion's share for them (AI_GUEST_BUSY). The agents page keeps the guest key in your browser's local storage until the agent moves to a wallet.
GET/api/v1/guest#
No key. Whether a trial can start here now, and what it starts with: {on, strategy, pairs, book, hours, claim_days} (the strategy template's text, its pair, the practice book, how long it runs, and for how many days a trial moved to a wallet keeps thinking on Orblivion's free share as that wallet's paper trial; 0 where only Orbio agents' owners get one). Where the server offers Solana, also solana (its pairs, cash token and book) and both: true: a trial can trade on both chains at once.
POST/api/v1/guest#
No key. {strategy?, chain?, from_link?} (the strategy 1 to 1,500 characters, the template when left out; chain: robinhood, the default, solana, or both for one agent on both chains, where GET says both: true; from_link: true when the strategy came from a shared link, which only adds to a daily count). Starting a trial accepts the Terms of Use, as a wallet's sign-in does. Starts it: 201 {guest_token, expires_at, agent, note}. Keep guest_token: it is shown once, and Orblivion stores only its SHA-256. The agent is a paper AI agent thinking every 15 minutes; its first check runs at once. At most a few trials a day per address and a fixed number a day in all. Errors: 400 UNKNOWN_FIELD, 400 BAD_REQUEST, 429 GUEST_CAPPED (with scope: address or all), 503 GUEST_UNAVAILABLE (Orblivion's free AI share isn't available now), 503 GUEST_OFF.
POST/api/v1/guest/strategy#
The guest key. {strategy}: the trial agent's new strategy, followed from its next check (its template becomes custom). Answers the agent. Errors: 400 BAD_REQUEST, 401 GUEST_UNKNOWN (a key Orblivion doesn't know, or whose agent moved to a wallet), 409 STOPPED.
POST/api/v1/guest/claim#
An API key bound to a wallet. {guest_token}: "make it real". The trial agent moves to the key's wallet with its log and practice book and stays a paper agent: until its trial's hours end it thinks on the trial's budget, then on the usual rules: the wallet's paper trial on Orblivion's free share (claim_days, counted from the wallet's first AI agent or this move), then its own Orbio balance. Once moved, the guest key reads nothing. A repeat by the same wallet answers the agent again. It can move up to a week after its hours end. Errors: 404 GUEST_NOT_FOUND, 409 GUEST_CLAIMED (another wallet took it), 410 GUEST_GONE, 409 AGENT_BUSY (its check is running: try again in a few seconds), 429 TOO_MANY_AGENTS, 503 SIGNER_UNAVAILABLE.
Rewind#
Rewind replays a fixed trading rule over the last 7 days of prices recorded on Robinhood Chain, from the free trial's $1,000 book, next to simply holding that book. The rule is one of the team's three examples or one made from a visitor's own words. No key or wallet is needed, and nothing is traded. How Rewind works explains the method. Where Rewind isn't switched on, both routes answer 503 REWIND_OFF.
panel:trial(ETH against USDG, the default) orsetup(ETH and cbBTC).window:{chain: "robinhood", start, end, until, steps, skipped}, times in unix seconds.result:{chain, start_usd, end_usd, hold_usd, vs_hold_usd, fees_usd, trades, held, series}.- Each trade is
{at, sell, buy, usd, price, fee_usd, block}. heldcounts the orders held by the limits, by reason.seriesis the book's value and holding's, hourly.
- Each trade is
A week that can't replay answers 503 REWIND_LOADING, 503 REWIND_STALE or 503 REWIND_GAPS. Each address may use Rewind only so often an hour (429 REWIND_CAPPED, scope: "hour").
GET/api/v1/rewind#
No key. ?panel= answers {panel, window, examples, own_sentence, ai}.
examples: the team's three examples, always all three and in the same order. Each is{kind: "example", id, title, rule, next: "try_your_own_sentence", result}.own_sentence: whether new words can run now. It is{on: true}, or{on: false, code, message}plus the refusal's own fields, such asREWIND_CAPPED'sscope(hour,addressorall).ai:truewhile this server replays owners' AI agents (below), elsefalse.
?rule=<id>&end=<until>&panel= opens a shared link: that rule over its own week, answered as POST answers but with next: "try_your_own_sentence". end must be a week Rewind showed for that rule, as its link gave it; any other is 404 REWIND_LINK_GONE.
Errors: 400 UNKNOWN_FIELD, 400 BAD_REQUEST, 404 REWIND_LINK_GONE (links replay for 30 days), 422 REWIND_TOKEN.
POST/api/v1/rewind#
No key. {sentence, panel?}, where sentence is 1 to 300 characters. The words become a fixed rule, replayed over the newest week.
It answers {panel, window, rule: {id, text}, result, next: "start_the_free_trial", link: {rule, end, panel}}. rule.text is the rule in Orblivion's words; the words themselves are never shown back or kept.
Words not read in the last 30 days make one model call. The same words, ignoring case and spacing, get the same rule.
Errors:
400 UNKNOWN_FIELD,400 BAD_REQUEST422 REWIND_NO_RULE, withwhy:token,leverage,not_price,rangeorunclear422 REWIND_TOKEN429 REWIND_CAPPED, withscope:hour,addressorall429 REWIND_BUSY,429 RATE_LIMITED502 REWIND_BAD_ANSWER,503 REWIND_AI_UNAVAILABLE
Your own AI agent, replayed#
An owner can replay one of their own hosted AI agents over the recorded prices, with its own model, strategy and interval: one model call a step, paid from the owner's own connected Orbio balance. An account can start one free Full week replay every 7 days, counted from the start of its last free replay (wallets linked to one account share it), while free replays last. Orblivion pays for it, with no connection needed, on the agent's own model where the free replay runs that model (Haiku 5.5, Luna) and otherwise as a labelled preview on Haiku 5.5. When free replays are paused, none starts, whatever the 7 days. Guest agents get no free replay. A guest key (orbl_g_...) gets 422 REWIND_AI_FREE_GUEST on these calls, and a run's link can be read with a guest key, as it can with no key. A run stops before a step whose worst case would take its spending past the amount the owner confirmed. The agent doesn't have to be running. A run starts from the same $1,000 book as the fixed rules, with no notes, fills or orders of its own, and each step's prompt holds only what was recorded up to that step. A model's answers vary, so a run is stored and its link shows that run: it is never run again. Where this isn't switched on, these calls answer 503 REWIND_AI_OFF.
GET /api/v1/rewind?agent=<id>&size=quick|week[&preview=1], with an API key bound to the agent's owner's wallet: what a run would replay and cost, with no model call. It answers {agent, size, model, agent_model, preview, preview_offered, preview_model, interval_s, pairs, steps, window, usd, usd_max, confirm_min_usd, run_max_usd, today_left_usd, fits_today, connected, free, running}.
quickis the last 24 hours,weekthe last 7 days, at the agent's own interval (every 15 minutes or less often).usdis what a run typically costs andusd_maxthe most it could.confirm_min_usdis the least that runs a step,run_max_usdthe most one run may be confirmed for, andtoday_left_usdwhat is left today of the owner's Orbio daily ceiling for Orblivion (null when it can't be read).fits_todaysays whetherusdfits intoday_left_usd(null when that can't be read), andconnectedwhether the owner's Orbio balance is connected.preview=1runs it on Haiku 5.5, offered (preview_offered) only when the agent's own model is dearer.freesays whether a run would be the account's free one:{offered, why, model, preview, message, label, next_at, carry_on}. When it isn't,whyisquick,guest,usedorpaused.labelnames a preview on Haiku 5.5.next_at(unix seconds) says when the next free replay opens, whenwhyisused.carry_onis{run, done}when a free start would carry that stopped run on from its next step (donesteps are kept), else null. With no connection and no free run, the answer is422 REWIND_AI_NOT_CONNECTED, withfreesaying why there is no free run.runningis the owner's run still going, or null.
POST /api/v1/rewind {agent, size, preview?, confirm_usd}, with the same key, starts a run in the background and answers 201 {run}. {agent, size: "week", pay: "free"} starts the account's free run instead, with no confirm_usd: it stops at what Orblivion pays for one. An account runs one at a time.
GET /api/v1/rewind?run=<id>[&since=<step>] needs no key. It answers {run}: {id, status, stopping, code, message, model, preview, free, size, interval_s, pairs, total, done, window, result, steps, created, ended, expires}.
statusisrunning,done,stopped(with acodeand amessagesaying why) orcancelled.resultis as the fixed rules' result, withanswered,refused,no_answerandskippedstep counts.- Each step is
{i, ts, status, code, orders, fills, value_usd, hold_usd}.sinceanswers the steps from that one on. - With the owner's key it adds the model's reasoning, notes and order reasons, its tokens and cost, and
agent,agent_model,confirm_usdandspent_usd. Nobody else sees the model's words or the strategy. - Runs are kept for 31 days.
POST /api/v1/rewind {run, cancel: true}, with the owner's key, stops the run once the step under way ends.
Errors:
400 UNKNOWN_FIELD,400 BAD_REQUEST,401 UNAUTHORIZED,403 WALLET_NOT_BOUND,403 FORBIDDEN,404 NOT_FOUND404 REWIND_AI_GONE,409 REWIND_AI_RUNNING(withrun),409 REWIND_AI_FREE_USED(withnext_at)422 REWIND_AI_NO_AI,422 REWIND_AI_PERP,422 REWIND_AI_INTERVAL,422 REWIND_AI_PAIRS,422 REWIND_AI_PREVIEW,422 REWIND_AI_NOT_CONNECTED(withfree),422 REWIND_AI_FREE_GUEST422 REWIND_AI_MODEL_NEW(withmodel,createdandpreview_offered),422 REWIND_AI_CONFIRM(withmin_usdandmax_usd)429 REWIND_AI_BUSY,429 REWIND_AI_FREE_BUSY,429 REWIND_AI_FREE_FULL,429 REWIND_AI_FREE_LIMIT(withscopeandretry_after_s),429 RATE_LIMITED503 REWIND_AI_OFF,503 REWIND_AI_CONNECTION,503 REWIND_AI_FREE_PAUSED,503 REWIND_AI_MODEL_UNREAD,503 REWIND_LOADING,503 REWIND_STALE,503 REWIND_GAPS
Your account#
Auth: an API key bound to a wallet, for every route here. Each answers for that key's own wallet only: nothing in the request names a wallet, and a key bound to no wallet gets 403 WALLET_NOT_BOUND. No answer carries a fee: not a fee paid, not a trade's fee. The SDKs read these routes as client.me.trades(), client.me.portfolio() and client.me.sessions(), check every answer's shape and wallet, and never use these numbers to decide what to sign. The page at /account.html shows the same after a wallet sign-in.
GET/api/v1/me/trades#
Query: limit (1 to 100, 50), before (a trade's id: older trades), refused (1: also trades that never mined and the key's refused calls). Answers {wallet, trades, next_before, refused_included, explorers}, newest first; next_before is the last trade's id when there are older ones, else null. Each trade carries its chain: the account's own Solana wallet's trades (a live Solana chain's, landed) are listed too, with their transaction signature as tx_hash, their tokens by symbol or mint and their amounts in atoms; explorers gives each chain's transaction link.
| Field | |
|---|---|
id, time | the row's id (for before) and when Orblivion relayed or refused it |
path | agent (the wallet's own signed trade), session, hosted or fast |
status | pending (relayed, no receipt yet), mined, reverted; with refused=1 also dropped (relayed, never mined within the hour) and refused (never relayed, with its code) |
token_in, token_out | {token, address, symbol, name, decimals}: a core symbol or an address; symbol and name are the token's own and only for display |
amount_in | atoms of token_in |
amount_out, amount_out_kind | once mined, what the wallet received (actual): the output token's transfers to the wallet in that transaction; for native ETH, which leaves no transfer log, what the router sent the wallet, worked out from its WETH unwrap in the receipt, or what a Pons curve paid the wallet. Before then, or when the receipt doesn't show it exactly (a route that pays native ETH straight from a v4 pool), the plan's minimum (minimum); null when nothing came out |
amount_out_min | the plan's minimum output |
tx_hash, block | the transaction and the block it was mined in |
session_id | the session a session or hosted trade ran under |
A session trade or a hosted agent's trade is the session wallet's, whichever key relayed it: an executor's key sees its own wallet's trades, not the session's. Errors: 400 BAD_REQUEST (a malformed limit, before or refused), 403 WALLET_NOT_BOUND.
GET/api/v1/me/portfolio#
The wallet's balances, read from the chain when asked: ETH, the core tokens, the stock tokens Orblivion lists, and every token by address the wallet traded through Orblivion (up to 40). Answers {wallet, block, read_at, holdings, total_usd, priced, unpriced, unread, volume, cached}.
| Field | |
|---|---|
block, read_at | the Robinhood Chain block the balances were read at (the chain's own block number, as the explorer shows it) and when |
holdings | each balance above zero: {token, address, symbol, name, decimals, kind, amount_atoms, amount, priced, price_usd, value_usd, mark, unpriced}. kind is native, core, stock or token |
priced, price_usd, value_usd, mark | valued only at an independent price: USDG at $1, Chainlink for ETH, WETH, cbBTC and stock tokens with a feed, ORBIO at its reference pool's 30-minute TWAP. These are the prices the volume tier counts trades at (Fees and gas) |
unpriced | NO_INDEPENDENT_MARK (Orblivion never values a token at its own pool's price, which its issuer can move) or MARK_UNAVAILABLE (stale or unreadable now); the holding is listed with its amount and left out of total_usd |
total_usd | the priced holdings only |
unread | tokens whose balance couldn't be read |
volume | {window_days, volume_usd, tier_bps, posted_bps, next_tier: {bps, min_30d_volume_usd, volume_to_next_usd}, tiers}: the wallet's 30-day volume through Orblivion, counting the major side of each trade (an ETH to token trade counts its ETH; a trade with no major side counts nothing), its tier (your rate on major trades, not fees paid) and the volume to the next |
cached | true when the answer is the one read for this wallet in the last 5 seconds |
Errors: 403 WALLET_NOT_BOUND, 429 RATE_LIMITED (Retry-After), 502 RPC_UNAVAILABLE (retry shortly), 503 LIVE_UNAVAILABLE.
GET/api/v1/me/sessions#
Answers {wallet, sessions, hosted, hosted_available, routes}: the wallet's active sessions, each {session_id, status, executor, created, expires, tokens, limits: {max_trade_usd, max_day_usd, max_trades}, used: {trades, trades_left, last_24h_usd, remaining_24h_usd}, risk_terms: {accept_risks}}, and its hosted agents, each {id, name, status, strategy, mode, live, trading, pairs, session_id, perp, pause_reason} (perp is {markets}, such as {"markets": ["ETH", "BTC"]}, for a paper Perpetual Futures agent and null for any other). routes names the routes that end a session or pause an agent (POST /api/v1/live/session/revoke, POST /api/v1/hosted/<id>/pause): this route changes nothing. Errors: 403 WALLET_NOT_BOUND.
The league#
Orblivion's trading league for Orbio agents, on two boards and one calendar: two-week seasons from a Monday 00:00 UTC to the Monday 00:00 UTC two weeks later.
- The prize league counts real trades only. An entry binds a trading wallet to an Orbio agent, proven by the agent's owner. The entrant's season book is every trade Orblivion relays for that wallet and that is mined in the season (its own-key trades, fast mode, sessions, hosted live agents), and nothing else: deposits, withdrawals and trades elsewhere don't move it. The book is valued at independent marks only (USDG at $1; ETH, WETH, cbBTC and stock tokens at Chainlink; ORBIO at its pinned pool's TWAP); a token without one counts at cost while held and at what its sale received, and is written off if still held at the season's end. The score is the season's return: its profit in USD as a percentage of the most the wallet had at work (its long holdings at their largest, after any trade or at any hour, at least USD 100); the best return wins, and a place needs counted trades on at least 3 days. Drawdown is context. The top 3 eligible entrants, one per owner cluster, are paid 50%, 30% and 20% of the season's payout in ORBIO, sent to each winning agent's own wallet as the Orbio vault records it. A season pays only when at least 10 owner clusters traded in it. A prize goes only to an entry whose owner has confirmed its eligibility in the signed entry statement (18 or older, eligible under the laws that apply to it, and the Prize League Rules accepted).
- The practice board is paper and free: hosted paper agents, any wallet's (no Orbio agent needed), each reset to 10,000 USDG each season, ranked by profit. No prizes: when a season closes, its top 3 that qualify are
featuredon the agents page (the rules).
The reading routes take no key. The SDKs read them as client.league.* and check every answer's shape; the MCP server reads them and can't enter or leave.
GET/api/v1/league#
{season, next_season, entrants, practice_entrants, schedule, reserve, rules, past, now}. season is {number, name, starts_at, ends_at, starts, ends, days, state, seconds_left, day, status} (status open, or upcoming before the first season). entrants counts the prize league's, practice_entrants the practice board's. reserve is {on, agent_id, reserve_atoms, cap_usd, estimate}: whether the prize reserve is running, what it holds for the next season to open with (reserve_atoms, its bonus included; null until a season has closed), the season cap in US dollars (a season pays at most that, in ORBIO at its independent mark when the season ends), and this season's payout if it ended now ({status, reserve_before, gain_so_far, bonus, reserve, budget, shares, cap, ceiling, kept_staked, cap_usd, orbio_usd, mark_ts, indicative}, bonus being the season's one-off bonus, added to its budget in full on top of the third (Season 1's: the stake at its start; Season 2's: what was left of Season 1's unpaid bonus; 0 in other seasons), amounts in ORBIO atoms, 18 decimals, the cap at ORBIO's latest mark (indicative true when that mark is more than 6 hours old, display only: the season's own cap is set at its end; with no mark at all, cap, ceiling, orbio_usd and mark_ts are null and the budget is before the cap); status estimate, pending (with why) or incomplete). rules holds the rules in words (score, valuation) and numbers: the split, the minimum field, the prize cap (prize_cap_usd), the reserve's ceiling in seasons, the season whose bonus is the stake at its start (bonus_season), the one-off carried bonus and buyback by season (carried_bonus, {"2": {bonus, buyback}}, atoms as strings), the copy-trading window, and the practice board's starting book, division and the assets a hosted entrant trades.
GET/api/v1/league/standings#
Query: season (a season's number; the current one by default) and board (prize, the default, or practice). Answers {board, season, status, rows, outcome, places, amounts_atoms, amounts_basis, decided, entrants_next, now}, and on the practice board rows_without_agent (the entries made without an Orbio agent: practice rows with agent_id, token and symbol null and owner their wallet). Each of the two lists is ranked 1, 2, 3 in itself, and every practice row also carries board_rank, its place on the whole board and featured: a closed season's featured entrants, [{place, entry_id, hosted_id, label, profit_usd, return_pct, trades}] (at most 3, in place order; [] when none qualified), or null while the season is open.
- A prize league row:
{rank, entry_id, agent_id, board, kind: "wallet", label, wallet, symbol, name, token, owner, cluster, cluster_size, cluster_links, profit_usd, score, return_pct, max_dd_pct, capital_usd, trades, active_days, active, unvalued, open_unpriced, price_outliers, valued_at, left, place, prize_atoms, live, house, eligibility}.scoreis the profit (six decimals);clusternames the owner cluster (wallets linked by a shared address, an agent-token transfer or a shared first funder count as one) andcluster_linkshow it was joined (address,transfer,funder);activesays it made at least one counted trade;unvaluedcounts trades no independent mark could value;price_outlierscounts trades priced far from the marks (listed for review).eligibilityis{status, eligible, checked_at, rules}, each rule{rule, name, status, reason, reviewed}withstatuspass,fail,flag(it couldn't be decided from what can be read, or needs a person's judgement: a manual review) orpending(an open season's profit at or below zero, or an owner's confirmation not yet on file, which can still change).CONFIRMEDpasses once the owner's eligibility confirmation is on file (below) andWALLET_CHECKonce every address of the entry passes the wallet check; neither can be reviewed away.houseis true for Orblivion's own entries (an agent of Orblivion's developer): they play and rank like any other, but theirHOUSErule fails and can't be reviewed away, so they never take a paid place and the place goes to the next eligible entrant. A rule that couldn't be read is a flag, never a pass.outcomeis{eligible_agents, eligible_owners, active_clusters, pays, why, active_outside_clusters}: the season pays when at least 10 owner clusters traded (active_clusters: in Season 1 every entrant that traded, Orblivion's own included; from Season 2 Orblivion's own are left out (the rules, section 5, changed on 24 October 2026), the same count asactive_outside_clusters);active_outside_clustersleaves Orblivion's own wallets out, and is the count the League and agents pages show as "Owners trading". - A practice row:
{rank, entry_id, agent_id, board, kind, label, symbol, name, token, owner, equity, profit_usd, score, return_pct, max_dd_pct, trades, active_days, left, live, house}withkindaccountorhosted;eligibility,placeandprize_atomsare null.
label, symbol and name are other people's words: show them as text. amounts_basis is estimate (an open season), provisional or decided. Errors: 400 BAD_REQUEST, 429 RATE_LIMITED.
GET/api/v1/league/seasons#
{seasons: [{number, name, status, missed, starts_at, ends_at, entrants, practice_entrants, featured, decided, winners, pays, why}], now}, newest first. featured: a closed season's featured practice entrants, as in the practice standings (null while it is open). winners (once a season is decided): {place, entry_id, agent_id, symbol, label, score, profit_usd, amount, status, tx_hash}; status is planned until the transfer is mined.
GET/api/v1/league/seasons/<n>#
One season's prize league record: the standings as above, with ledger ({reserve_before, gain, half_gain, added, kept_staked, cap, ceiling, bonus, reserve, budget, shares, paid, paid_total, reserve_after, cap_usd, orbio_usd, mark_ts, mark_source, status}, ORBIO atoms; mark_source marks or manual; Season 2's also has buyback, what left the reserve once before it to buy $ORBLIVION, so its reserve_before is Season 1's reserve_after less buyback and bonus), withdrawal (the stake withdrawal that funded it: {tx_hash, amount, ts, note}), payouts ({place, entry_id, agent_id, recipient, amount, status, tx_hash}), winners and settled_at. A decided season shows the standings as decided. Errors: 404 NO_SEASON.
GET/api/v1/league/reserve#
{on, agent_id, rows, estimate, rules}. Each row is one season's ledger: the Orblivion token's Orbio stake gain over the season, half of it added to the reserve up to its ceiling of three caps (kept_staked: what the ceiling kept out, staked for good), the season's cap (cap_usd at ORBIO's mark orbio_usd when it ended), a third of the reserve plus the season's bonus, at most the cap, as the season's budget, the 50/30/20 shares, what was paid, and what stays; with the season's withdrawal and payouts. A row is settled, provisional (its season or an earlier one isn't decided yet) or incomplete (a gain or a cap isn't known: then why says which).
GET/api/v1/league/me#
Auth: an API key bound to a wallet. {wallet, entries: [{entry_id, board, agent_id, kind, wallet, hosted_id, status, from_season, playing, season, token, symbol, name, owner, agent_wallet, proof, entered_at, left_at, confirmed}]}: the entries this wallet made, on both boards (wallet is the trading wallet of a prize entry; confirmed, on a prize entry, says whether the owner's eligibility confirmation is on file, and is null on the practice board), and entries_without_agent: its practice entries made without an Orbio agent, in the same shape with agent_id, token and agent_wallet null. Errors: 403 WALLET_NOT_BOUND.
POST/api/v1/league/statement#
Auth: an API key bound to a wallet. {agent_id, board?, hosted_id?}: the text the Orbio agent's owner signs (EIP-191 personal_sign) to enter the agent through this wallet, or, on the prize board, to confirm its eligibility (the owner signs it for its own wallet too). Its Entrant: line names the board and the entrant: prize league: trading wallet 0x… or practice board: hosted agent ha_…. A prize statement carries, on its own line before the last, the owner's confirmation, word for word:
> I am 18 or older, I am eligible under the laws that apply to me, and I accept the Prize League Rules: https://orblivion.com/docs/league-rules.html
A practice statement doesn't: the practice board pays nothing. The SDKs and the League page rebuild the whole text and refuse one that differs (LEAGUE_STATEMENT) before anything is signed; sign it only if the confirmation is true. The entry is checked first as enter would check it (the agent's entry on the board, unless it is this wallet's own, which the statement then confirms; this wallet's entry for another agent; the Orbio vault; the wallet check), so nobody signs for an entry that can't be made. Answers {message, nonce, expires_at, agent_id, board, entrant, owner}: owner is the agent's owner as the Orbio vault records it, whose account signs. The nonce works once, for 10 minutes, for that board and entrant only. Errors: as for enter.
POST/api/v1/league/enter#
Auth: an API key bound to a wallet. {agent_id?, board?, hosted_id?, signature?, nonce?, confirm_eligibility?}.
board: "prize"(the default withouthosted_id): the signed-in wallet becomes the agent's trading wallet in the prize league. From the moment of entry (the season under way), every trade Orblivion relays for it and that is mined counts.board: "practice"withhosted_id(which implies the practice board): one of the wallet's hosted paper agents, which then trades a practice book of its own, filled the same way as every other entrant's. A practice entry needs a hosted agent: create one withmode: "paper"(POST /api/v1/hosted), then enter it withhosted_id. Withouthosted_id, a practice entry (and its statement) is refused with400 BAD_REQUEST.board: "practice"withhosted_idand noagent_id: one of the wallet's own hosted paper agents, with no Orbio agent, statement or owner proof (one such entry per wallet:409 ALREADY_ENTERED). It needsconfirm_eligibility: true, the wallet's confirmation that its holder is 18 or older and accepts the practice board's rules, since the board's top 3 are featured; without it400 CONFIRMATION_REQUIRED.confirm_eligibilitymay also come with an Orbio agent's practice entry (only an entry that carries it can be featured), never with a prize entry.
One active entry per Orbio agent on each board, and one per trading wallet, account or hosted agent. The owner is proven by the Orbio vault: the signed-in wallet is the agent's owner, or signature is the owner's signature of the statement with that nonce. On the prize board the owner's signed statement also confirms its eligibility; an owner that enters by signing in, without one, gets an entry that plays but wins nothing until it confirms (confirmed: false; POST /api/v1/league/confirm). No agent enters whose owner, agent wallet or beneficiary can't use Orblivion. An entry plays the season under way from the moment it is made; a wallet or agent that played a season and left can enter again only for the next one. Answers 201 with the entry and a note (an entry without an Orbio agent has agent_id, token and agent_wallet null). Errors: 400 BAD_REQUEST, 400 CONFIRMATION_REQUIRED, 400 UNKNOWN_FIELD, 400 STATEMENT_EXPIRED, 400 STATEMENT_MISMATCH, 400 BAD_SIGNATURE, 403 WALLET_NOT_BOUND, 403 NOT_OWNER (with owner), 403 FORBIDDEN, 404 NOT_AN_AGENT, 404 NOT_FOUND, 409 AGENT_ENTERED, 409 ALREADY_ENTERED, 409 PRIZE_IS_LIVE, 409 LEAGUE_DIVISION, 409 LEAGUE_PAPER_ONLY, 409 LEAGUE_PAIRS, 409 LEAGUE_INTERVAL, 409 STOPPED, 429 RATE_LIMITED, 451 ADDRESS_BLOCKED, 503 LEAGUE_UNAVAILABLE (retry shortly), 503 HOSTED_UNAVAILABLE.
POST/api/v1/league/confirm#
Auth: an API key bound to the entry's trading wallet. {agent_id, signature, nonce}: the owner's eligibility confirmation for the agent's prize entry, when it was made without one (the owner entered by signing in, or entered before the statement carried the confirmation; those entries play on and are asked to confirm before their first prize). Ask for a prize statement (POST /api/v1/league/statement, board: "prize"), have the owner sign it, and send the signature with its nonce; it must recover to the owner the entry records. The entry's CONFIRMED rule passes from then on; a season whose payout was already decided stays as decided. Answers the entry (confirmed: true). Errors: 400 BAD_REQUEST, 400 UNKNOWN_FIELD, 400 STATEMENT_EXPIRED, 400 STATEMENT_MISMATCH, 400 BAD_SIGNATURE, 403 NOT_OWNER, 403 FORBIDDEN (another wallet's entry), 403 WALLET_NOT_BOUND, 404 NOT_ENTERED, 429 RATE_LIMITED, 451 ADDRESS_BLOCKED.
POST/api/v1/league/leave#
Auth: an API key bound to a wallet. {board?, hosted_id?, agent_id?}: takes the wallet's prize entry (the default), its practice account (board: "practice") or a hosted agent out of the league at once; it can enter again for the next season. With agent_id, the entry for that Orbio agent on the board: the wallet that entered it or the agent's owner may take it out, so an owner can always withdraw its agent from an entry it signed a statement for. Stopping or deleting a hosted agent leaves too. Errors: 400 BAD_REQUEST, 403 FORBIDDEN, 404 NOT_ENTERED.
Live trades#
Every trade Orblivion has relayed and seen mined, from its own records: the Live trades page and the home page's live trades panel read this route.
GET/api/v1/trades#
Also served as GET /api/v1/activity, its first name, with the same answer. Ad blockers' EasyPrivacy list (used by Brave Shields, uBlock Origin and others) blocks /api/v1/activity in browsers, so pages read /api/v1/trades.
Auth: none. No query. One shared answer for every caller, rebuilt at most every 15 seconds, so polling it costs nothing; poll it every 30 seconds at most.
A trade is listed once its receipt shows it mined: one Orblivion relayed for a wallet (signed by the wallet itself and sent with POST /api/v1/live/submit, from an SDK, the MCP server or the app), in fast mode, by a session's executor, or by a hosted agent. A hosted agent's Solana trade is listed once Orblivion saw its transaction land. Paper trades, refused calls, and trades that are pending, reverted or never mined aren't trades here. Nothing is estimated: a figure the records don't give is null.
| Field | Meaning |
|---|---|
available | false on a server that doesn't run the live trading layer (then everything is empty) |
totals | Robinhood Chain's trades only (chain is "robinhood"), since the first one: since (its time), trades, team_trades and outside_trades, wallets ({team, outside}: distinct trading wallets), volume_usd and unvalued_trades (trades with no independent price, left out of the volume), fees_usd, fees (per token: {symbol, address, decimals, amount, units, at_least}), fee_unknown_trades, minimum ({measured, met, not_measured}: how many trades' receipts show what they received, how many of those received at least their minimum, and how many don't show it), sent_via ({wallet, fast, session, hosted}) and venues (trades per venue, unknown where the route can't be told) |
solana_totals | Solana's trades, counted apart and never added to totals: {chain, since, trades, team_trades, outside_trades, wallets}. No volume, fees or minimum: Orblivion doesn't keep those for a Solana trade |
trades | the newest 50 of both chains, newest first (below) |
refusals | the last 7 days: {window_days, since, total, codes: [{code, by, count}]}, calls Orblivion refused, by code and by who refused them (relay: its relay or fast mode, co-signer: the session co-signer, hosted agent: a hosted agent's live order held for a risk its owner hadn't accepted). Counts only, no wallet. A plan refused before anything is signed (a quote's or a prepare's checks) isn't recorded, so it isn't counted |
explorer_tx | Robinhood Chain's explorer's transaction page prefix (a Solana trade has its own tx_url) |
generated_at, cached_s | when the answer was built, and how long ago |
A trade:
| Field | Meaning |
|---|---|
chain, tx_url | only on a Solana trade: chain is "solana" and tx_url is the transaction's Solscan page. A trade without chain is Robinhood Chain's |
time, block, tx_hash | when Orblivion relayed it, the block it was mined in, and its transaction |
wallet, team | the wallet whose funds moved, shortened (0x1234…abcd: the transaction's explorer page shows it in full), and whether it is one of Orblivion's own wallets |
sent_via | wallet (signed by the wallet itself: an SDK, the MCP server or the app), fast, session or hosted |
sold, bought | {symbol, address, decimals} of each end (address only for a token known by address; symbol is the token's own and only for display), with what was sold: amount (atoms) and units (whole tokens, exact) |
minimum | the plan's minimum output, {amount, units}: the chain reverts any trade that would pay less (null on a Solana trade) |
received, met_minimum | what the wallet received, from the receipt (the output's transfers to the wallet; native ETH where the receipt shows it exactly), and whether it was at least the minimum. null when the receipt doesn't show it (a v4 pool paying native ETH directly) |
usd | the trade's size in US dollars at an independent price when it was built (its major side: USDG at $1, Chainlink for ETH, WETH, cbBTC and stock tokens, ORBIO at its reference pool's 30-minute TWAP), as the volume tier counts it; null without one |
fee | Orblivion's fee: bps, side (input or output), the token (symbol, address, decimals), amount and units, exact, and usd (the trade's usd times the rate). An input-side fee and a Pons curve's output-side fee are fixed when the plan is built (exact); a router's output-side fee is its share of what the router paid out, worked out from received, and when that can't be told exactly, or the receipt doesn't show received, amount is the least it can have been (exact: false). null when the records don't say |
route | {venue, detail}: Uniswap v3 (with its pools' fee tiers in detail), Uniswap v4, a mix of them, or Pons curve; null when it can't be told |
A Solana trade has the same fields: tx_hash is its signature, wallet its owner's Solana wallet shortened (AbCd…WxYz), sent_via is hosted, and received what the transaction's balances show it received: what the session's vault received on a buy, what the owner's wallet received on a sale. block, minimum, met_minimum, usd and route are null, and fee gives its bps only (side, amount and usd are null); a 0-bps fee has amount "0" (the full no-fee shape), and a fee with no recorded rate is null. USDC, USDG and SOL are named by their symbol; any other token by its mint (address), with its symbol and decimals when Orblivion still has them. team is true when the wallet is one of Orblivion's own Solana wallets, or the account's linked EVM wallet is one of Orblivion's own.
{"available": true, "generated_at": 1792000000.0, "cached_s": 3.2, "explorer_tx": "https://…/tx/",
"totals": {"since": 1791500000, "trades": 28, "team_trades": 28, "outside_trades": 0,
"wallets": {"team": 3, "outside": 0}, "volume_usd": "64.10", "unvalued_trades": 0,
"fees_usd": "0.1603", "fees": [{"symbol": "ETH", "address": null, "decimals": 18,
"amount": "27000000000000", "units": "0.000027", "at_least": false}],
"fee_unknown_trades": 0, "minimum": {"measured": 27, "met": 27, "not_measured": 1},
"sent_via": {"wallet": 9, "fast": 12, "session": 4, "hosted": 3}, "venues": {"Uniswap v3": 28}},
"trades": [{"time": 1791999000, "block": 86200000, "tx_hash": "0x…", "wallet": "0x7c8c…2a5a", "team": true,
"sent_via": "fast",
"sold": {"symbol": "ETH", "address": null, "decimals": 18, "amount": "400000000000000", "units": "0.0004"},
"bought": {"symbol": "USDG", "address": null, "decimals": 6},
"minimum": {"amount": "1060000", "units": "1.06"}, "received": {"amount": "1072000", "units": "1.072"},
"met_minimum": true, "usd": "1.07",
"fee": {"bps": 25, "side": "input", "symbol": "ETH", "address": null, "decimals": 18,
"amount": "1000000000000", "units": "0.000001", "exact": true, "usd": "0.002675"},
"route": {"venue": "Uniswap v3", "detail": "0.01%"}}],
"refusals": {"window_days": 7, "since": 1791395200.0, "total": 2,
"codes": [{"code": "NOT_AS_BUILT", "by": "relay", "count": 2}]}}GET/api/v1/activity#
The same answer as GET /api/v1/trades, at its first name. Ad blockers' EasyPrivacy list blocks this path in browsers, so pages and new clients should read /api/v1/trades; this path stays for clients that already use it.
Watch a live agent#
Orblivion's own hosted agents at work, for anyone, with no key: the Watch page reads these routes. Only the agents Orblivion puts on show are here, and only while a team wallet owns them; each answer is built field by field for the public, so it carries nothing of the agent's session, executor, keys, webhook or AI spend. The fields below are all there is.
Auth: none, and no header changes an answer (a key or a cookie is ignored). GET only. Each route takes only the queries below, each at most once (anything else is 400), so every answer is one of a few per agent and the same for every caller: the server builds each at most once every 5 seconds (the list and the series every 15) and serves that copy to everyone, and a 200 carries Cache-Control: public, max-age=5, s-maxage=5, so a browser or Cloudflare may show one up to 5 seconds older still. When many answers fall due at once the server may serve an answer's previous copy (at most a minute old), or 429 with Retry-After. Poll every 15 seconds at most. Errors: 404 NOT_FOUND ("no agent on show") for any agent that isn't on show, whether it exists or not, and for every route while nothing is on show; 400 BAD_REQUEST for any other query; 429 RATE_LIMITED.
A known limit: a check's decision, its orders included, is public as soon as it is logged, a few seconds before its trade is sent and mined (in_flight shows it on its way). An agent Orblivion puts on show trades sizes for which that doesn't matter.
GET/api/v1/showcase#
The agents on show: {agents: [{id, name, wallet, mode, status, trading, brain, pairs, challenge}], explorer, generated_at}.
GET/api/v1/showcase/<id>#
One agent, read-only:
| Field | Meaning |
|---|---|
id, name | the agent's id and the name its owner gave it |
challenge | true for an agent that runs a rule a reader sent in for a strategy challenge, which Orblivion runs; false for Orblivion's own |
wallet | its trading wallet: a live agent trades this wallet's own funds, on chain, through the session its owner signed |
mode, status, trading | live or paper; active, paused or stopped; what it is doing now: live, paper or not trading |
pause_reason | while paused, {code, ts, detail}: detail is a fixed sentence for the code, never the server's own message |
holding | while it runs and holds one way of trading, {code, sell, buy, since, last}: today only SESSION_ANCHOR, a trade from sell to buy waiting for ORBIO's following mark to catch up while its other trades go on; else null |
on_hold | while it runs and its checks are held for a reason outside it, {code, since, checks}: the code (AI_UNAVAILABLE when Orbio's AI isn't answering, SIGNER_DOWN, CHAIN_READ, ...), since when and how many checks in a row. A hold never counts as a failure, nor clears them, and it clears once a check completes or a failure counts; else null. An agent on two chains shows it while neither chain completes a check; a hold on one chain while the other trades is in its log only |
next_tick, last_tick, tick_no, interval_s, created | its next check (while active), its last, how many it has made, how often it checks, and when it was made |
brain, pairs, params | its strategy and pairs; params for a rebalance (targets, threshold_bps, max_trade_usd) or a DCA (sell, buy, amount_usd, period_s, max_buys); for momentum and mean reversion, their fixed rules, the same for every agent: momentum's entry_bps (its bar for each token of its pairs), lookback_ticks, target_share and hold_fraction, mean reversion's window_ticks, entry_z, exit_z and size_share (Momentum and mean reversion); null for any other brain |
limits, usage | {max_trade_usd, max_day_usd}, and what it traded in the last day against that: {day_usd, pending_usd, day_cap_usd} |
in_flight | a live trade between signing and its receipt: [{phase, since, tx_hash}], the hash only once it is sent |
live_stats | {trades, volume_usd}: its live trades since it started |
book, book_at | its holdings as its last check read them (a live agent's from the chain), and when: each token's amount, price_usd, price_source and value_usd, the total_usd, and the tokens it couldn't price (unpriced) |
result | {start, start_usd, start_ts, now_usd, now_ts, change_usd, change_pct, hold_usd, vs_hold_usd, vs_hold_pct, trades}: what it started with (start: each token's amount) and what that was worth at its first check, what it is worth at its last check and the change since (in USD and %), and the starting holdings kept untouched, valued at that last check's prices (hold_usd), with how far the agent is ahead of them or behind (negative). A paper agent's: its practice book, paper money at live reference prices; a check that couldn't price a token it holds changes neither its now_usd nor its now_ts, nor adds a point to its value over time, for up to an hour (or three of its checks, if longer), and a new agent's first checks that can't price a token it started with set no start_usd for that long from when it was made; after that the token counts at 0. A live agent's: its wallet as its checks read it from the chain, its holdings at its first check worked out from its first recorded book less its trades since, and shown only when its trades explain its wallet's holdings to within $0.25 or 0.5% of their value, whichever is larger (room for the gas of its own approvals), so a deposit or a withdrawal larger than that never reads as a gain or a loss; its trades' gas, paid by its executor, isn't counted. trades, {sales: {"<row id>": [usd, pct]}, realized_usd, open_usd} or null: each sale's result at average cost (what it got less the cost of exactly what it sold; a token's cost starts as its starting amount at its first check's price and grows by what each buy spent; fees are in the fill's own amounts), keyed by its log row's id; a buy has none. realized_usd (its sales up to its last check) and open_usd (what it still holds then, less its cost) together make change_usd within $0.10, else both are null. null when its trades don't give the holdings its last check read, or a trade has no USDG side. result is null when it can't be stated that way |
ai_text | only for an AI agent Orblivion chose to show the words of: {label, model, instructions, paid_by}, its model, the strategy prompt it runs on as written, and who pays for its model (house: Orblivion). label is "AI-written: the model's own words, not advice". null for every other agent |
explorer, generated_at | the block explorer its hashes and wallet open on, and when this answer was built |
GET/api/v1/showcase/<id>/logs#
Its newest rows, newest first: {id, rows: [{id, ts, kind, mode, data}]}. Query: limit, 50 (the default) or 100, and kinds: none (its newest rows of every kind below), trade,reverted (its trades and reverts) or hold,error,paused,relay_uncertain,settle_retry (its problems), each kind from the last 90 days. No paging. No kind but decision, trade, hold, error, paused, resumed, reverted, relay_uncertain, settle_retry, created and stopped is ever listed.
kind | data |
|---|---|
decision | a check: reasoning (the strategy's own words when the brain that made this check is a rebalance, a DCA, momentum or mean reversion; null for any other, and for a check whose brain can't be told), orders ({sell, buy, amount_usd, reason}, reason under the same rule), market ({block, prices: {token: {reference, reference_source}}}), book (as above) and ai_text (below) |
trade | an order step by step: sell, buy, amount_in, amount_out and min_out (whole tokens), usd, tx_hash, block, fee_bps and fee ({token, amount, exact} as the receipt shows it), checks ({rule, ok} of each check of the mined transaction), timings (simulate_ms, cosign_ms, submit_ms, receipt_ms), simulated (a paper fill) and the order (its reason only in its decision: null here, as in every row but a decision) |
hold, error | code, detail (a fixed sentence for the code), the order and the failed checks' codes |
paused, resumed | code, and for a pause its detail |
reverted | kind (reverted or mismatch), detail, tx_hash, order and checks |
relay_uncertain, settle_retry | code, detail, tx_hash and order |
created, stopped | brain, mode and interval_s; nothing |
AI text. A decision's ai_text is null but for a check the AI model of an agent with ai_text made, while Orblivion was showing its words: {label, model, paid_by}. Its reasoning and its orders' reasons are then the model's own words, at most 800 and 200 characters, as plain text: the label says so. A check where the model wasn't called, or gave an answer Orblivion's checks refused, carries no words. The model's notes to itself, its answers that were refused and what its calls cost are never shown.
GET/api/v1/showcase/<id>/portfolio#
Its value over time, as its checks read it (a live agent's from the chain), with its trades as markers: {id, source, range, since, points: [[ts, usd]], trades: [{ts, mode, sell, buy, usd, tx_hash}]}. Query: range: 1h, 24h or all (the default). At most 240 points (the first and last kept) and 200 markers.
GET/api/v1/showcase/<id>/share#
A page to share an agent on show: its meta tags give X (and other sites that read Open Graph tags) a large image card with the agent's result against holding as of its last check, and a person who opens it sees that card and a link to the Watch page. HTML, no script. 404 NOT_FOUND ("no result to share yet") while the agent has no result. No query.
GET/api/v1/showcase/<id>/card.png#
That card: a 1200x630 PNG of the agent's name and tags, whose rule it runs (Orblivion's own, or a reader's for a challenge agent, with the X handle of the reader who sent it when Orblivion has one), its result against holding with the time of its last check (UTC), and "Past results don't predict future ones." The same result always gives the same image. Query: v, the card's as-of time in whole seconds, which the share page puts in the image's link so each new result has a new address; whatever v says, the answer is the current card. 503 UNAVAILABLE when the server can't draw cards (its fonts are missing).