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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to hide warning of config file

nadir1122 opened this issue · 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