Skip to content

Whale Cost Trend ​

Description ​

Returns real-time average holding cost data for whale addresses across BTC-series, EVM-series, Tron, and other multi-chain networks for a token.

Use cases:

  • Obtain average whale holding cost data on-chain for a specified token
  • Whale behavior analysis
  • Assess how far the current price deviates from whale cost

Tips:

  • When users ask about whale cost in natural language, this endpoint typically provides on-chain whale cost data
  • For comprehensive queries such as whale analysis or whale status, call this endpoint

Update frequency: Updated once per day

Endpoint ​

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

Credits ​

  • Cost: 2

Prerequisites ​

Obtain vsTokenId

ConditionDescriptionHow to obtain
vsTokenId availableUse cached vsTokenId; no repeat lookupAuto-extracted from context
vsTokenId missingCall POST /vs-token/listPrerequisite API call

Request parameters ​

Parameters are sent as JSON in the request body.

FieldTypeRequiredDescription
vsTokenIdlongYesToken ID
startTimelongNoStart time (millisecond timestamp)
endTimelongNoEnd time (millisecond timestamp)

Response fields ​

Structure of each object in the data array:

FieldTypeSerializedDescription
vsTokenIdlongstringToken ID
symbolstringstringToken symbol
namestringstringToken name
datelonglongTime (millisecond timestamp)
pricenumberstringPrice at that time (USD)
costnumberstringWhale cost (USD)
balancenumberstringBalance

Field semantics ​

FieldMeaningTip
costWhale holding costAverage whale holding cost weighted by large trades; use to judge profit/loss relative to whales
balanceWhale holding balanceReflects changes in whale holdings; sustained increases indicate accumulation
priceToken market priceCompare with cost to compute price deviation: (price - cost) / cost * 100%

Example ​

json
{
    "vsTokenId": 1,           // Token ID
    "startTime": 1770825600000, // Start time (timestamp)
    "endTime": 1773417600000    // End time (timestamp)
}

cURL (Linux/macOS) ​

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

cURL (Windows CMD) ​

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

Success response example ​

json
{
    "code": 200,
    "message": "success",
    "data": [
        {
            "vsTokenId": "1",           // Token ID
            "symbol": "BTC",             // Token symbol
            "name": "Bitcoin",           // Token name
            "date": 1770825600000,       // Time
            "price": "67308.54906296561", // Price
            "cost": "60410.667759839053903122", // Whale cost
            "balance": "3878063.59266208"       // Balance
        },
        {
            "vsTokenId": "1",
            "symbol": "BTC",
            "name": "Bitcoin",
            "date": 1770912000000,
            "price": "66945.34755133065",
            "cost": "60419.968721902531478833",
            "balance": "3869188.04491703"
        },
        {
            "vsTokenId": "1",
            "symbol": "BTC",
            "name": "Bitcoin",
            "date": 1770998400000,
            "price": "66945.34755133065",
            "cost": "60530.743564442072031617",
            "balance": "3879695.17965919"
        }
        // ... more data omitted
    ],
    "requestId": "xxx-xxx-xxx"
}