jaggedsoft / php-binance-api

PHP Binance API is an asynchronous PHP library for the Binance API designed to be easy to use. https://github.com/binance-exchange/php-binance-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Undefined variable: item

Aulerien opened this issue · comments

Undefined variable: item

  • bug

Short Description:
In the file vendor/jaggedsoft/php-binance-api/php-binance-api.php, inside the function depositHistory the error occured on foreach ($return as $key->$item) {

// Adding for backwards compatibility with wapi
        foreach ($return as $key->$item) {
            $return[$key]['asset'] = $item['coin'];
        }

Platform:

  • linux

php version:

  • 7.4

Long descrption

  • The method depositHistory in vendor/jaggedsoft/php-binance-api/php-binance-api.php

code

//...
$api_key = env('BINANCE_API_KEY');
$api_secret = env('BINANCE_API_SECRET');
$binance_api = new \Binance\API($api_key, $api_secret);
$depositHistory = $binance_api->depositHistory();
dump($depositHistory);
;

result

Undefined variable: item

thank you

i have this issue

The same. Most likely will fork it