Skip to content

Commit

Permalink
allow confirming for transferBalance
Browse files Browse the repository at this point in the history
  • Loading branch information
s4w3d0ff authored Jun 29, 2017
1 parent a6031d2 commit 5af30d1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions poloniex/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,16 +514,19 @@ def returnTradableBalances(self):
balances may vary continually with market conditions. """
return self.__call__('returnTradableBalances')

def transferBalance(self, currency, amount, fromAccount, toAccount):
def transferBalance(self, currency, amount, fromAccount, toAccount, confirmed=False):
""" Transfers funds from one account to another (e.g. from your
exchange account to your margin account). Required parameters are
"currency", "amount", "fromAccount", and "toAccount" """
return self.__call__('transferBalance', {
args = {
'currency': str(currency).upper(),
'amount': str(amount),
'fromAccount': str(fromAccount),
'toAccount': str(toAccount)
})
}
if confirmed:
args['confirmed'] = 1
return self.__call__('transferBalance', args)

def returnMarginAccountSummary(self):
""" Returns a summary of your entire margin account. This is the same
Expand Down

0 comments on commit 5af30d1

Please sign in to comment.