binance/binance-connector-php

Can the error output of API response 400 be ignored?

wartw opened this issue · 2 comments

Can the error output of API response 400 be ignored?
This affects other CODE operations

Change file:
vendor\binance\binance-connector-php\src\Binance\APIClient.php

private function buildClient($httpRequest)
{
$this->httpRequest = $httpRequest ??
new \GuzzleHttp\Client([
'base_uri' => $this->baseURL,
'headers' => [
'Content-Type' => 'application/json',
'X-MBX-APIKEY' => $this->key,
'User-Agent' => 'binance-connect-php'
],
'timeout' => $this->timeout
]);
}

change to
private function buildClient($httpRequest)
{
$this->httpRequest = $httpRequest ??
new \GuzzleHttp\Client([
'base_uri' => $this->baseURL,
'headers' => [
'Content-Type' => 'application/json',
'X-MBX-APIKEY' => $this->key,
'User-Agent' => 'binance-connect-php'
],
'timeout' => $this->timeout,
'http_errors' => false
]);
}

can't we add this as a parameter so it's easier to use.