JSPM

crypto-coin

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q29068F
  • License MIT

gets basic market data

Package Exports

  • crypto-coin

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (crypto-coin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

How to Install

$ npm install crypto-coin

Basic Usage

var Products = require('crypto-coin')`

var BTC = new Products() // default param is ("BTC-USD")
var LTC = new Products("LTC-USD")

console.log(BTC.price) //=> 4000
console.log(LTC.price) //=> 43

API

var BTC = new Products()

BTC.price
BTC.volume
BTC.bid
BTC.ask
BTC.spread

BTC.pairs // Array of all available pairs 
          //=> "BTC-USD", "BTC-EUR", "BTC-GBP", "ETH-BTC", "ETH-EUR","ETH-USD", "LTC-BTC", "LTC-EUR", "LTC-USD"

Note

All operations are done synchronously

Information is relative to GDAX Exchange `