In this Post, we Integrate google sheets to Bittrex API through the ‘authenticated’ section of the API so I can access my account information.
This Script is to Get account balances from Bittrex.

					//Enable 2FA ( on your account. API Keys cannot be 
generated unless 2FA is enabled.
var key = '<Your API key here>';
  var secret = '<Your Secret key here>';
  var baseUrl = '';
  var nonce = Math.floor(new Date().getTime()/1000);
  var uri = baseUrl.concat("account/getbalance?
  apikey=" + key + "&nonce=" + nonce + "&currency=BTC")
  var signature = Utilities.computeHmacSignature(Utilities.MacAlgorithm
  .HMAC_SHA_512, uri, secret);
 var apisign = {
    return ('0' + (byte & 0xFF).toString(16)).slice(-2);
  var headers = {
    "apisign": apisign
  var params = {
    "method": "get",
    'contentType': 'application/json',
    "headers": headers
  var response = UrlFetchApp.fetch(uri, params);
  var data = JSON.parse(response.getContentText());
  return data.result.Available;

Airtable Consulting, Automate ScriptAirtable Consulting, Automate Script

Hello! I am Haroon Khan

Google apps script developer. I have 6+ years of Experience with Professional Google Apps Script development.

Other Posts