From bf886635842ef0cf4909b15a67d63c0af1a95ed8 Mon Sep 17 00:00:00 2001 From: Kevin Date: Sun, 25 Jul 2021 19:22:49 +0000 Subject: [PATCH] Fix Php Loop in Deposit History --- php-binance-api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php-binance-api.php b/php-binance-api.php index bf372740..b99a20e1 100755 --- a/php-binance-api.php +++ b/php-binance-api.php @@ -864,7 +864,7 @@ public function depositHistory(string $asset = null, array $params = []) $return = $this->httpRequest("v1/capital/deposit/hisrec", "GET", $params, true); // Adding for backwards compatibility with wapi - foreach ($return as $key->$item) { + foreach ($return as $key=>$item) { $return[$key]['asset'] = $item['coin']; }