qume-api

0.0.3 • Public • Published

qume-api

API Connector for QUME Crypto Exchange

npm install qume-api

API wrapper for the QUME REST API. Please refer to this documentation for all calls explained.

This is a low level wrapper with zero dependencies focussed on speed:

  • No third party libraries
  • Allows you to pre compile your message (see below under low latency usage)

Usage

Import and Initialization

const QumeAPI = require("qume-api")

const qumeClient = new QumeAPI({
    apiKey: "--api-key--",
    apiSecret: "--api-secret--",
    passPhrase: "--pass-phrase--"
})

Standard usage

const data = await qumeClient.request({
    method: "GET",
    path: "/wallets"
})

Low latency usage

This library allows you to prepare an API request draft before hand (doing all the heavy work) :

const draft = qumeClient.createDraft({
    method: "GET",
    path: "/wallets"
});

const data = await qumeClient.requestDraft(draft);

Note that this only works in scenarios where you can estimate what will happen or which scenarios might happen: You can create drafts for all of them and only end up sending one later.

Package Sidebar

Install

npm i qume-api

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

7.58 kB

Total Files

4

Last publish

Collaborators

  • zenshubham