Many Bullish Trading API endpoints support optional query parameters that filter the results down to only the records you care about. Filtering is designed around a simple principle: if a field appears in the API response, you can filter on it.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/bullish-exchange/api-docs/llms.txt
Use this file to discover all available pages before exploring further.
What Fields Can Be Filtered
Only fields that are returned in an API response may be used as filter parameters. This “what you see is what you query” rule means you never need to guess what filter keys are available — if the response includes astatus field, you can filter by status; if it includes a symbol field, you can filter by symbol. For the full list of filterable fields on any given endpoint, consult that endpoint’s response schema in the API reference.
Simple Field Filters
Pass a field name and value as a query parameter to filter results to records that match exactly:Datetime and Timestamp Range Filters
For datetime and timestamp fields, simple equality matching is rarely useful. Instead, the API supports four range operators applied using bracket syntax:| Operator | Meaning |
|---|---|
gte | Greater than or equal to |
lte | Less than or equal to |
gt | Strictly greater than |
lt | Strictly less than |
fieldName[operator]=value. For example, createdAtTimestamp[gte]=1686447835000 reads as “createdAtTimestamp is greater than or equal to 1686447835000”.
All timestamps in the Bullish Trading API are EPOCH time expressed in milliseconds.
Timestamp Filter Examples
Filter trades created at or after a specific EPOCH millisecond timestamp:createdAtDatetime is greater than or equal to 2023-04-06T00:00:00.000Z and less than or equal to 2023-06-07T00:00:00.000Z.
Combining Filters with Pagination
Filter parameters and pagination parameters can be freely combined in the same request. Pagination parameters are distinguished from filter parameters by their leading underscore prefix (_pageSize, _nextPage, etc.), so there is no ambiguity: