Type/to search
0
Follow
1
Followers
exchange.GetOrders() informa un error
Help
Created 2023-02-12 00:01:57  
 2
 1054

Código en el foro de aprendizaje
function CancelPendingOrders() {
var orders = exchange.GetOrders (();// Obtener todos los pedidos pendientes

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

}

Ejecución de los errores
Error TypeError: cannot read property 'length' of null at CancelPendingOrders (Error de tipo: no se puede leer la propiedad 'length' de null en CancelPendingOrders)FILE:41) at main (FILE:125)
2023-02-12 00:00:51 Futures_OKCoin Error de GetOrders: 401: {"msg":"APIKey does not match current environment.","code":"50101"} La clave de APIKey no coincide con el entorno actual. La clave de APIKey no coincide con el entorno actual.

¿Cuál es el motivo? Gracias

Related Recommendations
Comment
All comments (2)

    问题解决啦 没有设置成模拟盘

    4 years ago

    OKX使用exchange.IO("simulate", true)设置。API文档上搜索“模拟盘”有相关信息。

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