예제 #1
0
 def get_balance(self, currency):
     if currency is None:
         return None
     r = self.send_request(
         "https://bittrex.com/api/v1.1/account/getbalance?apikey=" +
         self.api_key + "&currency=" + currency)
     balances = Utils.process_balances(r.json())
     if type(balances) == list:
         return balances[0]
     return None
예제 #2
0
 def get_balances(self):
     r = self.send_request(
         "https://bittrex.com/api/v1.1/account/getbalances?apikey=" +
         self.api_key)
     return Utils.process_balances(r.json())