Skip to content
TraceFast Docs

DEX trades an address took part in

Open the address on its entity page →

The swaps on DEX pools this address sent or received the output of, newest first — the venue and its version, the pool, the tokens sold and bought with their raw amounts, and an estimated USD value at the hour of the trade. Coverage is what the DEX index holds: swaps on pools it has not discovered are missing, and Balancer V2 swaps (whose event names no trader) are not listed, so an empty list is not proof the address never traded. The address is matched as the swap event's sender or recipient: a trade routed through a contract is listed under the contract. Continue with nextCursor.

GET https://tracefast.xyz/api/v1/chains/1/entities/{address}/dex-trades
ParameterInTypeNotes
addresspathstringThe address, 0x + 40 hex, any case.
limitqueryinteger, optional1 to 100, default 25.
cursorquerystring, optionalnextCursor of the previous page. Opaque, and valid only for this method and this address.

Access — an API key on the Investigation plan or higher (plans), or no key at all: pay per call with x402 at the same path on https://mpp.tracefast.xyz/api/v1, at the price its 402 states. As a tool for AI agents: get_entity_dex_trades on the MCP server. Stable — see stability.

chains/1 is a literal: other chain ids answer 404 chain_not_supported. An unknown query parameter is refused rather than ignored.

Response

200 application/json. Lists in the example are cut to two entries.

{
  "data": {
    "chainId": 1,
    "address": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
    "trades": [
      {
        "blockNumber": 26086664,
        "timestamp": 1790727551,
        "txHash": "0x9923356a458f1407ebc867eacc0552c45e49a034031ff76f35c69701a4f0b26c",
        "txIndex": 98,
        "logIndex": 138,
        "protocol": "uniswap",
        "protocolVersion": "v3",
        "poolAddress": "0x60594a405d53811d3bc4766596efd80fd545a270",
        "role": "recipient",
        "sender": "0x23617e59a5925b2a4bf75d73ff6711cd0b29de85",
        "recipient": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
        "tokenIn": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
        "amountInRaw": "5627456510489320",
        "tokenInDecimals": 18,
        "tokenInSymbol": "WETH",
        "tokenOut": "0x6b175474e89094c44da98b954eedeac495271d0f",
        "amountOutRaw": "15000000000000000000",
        "tokenOutDecimals": 18,
        "tokenOutSymbol": "DAI",
        "valueUsd": 15,
        "valuedLeg": "out",
        "priceCarried": false
      },
      {
        "blockNumber": 26028051,
        "timestamp": 1790019923,
        "txHash": "0x2ccfcdf8474b3eefcc47e0d21b926f1d2b57d7ced55f518baf4d1f77b06959ac",
        "txIndex": 170,
        "logIndex": 584,
        "protocol": "uniswap",
        "protocolVersion": "v3",
        "poolAddress": "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640",
        "role": "recipient",
        "sender": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45",
        "recipient": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
        "tokenIn": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
        "amountInRaw": "100000",
        "tokenInDecimals": 6,
        "tokenInSymbol": "USDC",
        "tokenOut": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
        "amountOutRaw": "36148829723063",
        "tokenOutDecimals": 18,
        "tokenOutSymbol": "WETH",
        "valueUsd": 0.09964031160407862,
        "valuedLeg": "out",
        "priceCarried": false
      }
    ],
    "nextCursor": "AVsyNjAyODA1MSw1ODRdy6WyVy_33FqtUF3mCMztkg"
  },
  "meta": {
    "chain": "ethereum",
    "timestamp": 1794918361381,
    "cached": false,
    "docs": "https://docs.tracefast.xyz/api/entity-dex-trades"
  }
}

data

FieldMeaning
addressThe address, lowercase and 0x-prefixed.
chainIdChain id. 1 is Ethereum mainnet.
nextCursorCursor of the next page. Absent on the last page.
tradesThe trades of this page, newest first.

data.trades[]

FieldMeaning
amountInRawThe amount sold, in the token's smallest unit, as a decimal string. Absent where it could not be determined.
amountOutRawThe amount bought, in the token's smallest unit, as a decimal string. Absent where it could not be determined.
blockNumberHeight of the block that includes the swap.
logIndexThe swap event's index in the block.
poolAddressThe pool's address. Absent for a pool that has no address of its own (Uniswap V4): poolId identifies it.
poolIdThe pool's own 32-byte id where it has one (the Uniswap v4 PoolId, as the protocol's events name it). Absent for a pool with an address, and for a v4 pool TraceFast's pool registry has not caught up with yet.
priceCarriedtrue when the price behind valueUsd was carried from an earlier hour (nothing priced the token in the trade's hour); false when it was observed in that hour. Absent with valueUsd.
protocolThe venue as the index names it, for example uniswap, curve, sushiswap. Other values may be added.
protocolVersionThe venue's version as the index names it, for example v3.
recipientThe swap's recipient as the pool's event states it. Absent where the venue states none.
roleThis address's part: sender (it sent the swap), recipient (it received the output), or sender_and_recipient.
senderThe swap's sender as the pool's event states it — often a router. Absent where the event names none.
timestampBlock time, Unix seconds.
tokenInThe token sold into the pool, lowercase and 0x-prefixed. Absent where it could not be determined.
tokenInDecimalsDecimals of the sold token, as its contract declares them. Absent when unknown: print amountInRaw raw, never assume a scale.
tokenInSymbolSymbol the sold token's contract declares — its claim about itself, not a verification. Absent when it declares none. Absent when longer than 64 characters — left out whole, never shortened.
tokenOutThe token bought from the pool, lowercase and 0x-prefixed. Absent where it could not be determined.
tokenOutDecimalsDecimals of the bought token, as its contract declares them. Absent when unknown: print amountOutRaw raw, never assume a scale.
tokenOutSymbolSymbol the bought token's contract declares — its claim about itself, not a verification. Absent when it declares none. Absent when longer than 64 characters — left out whole, never shortened.
txHashHash of the transaction that made the swap, lowercase and 0x-prefixed.
txIndexPosition of that transaction within its block, from 0.
valueUsdEstimated USD value of the trade at the hour it happened: the bought amount × that token's price for the hour (observed in it, or carried from an earlier hour — see priceCarried), or the sold amount when the bought token has no usable price. Absent when neither leg can be valued — including a leg larger than its price's market can vouch for, which is left unvalued, never capped.
valuedLegWhich leg valueUsd is of: out (bought) or in (sold). Absent with it.

meta is the same envelope on every method — see conventions.

Errors

StatusWhen
400bad_request: a malformed address (reason: address_invalid), limit outside 1 to 100, or an unknown query parameter; invalid_cursor
404chain_not_supported, or an unknown path

Malformed input, unknown parameters and the key check's 401/403/429/503 are the same for every method — see conventions and API keys.


Last updated 19 Nov 2026, 11:46 UTC · verified against TraceFast v1.0.332 · Markdown