Type/to search
0
Follow
0
Followers
오늘 Huobi 데이터를 읽는 동안 계속 오류가 발생하는 이유는 무엇인가요?
Help
Created 2020-07-07 13:29:09  Updated 2020-07-07 13:38:48
 1
 1520

지난 몇일 동안 코인 데이터를 정상적으로 읽었는데, 오늘에는 오류가 계속 나타났는데, 제가 가장 간단한 것으로 바꾸어 놓았는데도 불구하고:

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라인 (current K-Line) "[-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)