cryptomkt-client

1.0.4 • Public • Published

Cliente Node para Cryptomarket

Instalar con:

npm i cryptomkt-client --save

Usage

"use strict";
const CryptoMKT = require("cryptomkt-client");
const CryptoMKTError = require("cryptomkt-client/error");

const service = new CryptoMKT('apiKey', 'apiSecret');
service.obtenerMarkets().then((data) => {
    // ...
}).catch(err => {
    if (err instanceof CryptoMKTError) {
        // ...
    } else {
        // ...
    }
});
const market = service.obtenerMarket('ETHARS');

market.obtenerLibroOrdenes('buy').then((data) => {
    // ...
}).catch(err => {
    // ...
});

// ...

Readme

Keywords

none

Package Sidebar

Install

npm i cryptomkt-client

Weekly Downloads

1

Version

1.0.4

License

ISC

Unpacked Size

11.8 kB

Total Files

9

Last publish

Collaborators

  • facditul