When querying historical financial data or large lists of instruments from the TradeWatch API, responses are paginated to keep individual payloads manageable. When handling large result sets, we use cursor-based pagination. This technique segments the results into pages of a defined size, allowing you to move forward and backward through the pages efficiently.Documentation Index
Fetch the complete documentation index at: https://tradewatch.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
Cursor Pagination
Our API uses cursor-based pagination provides the following fields in the response:current_page: The encoded cursor representing the current pagecurrent_page_backwards: The encoded cursor for the current page when navigating backwardsprevious_page: The encoded cursor for the previous page (null if you’re on the first page)next_page: The encoded cursor for the next page (null if you’re on the last page)
Example Response
How to Use Pagination
- For the initial request, you don’t need to provide any pagination parameters.
- To retrieve the next page, use the value from
next_pagein your subsequent request. - To retrieve the previous page, use the value from
previous_pagein your subsequent request.
