mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 17:37:25 +00:00
cexio: include btc in orders for the balance
to do like bitstamp...
This commit is contained in:
parent
a89a0ef4cf
commit
4e5fbb4939
2 changed files with 5 additions and 1 deletions
|
@ -100,7 +100,7 @@ function getCexIoBalances()
|
|||
$balances = cexio_api_user('balance');
|
||||
if (is_array($balances)) {
|
||||
$b = arraySafeVal($balances, 'BTC');
|
||||
$savebalance->balance = arraySafeVal($b, 'available');
|
||||
$savebalance->balance = arraySafeVal($b, 'available',0.) + arraySafeVal($b, 'orders',0.);
|
||||
$savebalance->save();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -87,6 +87,10 @@ function runExchange($exchangeName=false)
|
|||
updateBittrexMarkets();
|
||||
break;
|
||||
|
||||
case 'cexio':
|
||||
getCexIoBalances();
|
||||
break;
|
||||
|
||||
case 'c-cex':
|
||||
doCCexTrading(true);
|
||||
updateCCexMarkets();
|
||||
|
|
Loading…
Add table
Reference in a new issue