Skip to content

Commit

Permalink
Changes according to 2024-05-02 changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
sndmndss committed May 15, 2024
1 parent 05ae0a1 commit 1e89803
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions bpx/__async/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ async def get_deposit_address(self, blockchain: str, window: int = None):
url, headers, params = super().get_deposit_address(blockchain, window)
return await self.http_client.get(url, headers=headers, params=params)

async def get_withdrawals(self, limit: int = 100, offset: int = 0, window: int = None):
url, headers, params = super().get_withdrawals(limit, offset, window)
async def get_withdrawals(self, limit: int = 100, offset: int = 0,
__from: int = None,to: int = None, window: int = None):

url, headers, params = super().get_withdrawals(limit, offset, __from, to, window)
return await self.http_client.get(url, headers=headers, params=params)

async def withdrawal(self, address: str,
Expand Down
2 changes: 1 addition & 1 deletion bpx/__async/public.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async def get_ticker(self, symbol: str):
async def get_depth(self, symbol: str):
return await self.http_client.get(self.get_depth_url(symbol))

async def get_klines(self, symbol: str, interval: str, start_time=0, end_time=0):
async def get_klines(self, symbol: str, interval: str, start_time: int, end_time=0):
return await self.http_client.get(self.get_klines_url(symbol, interval, start_time, end_time))

async def get_status(self):
Expand Down

0 comments on commit 1e89803

Please sign in to comment.