【发布时间】:2017-06-20 03:07:20
【问题描述】:
使用this API 调用我想获得一个完整的 BTCUSD 数据集,用于 5 分钟 OHLC 数据。
我在 python 中尝试了以下代码,但 API 没有返回正确的数据:
import requests
import pandas as pd
r = requests.post('https://api.bitfinex.com/v2/candles/trade:5m:tBTCUSD/hist', data={'start': 1434764470000, 'end': 1497922870000})
data = r.json()
任何人都可以提供任何帮助吗?
【问题讨论】:
标签: python api bitcoin trading