get_trades
Fetch recent public trades for a market, newest first. Use the returned cursor to page through full trade history until the cursor is null. No credentials required.
Instructions
Get recent public trades (prints) for one market, newest first. Returns { items, next_cursor }. items is this page of results; next_cursor is an opaque token for the next page, or null when this is the last page. To read the full history, keep calling with cursor: <previous next_cursor> until next_cursor is null. limit sets the size of ONE page, not a total. Public — no credentials needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of trades per page (max 1000). | |
| cursor | No | Opaque pagination cursor. Omit for the first page; to get the next page, pass back the `next_cursor` from the previous response verbatim. Stop when `next_cursor` is null — that means there are no more results. Never construct or edit a cursor: the format is not part of the contract. | |
| market_id | Yes | Market id, e.g. "BTC-USDX-PERP". |