Skip to content

Commit 068d9c0

Browse files
authored
Remove wapi from all status functions
As per #363 WAPI endpoints will disappear on Aug 1. Functions adapted: apiTradingStatus, accountStatus, systemStatus
2 parents 5d328d0 + bb0276d commit 068d9c0

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

php-binance-api.php

+6-11
Original file line numberDiff line numberDiff line change
@@ -2747,12 +2747,12 @@ public function isOnTestnet() : bool
27472747
}
27482748

27492749
/**
2750-
* systemStatus - Status indicator for sapi and wapi
2751-
* 0 = Normal, 1 = System Maintenance
2752-
*
2750+
* systemStatus - Status indicator for api sapi
2751+
*
2752+
* @link https://binance-docs.github.io/apidocs/spot/en/#test-connectivity
27532753
* @link https://binance-docs.github.io/apidocs/spot/en/#system-status-system
27542754
*
2755-
* @property int $weight 1
2755+
* @property int $weight 2
27562756
*
27572757
* @return array containing the response
27582758
* @throws \Exception
@@ -2768,7 +2768,6 @@ public function systemStatus()
27682768
}
27692769

27702770
$arr['sapi'] = $this->httpRequest("v1/system/status", 'GET', [ 'sapi' => true ], true);
2771-
$arr['wapi'] = $this->httpRequest("v3/systemStatus.html", 'GET', [ 'wapi' => true ], true);
27722771
return $arr;
27732772
}
27742773

@@ -2811,9 +2810,8 @@ public function accountSnapshot($type, $nbrDays = 5, $startTime = 0, $endTime =
28112810
* accountStatus - Fetch account status detail.
28122811
*
28132812
* @link https://binance-docs.github.io/apidocs/spot/en/#account-status-user_data
2814-
* @link https://binance-docs.github.io/apidocs/spot/en/#account-status-sapi-user_data
28152813
*
2816-
* @property int $weight 2
2814+
* @property int $weight 1
28172815
*
28182816
* @return array containing the response
28192817
* @throws \Exception
@@ -2822,17 +2820,15 @@ public function accountStatus()
28222820
{
28232821
$arr = array();
28242822
$arr['sapi'] = $this->httpRequest("v1/account/status", 'GET', [ 'sapi' => true ], true);
2825-
$arr['wapi'] = $this->httpRequest("v3/accountStatus.html", 'GET', [ 'wapi' => true ], true);
28262823
return $arr;
28272824
}
28282825

28292826
/**
28302827
* apiTradingStatus - Fetch account API trading status detail.
28312828
*
28322829
* @link https://binance-docs.github.io/apidocs/spot/en/#account-api-trading-status-user_data
2833-
* @link https://binance-docs.github.io/apidocs/spot/en/#account-api-trading-status-sapi-user_data
28342830
*
2835-
* @property int $weight 2
2831+
* @property int $weight 1
28362832
*
28372833
* @return array containing the response
28382834
* @throws \Exception
@@ -2841,7 +2837,6 @@ public function apiTradingStatus()
28412837
{
28422838
$arr = array();
28432839
$arr['sapi'] = $this->httpRequest("v1/account/apiTradingStatus", 'GET', [ 'sapi' => true ], true);
2844-
$arr['wapi'] = $this->httpRequest("v3/apiTradingStatus.html", 'GET', [ 'wapi' => true ], true);
28452840
return $arr;
28462841
}
28472842
}

0 commit comments

Comments
 (0)