GET
/
v1
/
trade
/
{chain}
/
gainers-losers
交易 - 盈利者/亏损者
curl --request GET \
  --url https://api-dex.chainstream.io/v1/trade/{chain}/gainers-losers \
  --header 'Authorization: Bearer <token>'
{
  "hasNext": false,
  "hasPrev": false,
  "startCursor": "<string>",
  "endCursor": "<string>",
  "total": 123,
  "data": [
    {
      "address": "FciNKwZAvSzepKH1nFEGeejzbP4k87dJiP9BAzGt2Sm3",
      "pnl": 1,
      "tradeCount": 1,
      "volume": 1
    }
  ]
}

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

支持网络中列出的区块链名称

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

Query Parameters

cursor
string

分页游标

limit
number
default:10

返回顶级交易者的最大数量(最多10个)

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

分页方向(next或prev)

Available options:
next,
prev
type
string
required

指定顶级涨跌幅代币的类型。筛选类型等于指定类型的记录

Example:

"1W"

sortBy
string
required

指定排序字段

Example:

"PnL"

sortType
string
required

指定排序顺序

Example:

"desc"

Response

200 - application/json

The response is of type object.