Trades
Past 24 Hour Trades by Pool Address
This endpoint allows you to query the last 300 trades in the past 24 hours based on the provided pool address
get/networks/{network}/pools/{pool_address}/trades
Request
- Base URL: https://api.geckoterminal.com/api/v2
- URL: https://api.geckoterminal.com/api/v2/networks/{network}/pools/{pool_address}/trades
- Auth: none declared
Path parameters
networkstring required
Example:eth
network ID<br>*refers to /networks
pool_addressstring required
Example:0x60594a405d53811d3bc4766596efd80fd545a270
pool contract address
Query parameters
trade_volume_in_usd_greater_thannumber
Example:100000
filter trades by trade volume in USD greater than this value
trading_period'1d' | '7d' | '30d'
relative lookback window (Pro API only, defaults to 1d)
cursorstring
opaque cursor from a previous response's meta.next_cursor (Pro API only)
per_pageinteger
max rows to return (Pro API only, defaults to 300)
tokenstring
return trades for token<br>use this to invert the data<br>Available values: 'base', 'quote', or token address
Response
Get last 300 trades in past 24 hours from a pool
Example response
{
"data": [
{
"id": "eth_19612255_0x0b8ac5a16c291832c1b4d5f0d8ef2d9d58e207cd8132c32392295617daa4d422_158_1712595165",
"type": "trade",
"attributes": {
"block_number": 19612255,
"block_timestamp": "2024-04-08T16:52:35Z",
"tx_hash": "0x0b8ac5a16c291832c1b4d5f0d8ef2d9d58e207cd8132c32392295617daa4d422",
"tx_from_address": "0x42c037c594eefeca741e9dd66af91e7ffd930872",
"kind": "buy",
"from_token_address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"to_token_address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"from_token_amount": "1.51717616246451",
"to_token_amount": "5535.099061",
"price_from_in_usd": "3656.8970003075",
"price_to_in_usd": "1.00235910799619",
"price_from_in_currency_token": "1.0",
"price_to_in_currency_token": "0.000274100995437363",
"volume_in_usd": "5548.15695745452"
}
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.