Trades Options
trades_option
Taker executions on option instruments. Same wire format as perp trades. History TTL is 120 days (vs 30 days for perps) since options can trade infrequently between expiries.
Channel: trades_option:{instrument}
Example: trades_option:BTC_USDC-31OCT25-130000-C
Payload
["150.00", "-10", 1704067200000]| Index | Type | Description |
|---|---|---|
| 0 | string | Price (premium, always positive) |
| 1 | string | Signed size — positive = taker bought, negative = taker sold |
| 2 | integer | Trade execution timestamp (ms) |
sub.on("publication", (ctx) => {
const [price, signedSize, timestamp] = ctx.data;
const side = Number(signedSize) >= 0 ? "buy" : "sell";
});History
Last 100 trades available via the history API on bidirectional transports (120-day TTL). See Transports & Connection for subscribe examples with history fetch.
On reconnect, the SDK automatically recovers missed trades using the last known stream position.
Updated 1 day ago
