Skip to content

prices() error since this morning #151

@vreesie18

Description

@vreesie18

Since this morning (running for weeks succesfully) I get an error message on running the following code:

$binance_api = new Binance\API(bncrdsfile());	

// Get latest price of a symbol
$binance_ticker = $binance_api->prices();

Error:

Fatal error: Uncaught TypeError: Argument 1 passed to Binance\API::priceData() must be of the type array, null given, called in /var/www/xxxx.xx/php-binance-api/php-binance-api.php on line 700 and defined in /var/www/xxxx.xx/php-binance-api/php-binance-api.php:1367 Stack trace: #0 /var/www/xxxx.xx/php-binance-api/php-binance-api.php(700): Binance\API->priceData(NULL) #1 /var/www/xxxx.xx/binance_test_websockets.php(11): Binance\API->prices() #2 {main} thrown in /var/www/xxxx.xx/php-binance-api/php-binance-api.php on line 1367

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions