php-binance-api
php-binance-api copied to clipboard
How to hide warning of config file
Short Description:
- I need to do unsigned requests. I do not want to set API key because it is not required for unsigned requests. But package keeps me telling and printing warning in output.
- Unable to load config from: /.config/jaggedsoft/php-binance-api.json Detected no API KEY or SECRET, all signed requests will fail Unable to load config from: /.config/jaggedsoft/php-binance-api.json No proxies will be used Unable to load config from: /.config/jaggedsoft/php-binance-api.json No curl options will be set
This disturbs final output. How to hide this message?
Platform:
- windows
php version:
- 8
code
require 'vendor/autoload.php';
$binanceApi = new API();
$exinfo = $binanceApi->exchangeInfo();
$symbols = $exinfo["symbols"];
result
Unable to load config from: /.config/jaggedsoft/php-binance-api.json Detected no API KEY or SECRET, all signed requests will fail Unable to load config from: /.config/jaggedsoft/php-binance-api.json No proxies will be used Unable to load config from: /.config/jaggedsoft/php-binance-api.json No curl options will be set
thank you