[英]Get Bitcoin price hourly or minute using Coinbase API in python
I am trying to make a program that gets daily price of bitcoin in specific date. 我正在尝试制作一个程序,以在特定日期获得比特币的每日价格。
For example: 例如:
If I want to get 2017-01-01's bitcoin price. 如果我想获得2017年1月1日的比特币价格。 I should be able to do
我应该能够做
client.get_historic_prices(data = "2017-01-01")
I am able to run python print(client.get_historic_prices())
But this shows me too many daily Bitcoin prices. 我能够运行python
print(client.get_historic_prices())
但是这显示了我太多的每日比特币价格。
Is there way to get specific date's bitcoin price using Coinbase API? 是否可以使用Coinbase API获取特定日期的比特币价格? Also, can I specify duration like from
2017-01-01
to 2017-03-01
? 另外,我可以指定从
2017-01-01
到2017-03-01
持续时间吗?
check this out if it can help you: 检查一下是否可以帮助您:
https://github.com/CoinCapDev/CoinCap.io
https://github.com/CoinCapDev/CoinCap.io
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.