Orkid
API Reference

StateVector — flow & intent data

Paid read APIs over Orkid's proprietary transaction-flow telemetry — corridor heat and live order-eval books, billed per call via API key or x402.

StateVector is Orkid's owned telemetry surface: order-flow edge evaluations, corridor statistics, and intent records collected by our own listener and solver infrastructure. These endpoints serve the transaction-flow datasets — distinct from the quant panels (macro, filings, futures) documented in the manifest.

All endpoints accept either a partner X-ORKID-API-Key (flat per-key rate limits, no per-call charge) or an x402 payment per call in Base USDC — see Pay-per-call (x402). Anonymous requests receive 402 Payment Required advertising the price and response schema.

GET /api/v1/sv/flow — corridor heat

Aggregates graph-router edge telemetry into per-corridor statistics over a trailing window. A corridor is (venue, chain_in, token_in, chain_out, token_out) — currently all records are venue: "dln" (deBridge DLN); the venue parameter future-proofs additional sources.

Price: $0.01 / call (x402) · free with API key

ParameterTypeDefaultDescription
window_minnumber240Trailing window in minutes, clamped 1–1440
venuestring—Filter to one venue (e.g. dln)
min_depthnumber0Drop corridors whose max observed depth is below this USD value
limitnumber50Max corridors returned, capped at 500
curl -H "X-ORKID-API-Key: <key>" \
  "https://orkidlabs.xyz/api/v1/sv/flow?window_min=240&limit=10"
{
  "as_of": "2026-11-15T04:11:00Z",
  "window_min": 240,
  "count": 3,
  "total_corridors": 48,
  "corridors": [
    {
      "venue": "dln",
      "chain_in": 42161,
      "token_in": "USDC",
      "addr_in": "0xaf88d065e77c8cc2239327c5edb3a432268e5831",
      "chain_out": 56,
      "token_out": "USDC",
      "addr_out": "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d",
      "edges": 5,
      "depth_usd_med": 1173.54,
      "depth_usd_max": 499206.48,
      "depth_usd_sum": 507439.19,
      "margin_bps_med": -27.12,
      "margin_bps_p90": -11.02,
      "take_usd_med": 498.05,
      "cost_usd_med": 6.21,
      "usd_eff_med": -33.4,
      "first_seen": "2026-11-14T22:30:11Z",
      "last_seen": "2026-11-15T03:49:34Z",
      "span_min": 319.4
    }
  ],
  "coverage": { "edges": { "lines": 29000, "scanned": 29000, "kept": 4200, "oldest_ts": "2026-11-14T16:56:32Z" } }
}

Corridors are sorted by depth_usd_sum descending — the hottest corridors first. margin_bps_* and usd_eff_med are the router's own edge-economics estimates; negative medians are normal for public-book flow (the data is honest about where edges do not clear costs).

GET /api/v1/sv/intents — live order-eval book

Recent per-order evaluation records from our DLN listener and graph-router path evaluator — the same book our own policy engine reads.

Price: $0.005 / call (x402) · free with API key

ParameterTypeDefaultDescription
srcstring—Filter source: dln (order evals) or path (router path evals)
min_bpsnumber0Minimum margin in bps
limitnumber—Max records returned
since_minnumber—Only records newer than N minutes
curl -H "X-ORKID-API-Key: <key>" \
  "https://orkidlabs.xyz/api/v1/sv/intents?src=dln&min_bps=15&limit=10&since_min=180"
{
  "as_of": "2026-11-15T04:11:01Z",
  "count": 2,
  "records": [
    {
      "ts": "2026-11-15T03:39:40Z",
      "src": "dln",
      "order": "0xf7bbfb4d51a9363a560c7bb4d616fededf6307bfa667cfec5cc3dade181bb310",
      "give_chain": 7565164,
      "give_sym": "USDC",
      "give_amt": 1.388818,
      "take_chain": 137,
      "take_sym": "POL",
      "take_amt": 12.3997,
      "give_usd": 1.3867,
      "take_usd": 1.0386,
      "cost_usd": 0.0531,
      "margin_bps": -252.1
    }
  ],
  "coverage": { "dln": { "lines": 897, "kept": 46 } }
}

Records are sorted by margin (best first). src: "path" returns graph-router path evaluations — sparser cadence, same schema.

Freshness & coverage

  • as_of is the server's read timestamp; coverage reports how many source lines were scanned vs. kept — treat kept/lines as the honest selectivity of the window.
  • Both endpoints read bounded tails of append-only telemetry — deep history is not served on these routes. Windowed archives and bulk exports are planned as subscription tiers; contact us for current availability.
  • Data is own telemetry: produced by Orkid's listener fleet, not republished from a third-party API.

Errors

StatusMeaning
402Payment required — response body carries x402 accepts requirements
401/403Missing/invalid API key
429Rate limit (per-key for API keys, per-IP at the edge for paid calls)
503Upstream index unavailable — retry; no charge on failed upstream

On this page