Skip to content

Capital-to-market-cap ratio

Description

Returns the ratio of real-time major-fund flow to market cap for a token, supporting both spot and perpetual markets.

Use cases:

  • Monitor how major funds accumulate relative to market size
  • Assess inflow intensity and market attention
  • Screen tokens with high capital attention

Update frequency: Once per day

Endpoint

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

Credits

  • Cost: 3

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

Response fields

Structure of fields inside the data object:

FieldTypeSerializedDescription
updateTimelonglongUpdated at (ms timestamp)
vsTokenIdlongstringToken ID
symbolstringstringToken symbol
namestringstringToken name
marketCapnumberstringMarket cap (USD)
spotTradeInflownumberstringSpot net inflow (USD)
spotMarketCapRatiodoublenumberSpot flow-to-market-cap ratio
contractTradeInflownumberstringPerpetual net inflow (USD)
contractMarketCapRatiodoublenumberPerpetual flow-to-market-cap ratio
totalTradeInflownumberstringCombined spot + perpetual net inflow (USD)
totalMarketCapRatiodoublenumberCombined flow-to-market-cap ratio

Field semantics

FieldMeaningTip
spotMarketCapRatioSpot flow-to-mcap ratioHigher values indicate stronger spot inflow relative to market cap
contractMarketCapRatioPerpetual flow-to-mcap ratioIndicates perpetual market heat
totalMarketCapRatioCombined flow-to-mcap ratioCore metric for overall capital attention on the token

Example

json
{
    "vsTokenId": 1   // Token ID
}

cURL (Linux/macOS)

bash
curl --location --request POST 'http://${host}/api/open/v1/trade/getCoinTradeInflowMarketCapRatio' \
--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/getCoinTradeInflowMarketCapRatio" ^
--header "Content-Type: application/json" ^
--header "X-API-KEY: xxxxx" ^
--header "X-TIMESTAMP: xxxxx" ^
--header "X-SIGN: xxxxx" ^
--header "Accept: */*" ^
--data-raw "{    \"vsTokenId\": 1}"

Success response example

json
{
    "code": 200,
    "message": "success",
    "data": {
        "updateTime": 1771001700000,                    // Updated at
        "vsTokenId": "1",                                // Token ID
        "symbol": "BTC",                                 // Token symbol
        "name": "Bitcoin",                               // Token name
        "marketCap": "1380637213701.3374",               // Market cap
        "spotTradeInflow": "6952062.183567308",          // Spot net inflow (USD)
        "spotMarketCapRatio": 5.04E-4,                   // Spot flow-to-mcap ratio
        "contractTradeInflow": "6952062.183567308",      // Perpetual net inflow (USD)
        "contractMarketCapRatio": 5.04E-4,               // Perpetual flow-to-mcap ratio
        "totalTradeInflow": "13904124.367134616",        // Combined net inflow (USD)
        "totalMarketCapRatio": 0.001007                  // Combined flow-to-mcap ratio
    },
    "requestId": "xxx-xxx-xxx"
}