Type/to search
0
Follow
0
Followers
Tại sao hôm nay tôi liên tục gặp lỗi khi đọc dữ liệu Huobi?
Help
Created 2020-07-07 13:29:09  Updated 2020-07-07 13:38:48
 1
 1520

Trong vài ngày trước, tôi đã đọc dữ liệu về đồng tiền mã hóa và ngày hôm nay nó đã cho tôi một số lỗi, thậm chí tôi đã thay đổi nó thành một số đơn giản như sau:

def main():
records = exchange.GetRecords(PERIOD_H1)
Log ((("Dữ liệu k đầu tiên là, Time:", records[0]["Time"], "Open:", records[0]["Open"], "High:", records[0]["High"])
Log ((("Điều liệu gốc k thứ hai là,Time:", records[1]["Time"], "Close:", records[1]["Close"])
Log ((Current K-Line ((Current K-Line)) và records[-1], "The Last K Line", records[-2])

Hoặc có lỗi.
GetRecords: type assertion to []interface{} failed

Tôi sử dụng cặp giao dịch tùy chỉnh của token, 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)