0.0.1 • Published 7 years ago

node-crypto-exchanges v0.0.1

Weekly downloads
4
License
ISC
Repository
github
Last release
7 years ago

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 exchangesGet market historyGet pairsGet ticker
Bitfinexxxx
Bitstampxxx
Bittrexxxx
GDaxxxx
Geminixxx
Krakenxxx
Liquixxx
Poloniexxxx

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