Trades - All (V3)

Retrieve a list of trades with various filters.

  • Solana notes:
    • Transaction data includes signers — a list of accounts that authorize the transaction with their signatures.
  • 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.
Ideas 💡
  • Get recent DEX trades across all tokens and pairs on a specific chain.
  • Useful for building real-time trade feeds or monitoring on-chain activity.
  • Filter by DEX or chain to spot volume spikes or new trading patterns.
  • Ideal for dashboards, bots, or alert systems watching market flow.
Language
Credentials
Header
Click Try It! to start a request and see the response here!