Type/to search
0
Follow
0
Followers
为什么今天读取火币数据一直出错?
Help
Created 2020-07-07 13:29:09  Updated 2020-07-07 13:38:48
 1
 1612

前几天我读取火币数据都正常,今天一直提示错误,哪怕我就改成最简单的如下:

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
Comment
All comments (1)

    测试了一下,没有问题

    6 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)