How to withdraw the Estimated Balance ?
Naixw0w opened this issue · comments
Naixw0w commented
How to withdraw the total balance? This function only outputs spot balance. I need Estimated Balance
$ticker = $api->prices(); // Make sure you have an updated ticker object for this to work
$balances = $api->balances($ticker);
print_r($balances);
echo "BTC owned: ".$balances['BTC']['available'].PHP_EOL;
echo "ETH owned: ".$balances['ETH']['available'].PHP_EOL;
echo "Estimated Value: ".$api->btc_value." BTC".PHP_EOL;