GET
/
networks
/
{network}
/
pools
/
{pool_address}
/
trades
Past 24 Hour Trades by Pool Address
curl --request GET \
  --url https://api.coingecko.com/api/v3/onchain/networks/{network}/pools/{pool_address}/trades \
  --header 'x-cg-demo-api-key: <api-key>'
{
  "data": [
    {
      "id": "eth_19612255_0x0b8ac5a16c291832c1b4d5f0d8ef2d9d58e207cd8132c32392295617daa4d422_158_1712595165",
      "type": "trade",
      "attributes": {
        "block_number": 19612255,
        "tx_hash": "0x0b8ac5a16c291832c1b4d5f0d8ef2d9d58e207cd8132c32392295617daa4d422",
        "tx_from_address": "0x42c037c594eefeca741e9dd66af91e7ffd930872",
        "from_token_amount": "1.51717616246451",
        "to_token_amount": "5535.099061",
        "price_from_in_currency_token": "1.0",
        "price_to_in_currency_token": "0.000274100995437363",
        "price_from_in_usd": "3656.8970003075",
        "price_to_in_usd": "1.00235910799619",
        "block_timestamp": "2024-04-08T16:52:35Z",
        "kind": "buy",
        "volume_in_usd": "5548.15695745452",
        "from_token_address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
        "to_token_address": "0xdac17f958d2ee523a2206206994597c13d831ec7"
      }
    }
  ]
}

Note

  • Cache/Update Frequency: every 60 seconds.

Authorizations

x-cg-demo-api-key
string
header
required

Path Parameters

network
string
default:eth
required

network ID *refers to /networks

Example:

"eth"

pool_address
string
default:0x06da0fd433c1a5d7a4faa01111c044910a184553
required

pool contract address

Example:

"0x06da0fd433c1a5d7a4faa01111c044910a184553"

Query Parameters

trade_volume_in_usd_greater_than
number

filter trades by trade volume in USD greater than this value Default value: 0

token
string
default:base

return trades for token use this to invert the chart Available values: 'base', 'quote' or token address Default value: 'base'

Response

200 - application/json

Get last 300 trades in past 24 hours from a pool

data
object[]