@cryptolw2/exchange-cryptomkt

0.1.0 • Public • Published

@cryptolw/exchange-cryptomkt

Install this dependency with:

yarn add axios rxjs @cryptolw/error @cryptolw/exchange-cryptomkt

Usage

"use strict";

const CryptoMKT = require("@cryptolw/exchange-cryptomkt");
const CryptowlError = require("@cryptolw/error");

async function main() {
  const service = new CryptoMKT();

  try {
    const markets = await service.getMarkets();
    // ...
  } catch (err) {
    if (err instanceof CryptowlError) {
      // ...
    }
  }

  const observer = service.ticker$([["ETH", "CLP"], ["ETH", "ARS"]], { interval: "5 min" })
    .subscribe(data => {
      console.log(data);
      // ...
    });

  // ...
}

Readme

Keywords

none

Package Sidebar

Install

npm i @cryptolw2/exchange-cryptomkt

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

124 kB

Total Files

9

Last publish

Collaborators

  • lopezjurip