Developers
OX212's reading,inside your code
An API to ask before trading, an MCP server for AI agents and pay per query with x402. The same truth the trader sees
How it fits
Before, during and after every order
- 01
Before
Your system asks whether the order fits the trader's state and gets a decision.
- 02
During
You check the active guardrails and, with your firm's key, pause where the trader allows it.
- 03
After
You download the sealed case and verify it yourself, independently.
API
The essentials, in six routes
/api/v1/risk-checkA decision before opening or scaling risk/api/v1/guardrails/currentThe account's active guardrails/api/v1/guardrails/executePause an account, where the trader allows it/api/v1/evidence-packageThe sealed case, with its proof in Bitcoin/api/v1/agent/accounts/{id}/nowAn account's risk state, right now/api/v1/agentic/x402/risk-checkThe same check, paid with x402POST /api/v1/risk-check Authorization: Bearer ox212_sk_… Idempotency-Key: 6f1c9a2e… { "account_id": "3970c1f0-8b2e-4d6a-…", "context_window": "session", "intended_action": { "type": "OPEN_TRADE", "size_multiplier": 1.2, "instrument": "NQ", "side": "buy" } }
200 OK { "state": "warning", "light": "amber", "confidence": 0.82, "reason_codes": [ "RULE_DRIFT_RISING", "PLAN_GUARDRAIL_ACTIVE" ], "decision": { "action": "REDUCE_SIZE", "enforcement": "SOFT", "ttl_minutes": 30 }, "guardrails": { "max_size_multiplier": 0.6, "max_trades_remaining": 1 }, "attestation": { "attestable": true } }
Illustrative example
Your personal key only reads. Your firm's key can pause where the trader allows it, always with a reason and for 24 hours at most.
Every route, in OpenAPI 3.1Principles
Built never to fail silently
Fails closed
If it can't validate access, it returns an error, not a guess.
Idempotent
Every call carries its key: repeating it never duplicates an action.
One truth
The API, MCP and the app give the same reading of each account.
Leaves a trail
Every decision is sealed and, every hour, anchored in Bitcoin.
Verification
Check it without us
Every record in the sealed case travels with what you need to verify it yourself: its content, its salt, its Merkle path and its OpenTimestamps proof. We include an open verifier a few lines long. And every API decision arrives signed by OX212 and sealed in Bitcoin: you check it with our public key.
- 01
Recompute
The record's SHA-256 fingerprint, from its content and its salt.
- 02
Climb
Its Merkle path, up to the root sealed in that hour.
- 03
Confirm
With OpenTimestamps, that the root is in Bitcoin.
MCP
Seven tools for AI agents
An MCP server so an AI assistant can query OX212 before acting. Read-only: no tool can trade, pay or widen its own permissions.
behavioral_riskThe account's behavioral riskguardrailsThe active guardrailssession_briefThe session summaryevidence_summaryThe evidence summarylist_accountsThe accounts your key can readget_account_nowAn account's state, right nowget_account_summaryIts behavior, over 1 to 90 days
x402
Pay per query, no contracts
An agent can pay for each query in USDC on the Base network with the x402 standard. No sign-up, no cards: it sends its trades, pays and gets the answer. Its trades are not kept.
/api/v1/agentic/x402/risk-checkThe engine's reading/api/v1/agentic/x402/risk-explainThe reading, with a short explanation by OX/api/v1/agentic/x402/risk-analysisThe reading, with an in-depth analysis by OX- 1
Ask
The agent calls the route without payment.
- 2
402
OX212 replies "Payment Required" with the price.
- 3
Pay
The agent signs the USDC payment and calls again.
- 4
Answer
OX212 verifies the payment and returns the decision.
Built for agents and systems, not for traders' subscriptions
OX212's reading,inside your code
With your API key on Elite, or with your firm's key


