mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-09-21 02:19:47 +00:00
safecex: selllimit doesnt always return the order id
This commit is contained in:
parent
4c45612261
commit
b3090f0634
1 changed files with 12 additions and 10 deletions
|
@ -198,6 +198,7 @@ function doSafecexTrading($quick=false)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isset($res->id)) {
|
||||||
$db_order = new db_orders;
|
$db_order = new db_orders;
|
||||||
$db_order->market = 'safecex';
|
$db_order->market = 'safecex';
|
||||||
$db_order->coinid = $coin->id;
|
$db_order->coinid = $coin->id;
|
||||||
|
@ -209,6 +210,7 @@ function doSafecexTrading($quick=false)
|
||||||
$db_order->created = time();
|
$db_order->created = time();
|
||||||
$db_order->save();
|
$db_order->save();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* withdraw API doesn't exist
|
/* withdraw API doesn't exist
|
||||||
if(floatval(EXCH_AUTO_WITHDRAW) > 0 && $db_balance->balance >= (EXCH_AUTO_WITHDRAW + 0.0002))
|
if(floatval(EXCH_AUTO_WITHDRAW) > 0 && $db_balance->balance >= (EXCH_AUTO_WITHDRAW + 0.0002))
|
||||||
|
|
Loading…
Add table
Reference in a new issue