Skip to content

资金市值比

接口描述

提供代幣实时主力资金与市值的比值查询,支持现货和合约两种交易類型。

使用场景

  • 适用于实时主力资金在市场的积累占比情况监測
  • 适用于判断资金流入强度和市场关注度
  • 适用于筛选资金关注度较高的代幣标的

資料更新频率:每天更新一次

請求URL

  • 方法POST
  • 路径/open/v1/trade/getCoinTradeInflowMarketCapRatio

积分消耗

  • 消耗积分3

前置条件

取得 vsTokenId

条件说明取得方式
已有 vsTokenId直接使用缓存的 vsTokenId,无需重复查询上下文自动提取
未有 vsTokenId调用 POST /vs-token/list 接口取得前置接口调用

請求参数

参数通过請求體(Body)以 JSON 格式传递。

参数名類型必需描述
vsTokenIdlong代幣 ID

回應欄位

仅展示 data 对象内的欄位结构:

欄位類型实际返回類型描述
updateTimelonglong更新时间(毫秒时间戳)
vsTokenIdlongstring代幣ID
symbolstringstring代幣符号
namestringstring代幣名称
marketCapnumberstring市值 (USD)
spotTradeInflownumberstring现货交易净流入金额 (USD)
spotMarketCapRatiodoublenumber现货资金市值比率
contractTradeInflownumberstring合约交易净流入金额 (USD)
contractMarketCapRatiodoublenumber合约资金市值比率
totalTradeInflownumberstring现货+合约交易净流入金额 (USD)
totalMarketCapRatiodoublenumber现货+合约资金市值比率

欄位业务含义

欄位业务含义使用建议
spotMarketCapRatio现货资金市值比反映现货资金流入强度,数值越大表示资金流入相对市值占比越高
contractMarketCapRatio合约资金市值比反映合约市场资金流入强度,可用于判断合约市场热度
totalMarketCapRatio综合资金市值比现货+合约的综合指标,是判断代幣整體资金关注度的核心指标

請求示例

json
{
    "vsTokenId": 1   // 代幣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}"

成功回應示例

json
{
    "code": 200,
    "message": "success",
    "data": {
        "updateTime": 1771001700000,                    // 更新时间
        "vsTokenId": "1",                                // 代幣ID
        "symbol": "BTC",                                 // 代幣符号
        "name": "Bitcoin",                               // 代幣名称
        "marketCap": "1380637213701.3374",               // 市值
        "spotTradeInflow": "6952062.183567308",          // 现货交易净流入金额 (USD)
        "spotMarketCapRatio": 5.04E-4,                   // 现货资金市值比率
        "contractTradeInflow": "6952062.183567308",      // 合约交易净流入金额 (USD)
        "contractMarketCapRatio": 5.04E-4,               // 合约资金市值比率
        "totalTradeInflow": "13904124.367134616",        // 现货+合约交易净流入金额 (USD)
        "totalMarketCapRatio": 0.001007                  // 现货+合约资金市值比率
    },
    "requestId": "xxx-xxx-xxx"
}