Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| developers:apiv2 [2026/09/07 13:27] – chad | developers:apiv2 [2026/09/07 13:43] (current) – chad | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| - | A single, streaming WebSocket connection for real-time market data, account/ | + | A single, streaming WebSocket connection for real-time market data, account/ |
| **Proto Files:** the '' | **Proto Files:** the '' | ||
| Line 7: | Line 7: | ||
| ===== Key Capabilities ===== | ===== Key Capabilities ===== | ||
| - | ^ Capability | + | ^ Feature ^ Included |
| - | | **Real-time Quotes** | Live bid/ask updates for any instrument. | | + | | **Real-time Quotes** | ✅ | Stream live bid/ |
| - | | **Top of Book (L1)** | Best bid and best offer. | | + | | **Level 1 Data** | ✅ | Access top-of-book best bid and offer (BBO). | |
| - | | **Market Depth (L2)** | Full depth of market, aggregated by price. | | + | | **Level 2 (Market Depth)** | ✅ | View **up to 10 levels** |
| - | | **Market by Order (MBO)** | Individual | + | | **Market by Order (MBO)** | ✅ | See individual |
| - | | **Trade Feed (Ticker)** | Real-time stream of executions. | | + | | **Trade Feed (Ticker)** | ✅ | Get a **real-time execution |
| - | | **Order | + | | **Order |
| - | | **Pre-trade Margin** | Preview margin impact before placing an order. | | + | | **Position & Account |
| - | | **Account | + | | **Instrument Metadata** | ✅ | Retrieve contract |
| - | | **Instrument Metadata** | Contract | + | | **Spread |
| - | | **Spread | + | | **Risk & Margin Data** | ✅ | Get real-time margin requirements and risk exposure. | |
| - | | **Fractional Volumes** | Decimal order quantities (e.g. Kalshi). | | + | | **Historical Data Requests** | ✅ | Fetch recent trade history and market activity. | |
| - | | **Efficient Binary Encoding** | Protobuf for low-bandwidth, | + | | **Efficient Binary Encoding** | ✅ | Uses Protobuf for **low-bandwidth, |
| - | | **Secure Authentication** | API-key authentication | + | | **Secure Authentication** | ✅ | Ensures safe access with API key-based |
| - | | **Robust Reconnection** | Reconnect and re-subscribe after a disconnect. | | + | | **Robust Reconnection** | ✅ | Auto-reconnect and resume subscriptions on disconnection. | |
| ===== Why Use This API? ===== | ===== Why Use This API? ===== | ||
| - | * **Fast** | + | * **Fast |
| - | * **Compact** | + | * **Compact |
| - | * **Complete** — L1, L2 and Market-by-Order data, plus trading, positions and risk in one connection. | + | * **Comprehensive Market Data** – Access **Level 1, Level 2, and Market by Order** data. |
| - | * **Built for futures** — instrument | + | * **Built for Futures Trading** – Includes **contract |
| - | * **Secure** — WSS (TLS) transport with API-key authentication. | + | * **Scalable & Industry-Proven** – Handles |
| - | + | * **Secure | |
| - | ===== Message Model ===== | + | * **Event-Driven & Easy to Integrate** – A simple subscription model delivers the data you need. |
| - | + | ||
| - | All messages travel inside a transport envelope, one Protobuf message per WebSocket | + | |
| - | + | ||
| - | * '' | + | |
| - | | + | |
| - | + | ||
| - | Each envelope is a '' | + | |
| - | + | ||
| - | < | + | |
| - | message ClientMessage { | + | |
| - | oneof payload { | + | |
| - | Heartbeat | + | |
| - | auth.LoginRequest | + | |
| - | market.MarketSubscribe | + | |
| - | account.AccountSubscribe | + | |
| - | orderrouting.OrderSubmit | + | |
| - | // ... | + | |
| - | } | + | |
| - | } | + | |
| - | + | ||
| - | message ServerMessage { | + | |
| - | oneof payload { | + | |
| - | Heartbeat | + | |
| - | auth.LoginResponse | + | |
| - | market.MarketSnapshot | + | |
| - | account.AccountSnapshot | + | |
| - | orderrouting.OrderUpdate | + | |
| - | // ... | + | |
| - | } | + | |
| - | } | + | |
| - | </ | + | |
| - | + | ||
| - | The full envelope is in '' | + | |
| - | + | ||
| - | ===== Endpoints ===== | + | |
| - | + | ||
| - | ^ Environment ^ URL ^ | + | |
| - | | Simulator | '' | + | |
| - | | Live | '' | + | |
| - | | Admin (Simulator) | '' | + | |
| - | | Admin (Live) | '' | + | |
| - | + | ||
| - | All connections are WSS (TLS) on port 443. Develop and certify against the Simulator. See [[developers: | + | |
| - | + | ||
| - | ===== Versions ===== | + | |
| - | + | ||
| - | | + | |
| - | * **V1** (''/ | + | |
| ===== Developer Guides ===== | ===== Developer Guides ===== | ||
| - | ^ Section ^ Description ^ | + | ^ **Section** |
| - | | [[developers: | + | | **[[developers: |
| - | | [[developers: | + | | **[[developers: |
| - | | [[developers: | + | | **[[developers: |
| - | | [[developers: | + | | **[[developers: |
| - | | [[developers: | + | | **[[developers: |
| - | | [[developers: | + | | **[[developers: |
| - | | [[developers: | + | | **[[developers: |
| - | | [[developers: | + | | **[[developers: |
| - | | [[developers: | + | | **[[developers: |