Example #1
0
 def buildHTTPClient(self, clientId, key, secret):
     return httpclient.HTTPClient(clientId, key, secret)
def get_balance(pair, api_key, api_secret):
    cli = httpclient.HTTPClient(client_id, api_key.encode(),
                                api_secret.encode())
    url = "https://www.bitstamp.net/api/v2/balance/" + pair + "/"
    jsonResponse = cli._post(url, {})
    return httpclient.AccountBalance(jsonResponse).getDict()