Type/to search

币安一次性获取所有挂单列表(U本位合约)

Common strategy
Created: 2021-09-27 10:26:49
Last modified: 5 years ago
2
Follow
67
Followers
Source
JavaScript
// 获取所有挂单
function getAllPendingOrders(num) {
    var ret = exchanges[num].IO("api", "GET", "/fapi/v1/openOrders");
    var pending_orders = [];

    if (!ret || ret.length <= 0) {
        return null;
    }

    for (var i = 0; i < ret.length; i++) {
        var type = "";
        if (ret[i].stopPrice == "0") {
Comment
All comments (3)

    TypeError: cannot read property 'IO' of undefined at getAllPendingOrders ,,,, /(ㄒoㄒ)/~~

    4 years ago

    小白想直接用,,还需要加点什么参数。。

    5 years ago

    不需要什么参数,自己直接打印出来看看结果就知道了。

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