Skip to main content
GET
/
gateway
/
v1
/
token
/
dex-trades
Token DEX Trade History
curl --request GET \
  --url https://api.ask.surf/gateway/v1/token/dex-trades
{
  "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": "<string>"
}

Query Parameters

address
string
required

Token contract address (0x-prefixed hex)

Example:

"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"

chain
enum<string>
default:ethereum

Chain. Can be ethereum or base.

Available options:
ethereum,
base
Example:

"ethereum"

limit
integer<int64>
default:20

Results per page

Required range: 1 <= x <= 100
Example:

20

offset
integer<int64>
default:0

Pagination offset

Required range: x >= 0
Example:

0

Response

OK

data
object[] | null
required
meta
object
required
$schema
string<uri>

A URL to the JSON Schema for this object.

Example:

"https://example.com/schemas/DataResponseDexTradeItem.json"