Skip to content

Capital snapshot

Description

Historical accumulation for a token over the last 100 days at arbitrary timestamps, including major-fund accumulation in that window.

Use cases

  • Point-in-time flow reconstruction
  • Trend of accumulation
  • Historical behavior studies

Tips

  • Day-only query without clock time → defaults to UTC+8 time-of-day semantics per platform
  • Broad “major flow trend” questions → this API

Update: Every 5 minutes

Endpoint

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

Credits

  • Cost: 3

Prerequisites

vsTokenId

CaseNoteHow
KnownCacheContext
UnknownPOST /vs-token/listPre-call

Request body (JSON)

FieldTypeRequiredDescription
vsTokenIdintegerYesToken id
datelongYesSnapshot instant (ms)

Response — data

FieldTypeSerializedDescription
updateTimeintegerlongUpdated at (ms)
vsTokenIdintegerstringToken id
symbolstringstringTicker
namestringstringName
hasSpotGoodsbooleanbooleanHas spot
spotMaxInflownumberstringSpot major accumulation
spotGoodsListarrayarraySpot windows
  timeRangestringstringWindow
  timeParticleEnumintegerintegerGranularity
  tradeInflownumberstringNet inflow (USD)
  tradeAmountnumberstringVolume (USD)
hasContractbooleanbooleanHas perp
contractMaxInflownumberstringPerp major accumulation
contractListarrayarrayPerp windows (same subfields)

Semantics

FieldMeaningTip
spotMaxInflow / contractMaxInflowMajor accumulationMax net inflow bucket + all bucket series
dateSnapshotMinimum step 5 minutes

Example

json
{
    "vsTokenId": 1,
    "date": 1773654600000
}

cURL (Linux/macOS)

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

cURL (Windows CMD)

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

Sample success

json
{
    "code": 200,
    "message": "success",
    "data": {
        "updateTime": 1773654600000,
        "vsTokenId": "1",
        "symbol": "BTC",
        "name": "Bitcoin",
        "hasSpotGoods": true,
        "spotMaxInflow": "173206257.989364",
        "spotGoodsList": [
            {
                "timeRange": "m5",
                "timeParticleEnum": 5,
                "tradeInflow": "973669.0454980996",
                "tradeAmount": "4176136.897351299"
            }
        ],
        "hasContract": true,
        "contractMaxInflow": "5115857220.793299",
        "contractList": []
    },
    "requestId": "xxx-xxx-xxx"
}