Coindesk.getCoindeskBitcoinPriceIndex()

Display CoinDesk bitcoin price index.

Usage

Hover over inputs/exits for more info.

var Coindesk = require('machinepack-coindesk');


// Display CoinDesk bitcoin price index.

Coindesk.getCoindeskBitcoinPriceIndex({

currency: 'USD',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

currency

The currency used to calculate the price of the index.

'USD'

Exits

error

An unexpected error occurred.

success

OK.

{ code: 'USD',
  symbol: '$',
  rate: '244.0021',
  description: 'United States Dollar',
  rate_float: 244.0021 }