{
"kind": "Trade",
"local_ts_ms": 0,
"trade": {
"aggressor_side": "example",
"asset_id": "example",
"exchange_ts_ms": 0,
"fee_rate_bps": 0,
"market_id": "example",
"outcome": "example",
"price": 0.5,
"side": "example",
"size": 0.5,
"source_channel": "example",
"trade_id": "example"
}
}{
"kind": "Connected"
}{
"gap_ms": 0,
"kind": "Reconnected"
}{
"dropped": 0,
"first_seq": 0,
"kind": "Lagged",
"last_seq": 0
}{
"kind": "BookInvalidated",
"market_id": "example",
"reason": null
}{
"kind": "Error",
"message": "example"
}{
"market_id": "example",
"outcome": "example"
}{
"market_id": "example",
"outcome": "example"
}Public trade-tape stream — receive every print as it lands.
Public trade-tape stream — receive every print as it lands.Documentation Index
Fetch the complete documentation index at: https://docs.openpx.trade/llms.txt
Use this file to discover all available pages before exploring further.
{
"kind": "Trade",
"local_ts_ms": 0,
"trade": {
"aggressor_side": "example",
"asset_id": "example",
"exchange_ts_ms": 0,
"fee_rate_bps": 0,
"market_id": "example",
"outcome": "example",
"price": 0.5,
"side": "example",
"size": 0.5,
"source_channel": "example",
"trade_id": "example"
}
}{
"kind": "Connected"
}{
"gap_ms": 0,
"kind": "Reconnected"
}{
"dropped": 0,
"first_seq": 0,
"kind": "Lagged",
"last_seq": 0
}{
"kind": "BookInvalidated",
"market_id": "example",
"reason": null
}{
"kind": "Error",
"message": "example"
}{
"market_id": "example",
"outcome": "example"
}{
"market_id": "example",
"outcome": "example"
}A public trade (any counterparty), not tied to a local order.
Initial socket establishment.
Socket re-established after an outage — gap_ms is the wall-clock interval since the last received message.
Slow consumer dropped messages — every affected book is invalidated and must be rebuilt from the next Snapshot.
A specific market's book is no longer trustworthy — drop cache and wait for next Snapshot (reasons: Reconnect, Lag, SequenceGap, ExchangeReset).
A non-fatal error observed on the connection (session continues).
Add to the active trades subscription set
Remove from the active trades subscription set