Skip to content

Commit d153dd9

Browse files
authored
Add function apiRestrictions
apiRestrictions method added
2 parents 1360aaa + 59b40e2 commit d153dd9

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

php-binance-api.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2930,6 +2930,21 @@ public function accountStatus()
29302930
$arr['sapi'] = $this->httpRequest("v1/account/status", 'GET', [ 'sapi' => true ], true);
29312931
return $arr;
29322932
}
2933+
2934+
/**
2935+
* apiRestriction - Fetch a set of API restrictions
2936+
*
2937+
* @link https://binance-docs.github.io/apidocs/spot/en/#get-api-key-permission-user_data
2938+
*
2939+
* @property int $weight 1
2940+
*
2941+
* @return array containing the response
2942+
* @throws \Exception
2943+
*/
2944+
public function apiRestrictions()
2945+
{
2946+
return $this->httpRequest("v1/account/apiRestrictions", 'GET', ['sapi' => true], true);
2947+
}
29332948

29342949
/**
29352950
* apiTradingStatus - Fetch account API trading status detail.

0 commit comments

Comments
 (0)