-
-
Notifications
You must be signed in to change notification settings - Fork 160
please add new optional parameter for the 'transferBalance' method #132
Description
polo.transferBalance(currency='BTC', fromAccount='margin', toAccount='lending',amount=0.01661075)
Traceback (most recent call last):
File "", line 1, in
File "/home/strky/anaconda3/envs/py36/lib/python3.6/site-packages/poloniex/init.py", line 525, in transferBalance
'toAccount': str(toAccount)
File "/home/strky/anaconda3/envs/py36/lib/python3.6/site-packages/poloniex/init.py", line 143, in retrying
return func(*args, **kwargs)
File "/home/strky/anaconda3/envs/py36/lib/python3.6/site-packages/poloniex/init.py", line 203, in call
return self.handleReturned(ret.text)
File "/home/strky/anaconda3/envs/py36/lib/python3.6/site-packages/poloniex/init.py", line 270, in handleReturned
raise PoloniexError(out['error'])
poloniex.PoloniexError: Transferring 0.01661075 BTC from your margin account would bring your current margin to 92.03%, putting you in greater danger of a forced liquidation. Please confirm this action by passing confirmed=1 with your request.
as there is no 'confirmed' parameter, please add this one with an empty default value