Bitmexの注文が失敗すると返されるデータは false,null,undefineですか?

作者: リン・ハーンジャオチェン作成日: 2018-03-21 08:08:53, 更新日:

このコードで注文をします. exchanges[1].SetContractType (XBTUSD); exchanges[1].SetMarginLevel ((80); exchanges[1].SetDirection (buy) について; exchanges[1].Buy ((close+20,amout));

結果システムオーバーロードエラー:Futures_BitMEX Futures_OP 0: 503: {error:{message:The system is currently overloaded. Please try again later.,name:HTTPError}}

この無限回転構造を使って再試行したいのですが,この誤差の返し値はわかりません. ワール id=null while (id) ==null (id) ==null (id) ==null (null) === exchanges[1].SetContractType ( XBTUSD); exchanges[1].SetMarginLevel ((80); exchanges[1].SetDirection (buy) について; id=exchanges[1].Buy ((close+20,amout)); id=exchanges [1] 購入する (close+20,amout) スリープ ((100); ありがとうございました.

while の条件では,null,false,undefined,または他の値でどれを使うべきか?


もっと

ジャオチェンありがとう,私はゼロの包装を間違えて見つけた

小さな夢市民の関心は, 取引所からの注文が成功した場合は,注文IDを返します. 異常または失敗の場合 null を返します.