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');
|
$balances = cexio_api_user('balance');
|
||||||
if (is_array($balances)) {
|
if (is_array($balances)) {
|
||||||
$b = arraySafeVal($balances, 'BTC');
|
$b = arraySafeVal($balances, 'BTC');
|
||||||
$savebalance->balance = arraySafeVal($b, 'available');
|
$savebalance->balance = arraySafeVal($b, 'available',0.) + arraySafeVal($b, 'orders',0.);
|
||||||
$savebalance->save();
|
$savebalance->save();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,6 +87,10 @@ function runExchange($exchangeName=false)
|
||||||
updateBittrexMarkets();
|
updateBittrexMarkets();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'cexio':
|
||||||
|
getCexIoBalances();
|
||||||
|
break;
|
||||||
|
|
||||||
case 'c-cex':
|
case 'c-cex':
|
||||||
doCCexTrading(true);
|
doCCexTrading(true);
|
||||||
updateCCexMarkets();
|
updateCCexMarkets();
|
||||||
|
|
Loading…
Add table
Reference in a new issue