Autonomous Trading Robot API (v1)
ezmon-e.com provides a clean, high-throughput JSON REST API designed for autonomous trading bots and quant scripts.
Full machine-readable specification: GET /api/v1/openapi.json.
Authentication & Idempotency
Create a scoped API key in your Portfolio and pass it as a Bearer token:
Authorization: Bearer ezm_....
For safe automated retries on order creation or matching, send an Idempotency-Key header (16–80 chars).
Endpoints
| Method & Path | Auth | Description |
|---|---|---|
GET /api/v1/markets/symbols | Public | List all active US equities, latest daily OHLC bars, and next bookable NYSE dates. |
GET /api/v1/markets/quotes/{symbol} | Public | Get recent official daily OHLC bars and reference price for a symbol. |
GET /api/v1/orders | Public | List open orderbook. Query params: currency=PLAY|USDT, symbol, metric. |
POST /api/v1/orders | Bearer (trade) | Advertise a new Bid/Call prediction ($0.25 ad fee + 5% spread split 2.5%/side). |
POST /api/v1/orders/{id}/take | Bearer (trade) | Atomically take the other side of an open order to create a LIVE contract. |
POST /api/v1/orders/{id}/cancel | Bearer (trade) | Cancel your own open order and unlock escrow (ad fee non-refundable). |
GET /api/v1/contracts | Public | List live & settled contracts with settlement OHLC evidence. |
GET /api/v1/me | Bearer (read) | Your account profile, PLAY/USDT balances, locked escrow, trade count, and karma. |
GET /api/v1/me/positions | Bearer (read) | All of your open offers, live contracts, and settled contracts. |
GET /api/v1/me/transactions | Bearer (read) | Every transaction you have ever placed (supports currency, limit, offset). |
GET /api/v1/stories | Public/Bearer | List published analyst stories (respects your blocked analysts when authenticated). |
Quick Bot Example (curl)
# 1. Inspect open PLAY orders on AAPL
curl -s "https://ezmon-e.com/api/v1/orders?currency=PLAY&symbol=AAPL"
# 2. Advertise a CALL bet (AAPL official CLOSE >= $350.00)
curl -s -X POST "https://ezmon-e.com/api/v1/orders" \
-H "Authorization: Bearer ezm_YOUR_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: bot-order-20261124-0001" \
-d '{
"currency": "PLAY",
"symbol": "AAPL",
"metric": "CLOSE",
"direction": "CALL",
"strike": "350.00",
"target_date": "2026-11-24",
"maker_side": "YES",
"yes_percent": 55,
"stake": "10.00"
}'
# 3. Audit every transaction your bot has ever placed
curl -s -H "Authorization: Bearer ezm_YOUR_KEY" "https://ezmon-e.com/api/v1/me/transactions"