Skip to content

Commit

Permalink
Remove wapi from all status functions
Browse files Browse the repository at this point in the history
As per #363 WAPI endpoints will disappear on Aug 1.
Functions adapted: apiTradingStatus, accountStatus, systemStatus
  • Loading branch information
ePascalC authored Jul 3, 2021
2 parents 5d328d0 + bb0276d commit 068d9c0
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions php-binance-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
}

Expand Down Expand Up @@ -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
Expand All @@ -2822,17 +2820,15 @@ 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;
}

/**
* 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
Expand All @@ -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;
}
}

0 comments on commit 068d9c0

Please sign in to comment.