Skip to content

Sector token capital

Description

Per-token accumulation within a sector for spot or perp across time windows.

Use cases

  • Drill into sector leaders / outliers
  • Thematic strategies

Update: Every 5 minutes

Endpoint

  • Method: POST
  • Path: /open/v1/trade/categories/CoinTradeList

Credits

  • Cost: 3

Prerequisites

tag (sector)

CaseNoteHow
KnownCacheContext
UnknownPOST /open/v1/trade/categories/getTradeListLists sectors + tag

Request body (JSON)

FieldTypeRequiredDescription
tagstringYesSector tag
tradeTypeintegerYes1 spot, 2 perp

tradeType

ValueMeaning
1Spot
2Perpetual

Response — data[]

FieldTypeSerializedDescription
updateTimelonglongUpdated at (ms)
tagstringstringSector tag
tradeTypeintegerinteger1 / 2
vsTokenIdlongstringToken id
symbolstringstringTicker
namestringstringName
categoriesTradeDataListarrayarrayWindow rows
  timeRangestringstringWindow
  timeParticleEnumintegerintegerGranularity
  tradeInflownumbernumberNet inflow (USD)

Semantics

FieldMeaningTip
categoriesTradeDataListPer-window flowCompare tokens in sector
tradeInflowNet inflow+ in, - out

Example

json
{
    "tag": "AI",
    "tradeType": 1
}

cURL (Linux/macOS)

bash
curl --location --request POST 'http://${host}/api/open/v1/trade/categories/CoinTradeList' \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: xxxxx' \
--header 'X-TIMESTAMP: xxxxx' \
--header 'X-SIGN: xxxxx' \
--header 'Accept: */*' \
--data-raw '{
    "tag": "AI",
    "tradeType": 1
}'

cURL (Windows CMD)

cmd
curl --location --request POST "http://${host}/api/open/v1/trade/categories/CoinTradeList" ^
--header "Content-Type: application/json" ^
--header "X-API-KEY: xxxxx" ^
--header "X-TIMESTAMP: xxxxx" ^
--header "X-SIGN: xxxxx" ^
--header "Accept: */*" ^
--data-raw "{    \"tag\": \"AI\",    \"tradeType\": 1}"

Sample success

json
{
    "code": 200,
    "message": "success",
    "data": [
        {
            "updateTime": 1773298200000,
            "tag": "AI",
            "tradeType": 1,
            "vsTokenId": "1637",
            "symbol": "RLC",
            "name": "iExec RLC",
            "categoriesTradeDataList": [
                {
                    "timeRange": "H6",
                    "timeParticleEnum": 106,
                    "tradeInflow": "3753.6444"
                }
            ]
        }
    ],
    "requestId": "xxx-xxx-xxx"
}