Skip to content

Commit

Permalink
Exchange.php filter_by_value_since_limit key fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Mar 27, 2020
1 parent d10a2cb commit 8db4384
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions php/base/Exchange.php
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,6 @@ public function __construct($options = array()) {
'511' => 'AuthenticationError',
);
$this->verbose = false;
$this->verboseUserFunc = 'print_r';
$this->apiKey = '';
$this->secret = '';
$this->password = '';
Expand Down Expand Up @@ -1293,8 +1292,8 @@ public function fetch($url, $method = 'GET', $headers = null, $body = null) {
}

if ($this->verbose) {
call_user_func($this->verboseUserFunc, "\nRequest:\n");
call_user_func($this->verboseUserFunc, array('method' => $method, 'url' => $url, 'verbose_headers' => $verbose_headers, 'body' => $body));
print_r("\nRequest:\n");
print_r(array($method, $url, $verbose_headers, $body));
}

// we probably only need to set it once on startup
Expand Down Expand Up @@ -1376,8 +1375,8 @@ function ($curl, $header) use (&$response_headers, &$http_status_text) {
$http_status_code = curl_getinfo($this->curl, CURLINFO_HTTP_CODE);

if ($this->verbose) {
call_user_func($this->verboseUserFunc, "\nResponse:\n");
call_user_func($this->verboseUserFunc, array('method' => $method, 'url' => $url, 'http_status_code' => $http_status_code, 'curl_error' => $curl_error, 'response_headers' => $response_headers, 'result' => $result));
print_r("\nResponse:\n");
print_r(array($method, $url, $http_status_code, $curl_error, $response_headers, $result));
}

$this->handle_errors($http_status_code, $http_status_text, $url, $method, $response_headers, $result ? $result : null, $json_response, $headers, $body);
Expand Down

0 comments on commit 8db4384

Please sign in to comment.