From 4cca467aa0deaebc1eb8f714da9c369285a492cb Mon Sep 17 00:00:00 2001 From: Mikhail Solovev Date: Thu, 30 Jan 2020 21:19:49 +0300 Subject: [PATCH] Fix one error in double check of api_key Double checked api_key transform to check api_key and api_secret --- php-binance-api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php-binance-api.php b/php-binance-api.php index be79ade3..cdf1860b 100755 --- a/php-binance-api.php +++ b/php-binance-api.php @@ -124,7 +124,7 @@ private function setupApiConfigFromFile(string $file = null) { $file = is_null($file) ? getenv("HOME") . "/.config/jaggedsoft/php-binance-api.json" : $file; - if (empty($this->api_key) === false || empty($this->api_key) === false) { + if (empty($this->api_key) === false || empty($this->api_secret) === false) { return; } if (file_exists($file) === false) {