Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitfinex-data

Real-time cryptocurrency quotes and data from Bitfinex

0.0.1
latest
Version published
Maintainers
1
Created

bitfinex-data

Real-time cryptocurrency quotes and data from Bitfinex

Install

$ npm install bitfinex-data --save

Usage


var bitfinex = require("bitfinex-data");

(async () => {
    try {
        let data = await bitfinex.getTicker("BTCUSD");
        console.log(JSON.stringify(data, null, 2));
    }
    catch (ex) {
        console.log('caught error:' + ex.stack);
    }
})();

/*
{
  "bid": "8567.2",
  "ask": "8573.1",
  "last": "8571.8"
}
*/

License

MIT license; see LICENSE.

FAQs

Package last updated on 11 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts