Skip to content

Real-time capital accumulation

Description

Spot and perpetual net inflow on CEX for a token, plus same-day major-fund accumulation metrics.

Use cases

  • Intraday accumulation across windows
  • Tracking dominant flow behavior

Tips

  • Intraday “major flow”: look at max net inflow within 24h windows
  • “Major flow” in general: max net inflow within 90d windows
  • Positive net inflow = buying pressure; negative = selling
  • If the user asks generically for major flow without market type, return both spot and perp
  • Broad “major player analysis” queries → this endpoint

Update: Every 5 minutes

Endpoint

  • Method: POST
  • Path: /open/v1/trade/getCoinTrade

Credits

  • Cost: 3

Prerequisites

vsTokenId

CaseNoteHow
KnownCacheContext
UnknownPOST /vs-token/listPre-call

Request body (JSON)

FieldTypeRequiredDescription
vsTokenIdlongYesToken id

Response — data

FieldTypeSerializedDescription
updateTimelonglongUpdated at (ms)
vsTokenIdlongstringToken id
symbolstringstringTicker
namestringstringName
hasSpotGoodsbooleanbooleanHas spot series
spotMaxInflownumbernumberSpot major accumulation (USD)
spotGoodsListarrayarraySpot windows
  timeRangestringstringWindow label
  timeParticleEnumintegerintegerGranularity enum
  tradeInflownumberstringNet inflow (USD)
  tradeAmountnumberstringVolume (USD)
  tradeInflowChangedoublenumberNet-inflow change rate
  tradeOutnumberstringOutflow (USD)
  tradeInnumberstringInflow (USD)
hasContractbooleanbooleanHas perp series
contractMaxInflownumbernumberPerp major accumulation (USD)
contractListarrayarrayPerp windows (same subfields)

Semantics

FieldMeaningTip
spotMaxInflowSpot majorMax net inflow across 90d windows — spot
contractMaxInflowPerp majorSame for perp
hasSpotGoods / hasContractFlagsIf no time filter, default all windows within ~90d
tradeInflowChangeMoM-style deltaVersus prior window

Example

json
{
    "vsTokenId": 1
}

cURL (Linux/macOS)

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

cURL (Windows CMD)

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

Sample success

json
{
    "code": 200,
    "message": "success",
    "data": {
        "updateTime": 1773220800000,
        "vsTokenId": "1",
        "symbol": "BTC",
        "name": "Bitcoin",
        "hasSpotGoods": true,
        "spotMaxInflow": 2588472.3329447997,
        "spotGoodsList": [
            {
                "timeRange": "5m",
                "timeParticleEnum": 5,
                "tradeInflow": "1914106.2828805007",
                "tradeAmount": "4389778.5824913",
                "tradeInflowChange": 373.39,
                "tradeOut": "2475814.5678",
                "tradeIn": "4389920.8506"
            }
        ],
        "hasContract": true,
        "contractMaxInflow": 17609356.027199995,
        "contractList": []
    },
    "requestId": "xxx-xxx-xxx"
}