我有这个 GET 请求(我正在使用 CoinGecko v3 API):
这是回应:
[
{
"id": "bitcoin",
"symbol": "btc",
"name": "Bitcoin",
"image": "https://assets.coingecko.com/coins/images/1/large/bitcoin.png?1547033579",
"current_price": 37282,
"market_cap": 695279311602,
"market_cap_rank": 1,
"fully_diluted_valuation": 779474926827,
"total_volume": 52300678011,
"high_24h": 38849,
"low_24h": 34846,
"price_change_24h": 2176.11,
"price_change_percentage_24h": 6.19871,
"market_cap_change_24h": 40112069740,
"market_cap_change_percentage_24h": 6.12242,
"circulating_supply": 18731668.0,
"total_supply": 21000000.0,
"max_supply": 21000000.0,
"ath": 64805,
"ath_change_percentage": -42.55568,
"ath_date": "2021-04-14T11:54:46.763Z",
"atl": 67.81,
"atl_change_percentage": 54799.24708,
"atl_date": "2013-07-06T00:00:00.000Z",
"roi": null,
"last_updated": "2021-06-10T14:42:39.019Z",
"price_change_percentage_24h_in_currency": 6.198713712795321
},
{
"id": "ethereum",
"symbol": "eth",
"name": "Ethereum",
"image": "https://assets.coingecko.com/coins/images/279/large/ethereum.png?1595348880",
"current_price": 2520.14,
"market_cap": 291669768272,
"market_cap_rank": 2,
"fully_diluted_valuation": null,
"total_volume": 38753989678,
"high_24h": 2636.43,
"low_24h": 2491.85,
"price_change_24h": -6.0279837,
"price_change_percentage_24h": -0.23862,
"market_cap_change_24h": -1426298398.7143555,
"market_cap_change_percentage_24h": -0.48663,
"circulating_supply": 116234761.124,
"total_supply": null,
"max_supply": null,
"ath": 4356.99,
"ath_change_percentage": -42.23601,
"ath_date": "2021-05-12T14:41:48.623Z",
"atl": 0.432979,
"atl_change_percentage": 581168.88568,
"atl_date": "2015-10-20T00:00:00.000Z",
"roi": {
"times": 89.12606988362417,
"currency": "btc",
"percentage": 8912.606988362417
},
"last_updated": "2021-06-10T14:42:34.517Z",
"price_change_percentage_24h_in_currency": -0.2386217557990123
}
]
我对 total_volume 字段及其值感兴趣。
我不确定,文档中没有解释这个值是如何计算的。我想,但也许我完全错了,这个领域的价值就像所有市场的平均值一样。
但是我如何从特定市场(比如币安)获得这个价值。
是否有这样的事情的端点,例如。传递市场 ID 并仅从该市场获取数据?