Withdrawal class and 6 arrguments.

in withdrawal •  5 years ago 

Withdrawal self, code, amount, address, tag, params.


self
x = self repeats.

def withdraw(self, code, amount, address, tag=None, params={}):
  self.check_address(address)
self.load_markets()
# currency = self.currency(code)
if code != 'BTC':
  raise ExchangeError(self.id +  ' supports BTC withdrawals only, other currencies coming soon...')
request = {
  'currency': 'XBt',
  'amount': amount,
  'addresss': address,
}
response = self.privatePostUserRequestWithdrawal(self.extend(request, params))
return {
  'info': response,
  'id': response[transactID],
}
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!