我想从Coinmarketcap API获得价格,我正在尝试创建一个应用程序来使用我的btc购买价格:
https://api.coinmarketcap.com/v2/ticker/1/
{
"data": {
"id": 1,
"name": "Bitcoin",
"symbol": "BTC",
"website_slug": "bitcoin",
"rank": 1,
"circulating_supply": 17039387.0,
"total_supply": 17039387.0,
"max_supply": 21000000.0,
"quotes": {
"USD": {
"price": 8220.55,
"volume_24h": 5658720000.0,
"market_cap": 140073132803.0,
"percent_change_1h": 0.28,
"percent_change_24h": -1.18,
"percent_change_7d": -10.28
}
},
"last_updated": 1526587771
},
"metadata": {
"timestamp": 1526587666,
"error": null
}
}