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 + "¤cy=" + currency) balances = Utils.process_balances(r.json()) if type(balances) == list: return balances[0] return None
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())