Get trade history
Get trade history for a Bags V2 token on Robinhood Chain, newest first, using a compound keyset cursor. Every page respects limit (never over-returns), and ties within a busy second are never skipped.
For the next page pass both nextBeforeTs back as beforeTs and nextBeforeId back as beforeId. Both are null when the history is exhausted.
Request
- Base URLhttps://public-api-v2.bags.fm/api/v1
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Token address. Accepts any casing; normalized to EIP-55 checksum form.
Number of trades to return per page.
Cursor timestamp (unix seconds) from a previous page's nextBeforeTs. Sending only beforeTs without beforeId starts from strictly-older timestamps.
Cursor trade ID from a previous page's nextBeforeId. Must accompany beforeTs.
Response
Successfully retrieved trades
Example response
{
"success": true
}Changes
No recorded changes to this operation across all 1 revision of this API.