I am making ab API call to coinbase using the example coinbase supplied but I get Error: SSL Error: https://api.coinbase.com/v2/prices/BTC-USD/spot does not support SSL at Request
npm install coinbase var Client = require('coinbase').Client;
var btcClient = new Client({
'apiKey': '...',
'apiSecret': '...',
'version': '2010-04-20'
});
var currencyCode = 'USD';
btcClient.getSpotPrice({
'currency': currencyCode
}, function(err, price) {
console.log('Current bitcoin price in ' + currencyCode + ': ' + price.data.amount);
});
Can someone help me with this?