我想知道如何在特定日期以澳元计算比特币、以太坊、莱特币和比特币现金的价格。
我有一个表格如下
+------------+-------+
| Date | Price |
+------------+-------+
| 16/03/2016 | |
| 19/04/2016 | |
| 03/12/2017 | |
+------------+-------+
我尝试在价格列中使用 =IMPORTXML("http://coinmarketcap.com/currencies/bitcoin/","//span[@id='quote_price']")
输入,但似乎不起作用。
答案 0 :(得分:0)
我会使用: https://min-api.cryptocompare.com/documentation?key=Historical&cat=dataPriceHistorical
In order to use this service you need an api key and register at their website:https://www.cryptocompare.com/cryptopian/api-keys
You also need to convert your date to unix timestamp:
https://www.unixtimestamp.com/index.php
e.g. 16/03/2016 => 1458086400
so ts=1458086400
The complete api call would resemble:
https://minapi.cryptocompare.com/data/pricehistoricalfsym=BTC&tsyms=AUD&ts=%201458086400&api_key="your-key"
执行此调用给出 = AUD: 582.52
'Kolom1' 中的值是以澳元计算的结果值。可以通过执行“URL”字段中的 url 来检索此值:=WEBSERVICE([@URL])
备注:要转换您的日期 16/03/16,请参阅帖子: Excel date to Unix timestamp