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
MIT License
610 stars 496 forks source link

Undefined variable: item #471

Open Aulerien opened 2 years ago

Aulerien commented 2 years ago

Undefined variable: item

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:

php version:

Long descrption

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

bahadorbzd commented 2 years ago

i have this issue

fixable11 commented 1 year ago

The same. Most likely will fork it