Skip to content

Commit

Permalink
add currencyToWithdrawAs
Browse files Browse the repository at this point in the history
  • Loading branch information
s4w3d0ff committed Jul 11, 2019
1 parent 5861922 commit 2dd8a37
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion poloniex/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ def moveOrder(self, orderNumber, rate, amount=False, orderType=False):

return self.__call__('moveOrder', args)

def withdraw(self, currency, amount, address, paymentId=False):
def withdraw(self, currency, amount, address, paymentId=False, currencyToWithdrawAs=False ):
""" Immediately places a withdrawal for a given currency, with no email
confirmation. In order to use this method, the withdrawal privilege
must be enabled for your API key. Required parameters are
Expand All @@ -543,6 +543,8 @@ def withdraw(self, currency, amount, address, paymentId=False):
}
if paymentId:
args['paymentId'] = str(paymentId)
if currencyToWithdrawAs:
args['currencyToWithdrawAs'] = str(currencyToWithdrawAs)
return self.__call__('withdraw', args)

def returnFeeInfo(self):
Expand Down

0 comments on commit 2dd8a37

Please sign in to comment.