Docs / Nitro Trading Guide

Nitro Trading Guide

How to build AI trading agents with CEX speed, DEX self-custody, and IoT data signals — all verifiable on 0G DA.

01 — Why Nitro for trading

The problem with existing agentic trading

Gemini, Coinbase, and other exchanges have launched "agentic trading" features. They let you point an AI at your CEX account and let it trade. But this approach has three structural gaps:

Nitro adds: co-location with exchange infrastructure, self-custody DEX parallel leg, IoT data subscription, and every decision archived on 0G DA.
02 — Full pipeline

The Opacus Nitro trading pipeline

IoT Sensor
GPS · Energy · Weather
Data Market
0G DA · signed hash
Nitro Node
QUIC, co-located
CEX Order
Gemini · Coinbase
+
DEX Hedge
Base · 0G Jaine
0G DA Log
immutable audit

Each stage is independently verifiable:

03 — Step-by-step

Building the pipeline

Step 1 — Subscribe to a Data Market signal

Find a verified IoT listing (e.g. Istanbul energy consumption, GPS fleet data) and purchase it. For 0G DA listings, delivery is instant — the dataHash is returned at purchase time, escrow auto-released.

GETList available IoT data
GET /api/data-market/listings?category=iot-energy&location=istanbul
Authorization: Bearer YOUR_API_KEY

// Response
{
  "listings": [
    {
      "id": "dm_istanbul_energy",
      "title": "Istanbul Energy Grid — 5-min intervals",
      "category": "iot-energy",
      "location": { "city": "Istanbul", "country": "TR" },
      "priceUsdc": 2.50,
      "dataHash": "0x3c2a...",  // 0G DA hash
      "walletAddress": "0xABCD...",
      "signature": "0x..."
    }
  ]
}
POSTPurchase listing — instant delivery for 0G DA
POST /api/data-market/purchase/dm_istanbul_energy
Authorization: Bearer YOUR_API_KEY

// Response
{
  "success": true,
  "purchaseId": "pur_...",
  "escrowStatus": "released",
  "dataHash": "0x3c2a...",
  "accessUrl": "https://0g-da.opacus.xyz/fetch/0x3c2a..."
}

Step 2 — Route to optimal Nitro node for your exchange

GETGet Nitro node co-located with Gemini
GET /api/nitro/route?exchange=gemini
Authorization: Bearer YOUR_API_KEY

// Response
{
  "ok": true,
  "nitro_node": { "label": "Virginia", "endpoint": "quic://us-iad-1.0g.network:4433" },
  "quic_endpoint": "quic://us-iad-1.0g.network:4433",
  "latency_comparison": { "speedup_p95": "4.0x", "quic_p50_ms": 12 }
}

Step 3 — Execute CEX + DEX task with data signal

POSTExecute trading pipeline via Agent Kernel
POST /api/runtime/task-execution
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

{
  "intent": "trade",
  "chain": "base",
  "exchange": "gemini",
  "nitro": true,
  "signal": "0x3c2a...",
  "log_to_0g": true
}

// Response
{
  "taskId": "task_...",
  "status": "executed",
  "nitroNode": "Virginia (us-iad-1)",
  "cexOrderId": "gemini_...",
  "dexTxHash": "0x...",
  "ogDaLogHash": "0x...",
  "latencyMs": 14,
  "sig": "ed25519:...",
  "agentPubKey": "..."
}
Tip: Set log_to_0g: true to archive the full bundle (signal hash, agent decision, CEX order ID, DEX tx hash, latency) to 0G DA. This gives you an immutable audit trail and enables backtesting against ground-truth data.
04 — Exchange support

Supported exchanges and Nitro anchor mapping

ExchangeNitro NodeAWS Regionp50 QUIC (est.)
GeminiVirginia (us-iad-1)us-east-1~12ms
CoinbaseDublin (ie-dub-1)eu-west-1~9ms
KrakenVirginia (us-iad-1)us-east-1~12ms
BinanceTokyo (jp-nrt-1)ap-northeast-1~14ms
OKXSingapore (sg-sin-1)ap-southeast-1~16ms
BybitSingapore (sg-sin-1)ap-southeast-1~16ms
0G Jaine (DEX)Singapore (sg-sin-1)ap-southeast-1~16ms
05 — Data Market signal types

IoT signal categories for trading

CategoryUse caseExample
iot-energyEnergy grid load → predict demand, tokenized energy futuresIstanbul energy grid 5-min
iot-gpsFleet movement → supply chain signals, commodity tradingCargo vessel positions
iot-weatherWeather → agricultural commodity predictionTemperature + precipitation feeds
iot-industrialFactory output → inventory predictionProduction line throughput
iot-environmentAir quality, pollution → ESG signalsPM2.5 index by city
06 — Vs Gemini Agentic

What Opacus Nitro adds on top of Gemini Agentic Trading

FeatureGemini native+ Opacus Nitro
CEX order execution✓ Yes✓ Yes (faster via QUIC co-location)
Connection latencyTCP/HTTPS p95 ~100msQUIC 0-RTT p95 ~28ms
DEX self-custody legNot available✓ Base + 0G Jaine simultaneously
Real-world data signalsMarket data only✓ IoT Data Market, 0G DA verified
Immutable trade logInternal Gemini only✓ 0G DA, cryptographically signed
Strategy marketplaceNo✓ OpenClaw skills, agent-to-agent
07 — Quickstart checklist

Checklist: get trading in under 30 minutes

  1. Connect wallet at opacus.xyz/agentboard.html
  2. Enable Nitro capability (Pro plan or $9/mo add-on)
  3. Create an agent — set exchange and nitro: true in agent config
  4. Browse Data Market → purchase an IoT listing matching your strategy
  5. Send a task: POST /api/runtime/task-execution with signal = purchased dataHash
  6. Check the 0G DA log hash in the response for your audit trail
See Nitro API reference for full endpoint docs, or the Nitro landing page for an interactive demo.