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

Request API accessWith your API key on Elite, or with your firm's key

How it fits

Before, during and after every order

  1. 01

    Before

    Your system asks whether the order fits the trader's state and gets a decision.

  2. 02

    During

    You check the active guardrails and, with your firm's key, pause where the trader allows it.

  3. 03

    After

    You download the sealed case and verify it yourself, independently.

API

The essentials, in six routes

MethodRouteWhat for
POST/api/v1/risk-checkA decision before opening or scaling risk
GET/api/v1/guardrails/currentThe account's active guardrails
POST/api/v1/guardrails/executePause an account, where the trader allows it
GET/api/v1/evidence-packageThe sealed case, with its proof in Bitcoin
GET/api/v1/agent/accounts/{id}/nowAn account's risk state, right now
POST/api/v1/agentic/x402/risk-checkThe same check, paid with x402
Request
POST /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"
  }
}
Response
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.1

Principles

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.

  1. 01

    Recompute

    The record's SHA-256 fingerprint, from its content and its salt.

  2. 02

    Climb

    Its Merkle path, up to the root sealed in that hour.

  3. 03

    Confirm

    With OpenTimestamps, that the root is in Bitcoin.

See the public registry

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 risk
  • guardrailsThe active guardrails
  • session_briefThe session summary
  • evidence_summaryThe evidence summary
  • list_accountsThe accounts your key can read
  • get_account_nowAn account's state, right now
  • get_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.

PriceRouteWhat it returns
0.01 USDC/api/v1/agentic/x402/risk-checkThe engine's reading
0.05 USDC/api/v1/agentic/x402/risk-explainThe reading, with a short explanation by OX
0.25 USDC/api/v1/agentic/x402/risk-analysisThe reading, with an in-depth analysis by OX
  1. 1

    Ask

    The agent calls the route without payment.

  2. 2

    402

    OX212 replies "Payment Required" with the price.

  3. 3

    Pay

    The agent signs the USDC payment and calls again.

  4. 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

From $49/mo

Get started with OX212