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.