node-crypto-exchanges

0.0.1 • Public • Published

Node Crypto Brokers

npm version

Installation

npm i node-crypto-exchanges

Usage

// TO DO : Clean it, it's an issue with Webpack / Typescript
// It should be possible to do import CryptoExchangesAPI from 'node-crypto-exchanges';
const CryptoExchangesAPI = require('node-crypto-exchanges').default;
 
// For each broker, you will need to init the class and define env vars
const cryptoBroker = new CryptoExchangesAPI({
  env: 'sandbox', // or live
  debug: true,
  exchange: 'bitfinex', // or bitstamp, bittrex, gdax, gemini, kraken, liqui, poloniex
  key: 'exchange key',
  secret: 'exchange secret'
});

Lib

See getMarketHistory params See getTicker params

cryptoBroker
 
  .getMarketHistory({
    c1: 'BTC',
    c2: 'USD',
    start: '2017-09-17T02:01:26-07:00',
    end: '2017-09-19T02:01:26-07:00',
    timeframe: 1440
  }, cb);
 
  .getPairs({}, cb);
 
  .getTicker({
    c1: 'BTC',
    c2: 'USD'
  }, cb);

Exchanges

Digital asset exchanges Get market history Get pairs Get ticker
Bitfinex x x x
Bitstamp x x x
Bittrex x x x
GDax x x x
Gemini x x x
Kraken x x x
Liqui x x x
Poloniex x x x

Donate

This project is a work in progress as I'm adding more exchanges and functions. Help support this project with a donation or PR!

  • BTC: 1GLXmx9Lmv8kCoCykPMWiSGqDfEq1FNN8Q
  • ETH: 0xe4a6c989488e54e076fcde841e206cd0ab9a8807
  • LTC: LL3T4hpuspTPtA2AZ2hejqfnbk1XjELTZy

Package Sidebar

Install

npm i node-crypto-exchanges

Weekly Downloads

0

Version

0.0.1

License

ISC

Last publish

Collaborators

  • vtllr