ohenrik / bitfinex

A Python client for the Bitfinex API
MIT License
58 stars 32 forks source link

unhandled exception in restv1 #9

Closed dantimofte closed 6 years ago

dantimofte commented 6 years ago

2018-09-12 17:02:11,545 - telegram.ext.dispatcher - ERROR - An uncaught error was raised while processing the update Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/telegram/ext/dispatcher.py", line 279, in process_update handler.handle_update(update, self) File "/usr/local/lib/python3.6/site-packages/telegram/ext/commandhandler.py", line 173, in handle_update return self.callback(dispatcher.bot, update, *optional_args) File "bitfinex-telegram/btfxbot.py", line 50, in wrapper return passed_function(args, **kwargs) File "bitfinex-telegram/btfxbot.py", line 312, in cb_new_order symbol=tradepair File "/usr/local/lib/python3.6/site-packages/bitfinex/rest/restv1.py", line 142, in place_order response = self._post("/order/new", payload=payload, verify=True) File "/usr/local/lib/python3.6/site-packages/bitfinex/rest/restv1.py", line 108, in _post raise BitfinexException(response.status_code, response.reason, content) bitfinex.rest.restv1.BitfinexException: (400, 'Bad Request', {'message': 'Cannot evaluate your available balance, please try again'})