-
Notifications
You must be signed in to change notification settings - Fork 498
Closed
Labels
Description
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