gpt4 book ai didi

api - 指定要从中获取数据的确切市场

转载 作者:行者123 更新时间:2023-12-04 12:55:44 26 4
gpt4 key购买 nike

我有这个 GET 请求(我使用的是 CoinGecko v3 API):

https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&ids=bitcoin%2Cethereum&order=market_cap_desc&per_page=10&page=1&sparkline=false&price_change_percentage=24h


这是回应:
[
{
"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 字段及其值感兴趣。
我不确定,文档中没有解释这个值是如何计算的。
我想,但也许我完全错了,这个领域的值(value)就像所有市场的平均值一样。
但是我如何从特定市场(比如币安)获得这个值(value)。
是否有这样的事情的端点,例如。传递市场 ID 并仅从该市场获取数据?

最佳答案

我不完全确定,但在我看来,这更像是货币本身的问题,而不是市场。就是24小时的总兑换量,这个货币24小时兑换了多少?
唯一让我感到不安的是缺少时间指示器。但如果我指的是这个:https://support.coinmarketcap.com/hc/en-us/articles/360043395912-Volume-Market-Pair-Cryptoasset-Exchange-Aggregate .我认为这是在给定时间内交换的数量。
比较这里的值:https://coinmarketcap.com/en/currencies/bitcoin/在“Volume 24h”中,我看到该值几乎相同。

关于api - 指定要从中获取数据的确切市场,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67923899/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com