The resource loading... loading...

The problem of a failed sub-order; if the funds are insufficient, it may return null; if the network is faulty, it may return undefined. Is this correct?

Author: Shipwrecked 7, Created: 2015-11-03 08:51:35, Updated: 2015-11-03 08:56:21

The code for the sublist is as follows: var id = 0; id = exchange.Buy ((25, 0.1); if ((typeof(id) == undefined) の id === null) { Log (((下單失敗); id = exchange.Buy ((25, 0.1); }


More

ZeroThere is a possibility of repeated ordering, for example, in a situation where you are requesting the order package has been sent to the exchange, the exchange has executed, but when the order data is returned, a network error occurs, such as overtime, and the policy will call fail, the solution is to check the account balance, whether it matches the previous order, if not, the order was successfully sent.

Shipwrecked 7The code for the suborder is as follows: var id = 0; id = exchange.Buy ((25, 0.1); if ((typeof(id) == 'undefined') koros id === null) { Log (('suborder failed'); id = exchange.Buy ((25, 0.1); }