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:
- Latency: Standard HTTPS/TCP to exchange APIs has p95 latency of 100–200ms. Nitro's QUIC 0-RTT drops this to ~12ms for co-located nodes.
- Custody: Exchange-hosted agentic trading is custodial. You can't run a parallel DEX leg with self-custody in the same pipeline.
- Data: Where does the signal come from? Exchanges give you AI that knows market data. Opacus lets you bring verified IoT data from the Data Market — energy consumption, GPS, weather — and feed it into your agent's strategy with cryptographic proof of origin.
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:
- Data Market listing — data seller signs the 0G DA hash with their wallet. You can recover the signer from the signature and verify it matches the listing's
walletAddress. - Nitro routing —
GET /nitro/route?exchange=geminireturns the co-located QUIC endpoint. - CEX order — standard Gemini/Coinbase REST, executed through Nitro node for latency advantage.
- DEX hedge — Opacus execution wallet performs swap on Base or 0G Jaine. Non-custodial.
- 0G DA log —
log_to_0g: truein the task execution call archives the full decision bundle.
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
| Exchange | Nitro Node | AWS Region | p50 QUIC (est.) |
|---|---|---|---|
| Gemini | Virginia (us-iad-1) | us-east-1 | ~12ms |
| Coinbase | Dublin (ie-dub-1) | eu-west-1 | ~9ms |
| Kraken | Virginia (us-iad-1) | us-east-1 | ~12ms |
| Binance | Tokyo (jp-nrt-1) | ap-northeast-1 | ~14ms |
| OKX | Singapore (sg-sin-1) | ap-southeast-1 | ~16ms |
| Bybit | Singapore (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
| Category | Use case | Example |
|---|---|---|
iot-energy | Energy grid load → predict demand, tokenized energy futures | Istanbul energy grid 5-min |
iot-gps | Fleet movement → supply chain signals, commodity trading | Cargo vessel positions |
iot-weather | Weather → agricultural commodity prediction | Temperature + precipitation feeds |
iot-industrial | Factory output → inventory prediction | Production line throughput |
iot-environment | Air quality, pollution → ESG signals | PM2.5 index by city |
06 — Vs Gemini Agentic
What Opacus Nitro adds on top of Gemini Agentic Trading
| Feature | Gemini native | + Opacus Nitro |
|---|---|---|
| CEX order execution | ✓ Yes | ✓ Yes (faster via QUIC co-location) |
| Connection latency | TCP/HTTPS p95 ~100ms | QUIC 0-RTT p95 ~28ms |
| DEX self-custody leg | Not available | ✓ Base + 0G Jaine simultaneously |
| Real-world data signals | Market data only | ✓ IoT Data Market, 0G DA verified |
| Immutable trade log | Internal Gemini only | ✓ 0G DA, cryptographically signed |
| Strategy marketplace | No | ✓ OpenClaw skills, agent-to-agent |
07 — Quickstart checklist
Checklist: get trading in under 30 minutes
- Connect wallet at opacus.xyz/agentboard.html
- Enable Nitro capability (Pro plan or $9/mo add-on)
- Create an agent — set
exchangeandnitro: truein agent config - Browse Data Market → purchase an IoT listing matching your strategy
- Send a task:
POST /api/runtime/task-executionwithsignal= purchaseddataHash - 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.