Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to withdraw the Estimated Balance ? #472

Open
Naixw0w opened this issue Apr 16, 2022 · 0 comments
Open

How to withdraw the Estimated Balance ? #472

Naixw0w opened this issue Apr 16, 2022 · 0 comments

Comments

@Naixw0w
Copy link

Naixw0w commented Apr 16, 2022

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;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant