diff --git a/web/yaamp/core/exchange/cexio.php b/web/yaamp/core/exchange/cexio.php index 243a4b6..e095f66 100644 --- a/web/yaamp/core/exchange/cexio.php +++ b/web/yaamp/core/exchange/cexio.php @@ -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(); } } diff --git a/web/yaamp/core/trading/trading.php b/web/yaamp/core/trading/trading.php index 6f1d28c..3027d39 100644 --- a/web/yaamp/core/trading/trading.php +++ b/web/yaamp/core/trading/trading.php @@ -87,6 +87,10 @@ function runExchange($exchangeName=false) updateBittrexMarkets(); break; + case 'cexio': + getCexIoBalances(); + break; + case 'c-cex': doCCexTrading(true); updateCCexMarkets();