Skip to content

ss-sonic/qume-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

API Connector for QUME Crypto Exchange

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published