safecex: selllimit doesnt always return the order id

This commit is contained in:
Tanguy Pruvot 2016-03-08 04:41:50 +01:00
parent 4c45612261
commit b3090f0634

View file

@ -198,6 +198,7 @@ function doSafecexTrading($quick=false)
continue;
}
if (isset($res->id)) {
$db_order = new db_orders;
$db_order->market = 'safecex';
$db_order->coinid = $coin->id;
@ -209,6 +210,7 @@ function doSafecexTrading($quick=false)
$db_order->created = time();
$db_order->save();
}
}
/* withdraw API doesn't exist
if(floatval(EXCH_AUTO_WITHDRAW) > 0 && $db_balance->balance >= (EXCH_AUTO_WITHDRAW + 0.0002))