Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to hide warning of config file #483

Open
nadir1122 opened this issue Jun 21, 2022 · 0 comments
Open

How to hide warning of config file #483

nadir1122 opened this issue Jun 21, 2022 · 0 comments

Comments

@nadir1122
Copy link

nadir1122 commented Jun 21, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant