Open aispel opened 1 year ago
$order = new Order([ 'currency_pair' => 'BTC_USDT', 'type' => 'market', 'side' => 'buy', 'amount' => 100, 'time_in_force' => 'ioc' ]);
$result = $apiInstance->createOrder($order);
the data in result is as below. It looks like be filled, but status is canncelled.
[status] => cancelled [fill_price] => 99.99999832095 [filled_total] => 99.99999832095 [fee] => 0.000006922331325
Any order that is not filled totally is cancelled. In this case, it's not filled even if it is almost so.
$order = new Order([ 'currency_pair' => 'BTC_USDT', 'type' => 'market', 'side' => 'buy', 'amount' => 100, 'time_in_force' => 'ioc' ]);
$result = $apiInstance->createOrder($order);
the data in result is as below. It looks like be filled, but status is canncelled.
[status] => cancelled [fill_price] => 99.99999832095 [filled_total] => 99.99999832095 [fee] => 0.000006922331325