Skip to main content
Understanding these core concepts will help you structure queries correctly and navigate datasets efficiently across all Falcon endpoints.

Agent IDs

Every Falcon dataset is queried using an agent_id. The agent_id you include in your request determines which dataset is returned. You use the same endpoint for all datasets — only the agent_id changes.

Pagination

Falcon supports pagination to efficiently navigate large datasets. Use the pagination object in your request to control how many records are returned and where the result set begins. To calculate the offset for any page, use this formula:
For example, to fetch page 3 with 25 results per page:
The offset is 25 × (3 - 1) = 50.

Time filters

Many Falcon datasets support filtering results by time range. You pass time filters inside the params object as Unix timestamps represented as strings.
Most endpoints use Unix timestamps in seconds. The Orderbook endpoint uses milliseconds. Check the dataset-specific documentation to confirm the expected unit.

Converting to Unix timestamps

Use the examples below to generate the current Unix timestamp in your language:
To query the last 24 hours, subtract 86400 seconds from the current timestamp: