Skip to content

Commit

Permalink
Add typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam McHardy committed Aug 11, 2023
1 parent fab1dac commit ce96382
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions binance/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def _create_margin_api_uri(self, path: str, version: int = 1) -> str:
def _create_website_uri(self, path: str) -> str:
return self.WEBSITE_URL + '/' + path

def _create_futures_api_uri(self, path: str, version=1) -> str:
def _create_futures_api_uri(self, path: str, version: int = 1) -> str:
url = self.FUTURES_URL
if self.testnet:
url = self.FUTURES_TESTNET_URL
Expand Down Expand Up @@ -377,7 +377,7 @@ def _request_api(
uri = self._create_api_uri(path, signed, version)
return self._request(method, uri, signed, **kwargs)

def _request_futures_api(self, method, path, signed=False, version=1, **kwargs) -> Dict:
def _request_futures_api(self, method, path, signed=False, version: int = 1, **kwargs) -> Dict:
uri = self._create_futures_api_uri(path, version)

return self._request(method, uri, signed, True, **kwargs)
Expand Down

0 comments on commit ce96382

Please sign in to comment.