0
フォロー
1
フォロワー

exchange.GetOrders() がエラーを報告します

作成日:: 2023-02-12 00:01:57, 更新日::
comments   2
hits   844

学習フォーラムのコード function CancelPendingOrders() { var orders = exchange.GetOrders (();//未完成の注文をすべて取得する。

for (var j = 0; j < orders.length; j++) {
      exchange.CancelOrder(orders[j].Id, orders[j]);}//该函数的用途为取消某个Id的订单。
 

}

実行エラー 2023-02-12 00:00:51 エラー TypeError: cannot read property ‘length’ of null at CancelPendingOrders (Nullのプロパティ ‘length’ を CancelPendingOrders で読み取れない)FILE:41) at main (FILE:125) 2023-02-12 00:00:51 Futures_OKCoin エラー GetOrders: 401: {“msg”:“APIKey does not match current environment.”,“code”:“50101”}

ありがとうございました (拍手)