Token DEX Trade History
curl --request GET \
--url https://api.asksurf.ai/gateway/v1/token/dex-tradesimport requests
url = "https://api.asksurf.ai/gateway/v1/token/dex-trades"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.asksurf.ai/gateway/v1/token/dex-trades', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"amount_usd": 123,
"block_time": 123,
"project": "<string>",
"taker": "<string>",
"token_bought_amount": 123,
"token_bought_symbol": "<string>",
"token_pair": "<string>",
"token_sold_amount": 123,
"token_sold_symbol": "<string>",
"tx_hash": "<string>",
"version": "<string>",
"token_bought_address": "<string>",
"token_sold_address": "<string>"
}
],
"meta": {
"cached": true,
"credits_used": 123,
"limit": 123,
"offset": 123,
"total": 123
},
"$schema": "https://example.com/schemas/DataResponseDexTradeItem.json"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"$schema": "https://example.com/schemas/DataAPIError.json"
}Token
DEX Trade History
GET
/
gateway
/
v1
/
token
/
dex-trades
Token DEX Trade History
curl --request GET \
--url https://api.asksurf.ai/gateway/v1/token/dex-tradesimport requests
url = "https://api.asksurf.ai/gateway/v1/token/dex-trades"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.asksurf.ai/gateway/v1/token/dex-trades', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"amount_usd": 123,
"block_time": 123,
"project": "<string>",
"taker": "<string>",
"token_bought_amount": 123,
"token_bought_symbol": "<string>",
"token_pair": "<string>",
"token_sold_amount": 123,
"token_sold_symbol": "<string>",
"tx_hash": "<string>",
"version": "<string>",
"token_bought_address": "<string>",
"token_sold_address": "<string>"
}
],
"meta": {
"cached": true,
"credits_used": 123,
"limit": 123,
"offset": 123,
"total": 123
},
"$schema": "https://example.com/schemas/DataResponseDexTradeItem.json"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"$schema": "https://example.com/schemas/DataAPIError.json"
}