php-binance-api icon indicating copy to clipboard operation
php-binance-api copied to clipboard

How to hide warning of config file

Open nadir1122 opened this issue 2 years ago • 0 comments

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

nadir1122 avatar Jun 21 '22 14:06 nadir1122