sammchardy / python-binance

Binance Exchange API python implementation for automated trading
https://python-binance.readthedocs.io/en/latest/
MIT License
5.91k stars 2.19k forks source link

Get withdraw history failing unexpectedly #852

Open ngriffiths13 opened 3 years ago

ngriffiths13 commented 3 years ago

Describe the bug I am trying to access my withdrawal and deposit histories and receiving the following error:

<ipython-input-4-e52a5e13df7b> in <module>
----> 1 client.get_withdraw_history()

~/personal/binance/.venv/lib/python3.8/site-packages/binance/client.py in get_withdraw_history(self, **params)
   2600 
   2601         """
-> 2602         return self._request_margin_api('get', 'capital/withdraw/history', True, data=params)
   2603 
   2604     def get_withdraw_history_id(self, withdraw_id, **params):

~/personal/binance/.venv/lib/python3.8/site-packages/binance/client.py in _request_margin_api(self, method, path, signed, **kwargs)
    356         uri = self._create_margin_api_uri(path)
    357 
--> 358         return self._request(method, uri, signed, **kwargs)
    359 
    360     def _request_website(self, method, path, signed=False, **kwargs) -> Dict:

~/personal/binance/.venv/lib/python3.8/site-packages/binance/client.py in _request(self, method, uri, signed, force_params, **kwargs)
    307 
    308         self.response = getattr(self.session, method)(uri, **kwargs)
--> 309         return self._handle_response(self.response)
    310 
    311     @staticmethod

~/personal/binance/.venv/lib/python3.8/site-packages/binance/client.py in _handle_response(response)
    316         """
    317         if not (200 <= response.status_code < 300):
--> 318             raise BinanceAPIException(response, response.status_code, response.text)
    319         try:
    320             return response.json()

BinanceAPIException: APIError(code=-1100): Illegal characters found in a parameter.

This seems like a weird error to me because I am not passing any parameters. I also am able to hit other endpoints with my client credentials.

To Reproduce I am simply following the example and running: client.get_withdraw_history()

Expected behavior I expect to receive a json containing withdrawal information.

Environment (please complete the following information):

smallham1 commented 3 years ago

Checking in... have the same problem. Just trying to access my withdraw history and withdraw any currency and having this problem. Did you find a solution?

fmnt-whoa commented 2 years ago

Getting the same error when calling client.get_account_snapshot().

You guys ever find a fix? @smallham1 or @ngriffiths13