GET
/
v1
/
trade
/
{chain}
Trade - List
curl --request GET \
  --url https://api-dex.chainstream.io/v1/trade/{chain} \
  --header 'Authorization: Bearer <token>'
{
  "hasNext": false,
  "hasPrev": false,
  "startCursor": "<string>",
  "endCursor": "<string>",
  "total": 123,
  "data": [
    {
      "chain": "<string>",
      "blockHeight": 123,
      "blockTimestamp": 123,
      "accountOwnerAddress": "<string>",
      "transactionSignature": "<string>",
      "tokenName": "<string>",
      "tokenSymbol": "<string>",
      "tokenImageUrl": "<string>",
      "tokenAddress": "<string>",
      "poolAddress": "<string>",
      "dexProgramAddress": "<string>",
      "dexProtocolFamily": "<string>",
      "dexImage": "<string>",
      "tokenAmount": "<string>",
      "tokenPriceInUsd": "<string>",
      "tokenAmountInUsd": "<string>",
      "type": "<string>",
      "sideTokenName": "<string>",
      "sideTokenSymbol": "<string>",
      "sideTokenImageUrl": "<string>",
      "sideTokenAddress": "<string>",
      "sideTokenPriceInUsd": "<string>",
      "sideTokenAmount": "<string>",
      "sideTokenAmountInUsd": "<string>",
      "status": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

chain
enum<string>
required

A chain name listed in supported networks

Available options:
sol,
base,
bsc,
polygon,
arbitrum,
optimism,
avalanche,
ethereum,
zksync,
sui

Query Parameters

cursor
string

Pagination cursor

limit
number
default:20

Number of results per page

Required range: 1 <= x <= 100
direction
enum<string>
default:next

Pagination direction (next or prev)

Available options:
next,
prev
tokenAddress
string

Token address to query trades

Example:

"6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN"

walletAddress
string

Wallet address to query trades

Example:

"3xd4LGVWtYXLBspR6X5JWbW49NXmEehfPtX6Kqx98b4w"

poolAddress
string

Pool address to filter trades

Example:

"6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN"

beforeTimestamp
number

Start timestamp for filtering trades (Unix epoch in seconds)

Example:

1717334400000

afterTimestamp
number

End timestamp for filtering trades (Unix epoch in seconds)

Example:

1717334400000

beforeBlockHeight
number

Filter trades before this block height

Example:

332417228

afterBlockHeight
number

Filter trades after this block height

Example:

332417228

type
enum<string>

Trade type

Available options:
BUY,
SELL
Example:

"BUY"

Response

200 - application/json
data
object[]
required

Array of trade data

hasNext
boolean
default:false

Indicates if there are more results

hasPrev
boolean
default:false

Indicates if there are previous results

startCursor
string

Cursor for first item in current page

endCursor
string

Cursor for last item in current page

total
number

Total number of items