Skip to main content
client.data.core.getTrades returns historical fills across markets. Combine filters to analyse liquidity, user behaviour, or market conditions.

Request

Parameters

NameTypeRequiredDefaultNotes
limitnumber (0–10000)100Page size.
offsetnumber (0–10000)0Page offset.
takerOnlybooleantrueSet to false to include maker fills.
filterType"CASH" | "TOKENS"Must be provided with filterAmount.
filterAmountnumber (≥ 0)Minimum cash/tokens threshold.
marketstring[]Condition IDs (mutually exclusive with eventId).
eventIdnumber[]Event IDs (mutually exclusive with market).
userstring (address)Filter by participant.
side"BUY" | "SELL"Filter by trade direction.
⚠️ Provide both filterType and filterAmount or neither. Mixing them triggers a validation error. Likewise, market and eventId cannot be combined.

Response

Usage example

Failure modes

  • Missing paired filters → validation error referencing both fields.
  • Conflicting market/eventId → validation error.
  • HTTP failure → HttpError with parsed body.
  • Network failure → Error("Network error: …") with original cause.