Trades
Data feed of the trades on a market. Data contains order fills updates, such as the order side, price and size.
Method Declaration
Python
# class `Trades`
def subscribe(self, market: str, batched: bool = True) -> Self
def unsubscribe(self, market: str)Schema
The field id is the market/ticker as a string. For a spot market the ticker is prefixed with SPOT: (e.g. SPOT:MARTI-USDC); a bare ticker is a perpetual market.
The field contents is serialized using the following schemas.
Messages
| Initial | Update |
|---|---|
TradesInitialMessage | TradesUpdateMessage * |