Trades

Historical data of trades in a specific AMM pool

get
Trades for Exchange

https://data-api.defipulse.com/api/v1/blocklytics/pools/v1/trades/{address}
Returns historical trading data for a specific AMM pool.
Request
Response
Request
Path Parameters
address
required
string
Exchange address
Query Parameters
api-key
required
string
Create a free account at data.defipulse.com to obtain an API-key
platform
optional
string
Platform. Available values: - uniswap - uniswap-v2 - balancer - bancor - curve
direction
optional
string
Order direction. Available values: - asc - desc
orderBy
optional
string
Key to order by
offset
optional
integer
Results to skip (for pagination)
limit
optional
integer
Maximum number of rows to return
to
optional
string
Date in YYYY-MM-DD format (inclusive).
from
optional
string
Date in YYYY-MM-DD format (inclusive).
Response
200: OK
{
"query":
{
"direction":"desc","exchange":"0xa5407eae9ba41422680e2e00537571bcc53efbfd",
"fromDate":"Wed, 15 Jul 2020 00:00:00 GMT",
"limit":null,
"offset":0,
"orderBy":"id",
"toDate":"Thu, 16 Jul 2020 15:06:12 GMT",
"total_rows":632},
"results":[
{
"fromAmount":3760,
"fromSymbol":"sUSD",
"fromToken":"0x57ab1ec28d129707052df4df418d58a2d46d5f51",
"id":104712200079,
"price":1.0047874765957447,
"timestamp":"2020-07-16T15:03:52",
"toAmount":3778.000912,
"toSymbol":"USDC",
"toToken":"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"trader":"0x0691a532717fa905ba6b13b46dbf85083caeabd9",
"transaction":"0xbf98cc6193fb27140acd8b7a694ab2b90aa427e48ee433d7a7340fdba5a5158a"
},
{
"fromAmount":3021.3030910849116,
"fromSymbol":"sUSD",
"fromToken":"0x57ab1ec28d129707052df4df418d58a2d46d5f51",
"id":104712130108,
"price":0.9878982978735616,
"timestamp":"2020-07-16T15:03:06",
"toAmount":2984.740181042914,
"toSymbol":"DAI",
"toToken":"0x6b175474e89094c44da98b954eedeac495271d0f",
"trader":"0x9cf0b1ad309a9cb2e6d60c3774519b41aecdcce1",
"transaction":"0xcd4c1bd863782ee8355e8e341d78a435624b312d6c6f947db5b4b83b097233e8"
},
...]
}