We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 22c7b8d + 0d4bd41 commit 4fbcc81Copy full SHA for 4fbcc81
1 file changed
php-binance-api.php
@@ -832,8 +832,9 @@ public function balances($priceData = false)
832
echo "Error: unable to fetch your account details" . PHP_EOL;
833
}
834
835
- if (isset($account['balances']) === false) {
+ if (isset($account['balances']) === false || empty($account['balances'])) {
836
echo "Error: your balances were empty or unset" . PHP_EOL;
837
+ return [];
838
839
840
return $this->balanceData($account, $priceData);
0 commit comments