0
Follow
0
Followers
前几天我读取火币数据都正常,今天一直提示错误,哪怕我就改成最简单的如下:
def main():
records = exchange.GetRecords(PERIOD_H1)
Log("第一根k线数据为,Time:", records[0]["Time"], "Open:", records[0]["Open"], "High:", records[0]["High"])
Log("第二根k线数据为,Time:", records[1]["Time"], "Close:", records[1]["Close"])
Log("当前K线(最新)", records[-1], "上一根K线", records[-2])
还是出现错误
GetRecords: type assertion to []interface{} failed
我用的是火币的自定义交易对,BTC_USD
Related Recommendations
Advanced Tutorial for FMZ Quant platform Strategy WritingElementary Tutorial for FMZ Quant platform Strategy WritingGet Started with FMZ Quant PlatformSECURITY BUGI keep getting error: Exchange_GetAccount: Invalid ContractTypeWe have an incredibly profitable market making algorithm for sideways markets on Bitmex - but need expert to help eliminate wait times during downward volatility in the marketError with deribitLimitations of the backtesting engineHow to install ta-lib on linux docker?5.5 Trading strategy optimization
Comment
All comments (1)
- 1
