From bb0276d207d12d8fbbcda2cc82acef6a4244f3d1 Mon Sep 17 00:00:00 2001 From: ePascalC Date: Sat, 3 Jul 2021 19:08:07 +0200 Subject: [PATCH] Remove wapi from all status functions As per #363 WAPI endpoints will disappear on Aug 1. Functions adapted: apiTradingStatus, accountStatus, systemStatus --- php-binance-api.php | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/php-binance-api.php b/php-binance-api.php index 98a73d8..d5cc59d 100755 --- a/php-binance-api.php +++ b/php-binance-api.php @@ -2747,12 +2747,12 @@ public function isOnTestnet() : bool } /** - * systemStatus - Status indicator for sapi and wapi - * 0 = Normal, 1 = System Maintenance - * + * systemStatus - Status indicator for api sapi + * + * @link https://binance-docs.github.io/apidocs/spot/en/#test-connectivity * @link https://binance-docs.github.io/apidocs/spot/en/#system-status-system * - * @property int $weight 1 + * @property int $weight 2 * * @return array containing the response * @throws \Exception @@ -2768,7 +2768,6 @@ public function systemStatus() } $arr['sapi'] = $this->httpRequest("v1/system/status", 'GET', [ 'sapi' => true ], true); - $arr['wapi'] = $this->httpRequest("v3/systemStatus.html", 'GET', [ 'wapi' => true ], true); return $arr; } @@ -2811,9 +2810,8 @@ public function accountSnapshot($type, $nbrDays = 5, $startTime = 0, $endTime = * accountStatus - Fetch account status detail. * * @link https://binance-docs.github.io/apidocs/spot/en/#account-status-user_data - * @link https://binance-docs.github.io/apidocs/spot/en/#account-status-sapi-user_data * - * @property int $weight 2 + * @property int $weight 1 * * @return array containing the response * @throws \Exception @@ -2822,7 +2820,6 @@ public function accountStatus() { $arr = array(); $arr['sapi'] = $this->httpRequest("v1/account/status", 'GET', [ 'sapi' => true ], true); - $arr['wapi'] = $this->httpRequest("v3/accountStatus.html", 'GET', [ 'wapi' => true ], true); return $arr; } @@ -2830,9 +2827,8 @@ public function accountStatus() * apiTradingStatus - Fetch account API trading status detail. * * @link https://binance-docs.github.io/apidocs/spot/en/#account-api-trading-status-user_data - * @link https://binance-docs.github.io/apidocs/spot/en/#account-api-trading-status-sapi-user_data * - * @property int $weight 2 + * @property int $weight 1 * * @return array containing the response * @throws \Exception @@ -2841,7 +2837,6 @@ public function apiTradingStatus() { $arr = array(); $arr['sapi'] = $this->httpRequest("v1/account/apiTradingStatus", 'GET', [ 'sapi' => true ], true); - $arr['wapi'] = $this->httpRequest("v3/apiTradingStatus.html", 'GET', [ 'wapi' => true ], true); return $arr; } }