Trades - Token (V3)

Retrieve a list of trades with various filters of a specified token.

  • If time range and block number range are not provided:
    • If sort_by = block_unix_time, default to fetching swaps within the last 7 days.
    • If sort_by = block_number, default to fetching swaps within the last 500,000 blocks.
  • Only one type of filter is accepted: either block time range or block number range.
  • If filtering by block time (after_time, before_time), only allow sorting by block_unix_time.
  • If filtering by block number (after_block_number, before_block_number), only allow sorting by block_number.
  • Constraints:
    • Block time range: cannot exceed 30 days.
    • Block number range: cannot exceed 500,000 blocks.
    • If only after_time is provided (no before_time), it must be within the last 30 days.
    • If only after_block_number is provided (no before_block_number), it must be within the most recent 500,000 blocks.
Language
Credentials
Header
Click Try It! to start a request and see the response here!