coingate-v2
Node.js Library for Coingate V2 API
Prerequisites
- Node.js >= v8.x
Installation
npm install coingate-v2
Usage
Creating a client:
const client testClient Client Config = ; const coingate = ;const testCongate = ;
Available methods:
// https://developer.coingate.com/docs/create-orderawait coingate; // https://developer.coingate.com/docs/get-orderawait coingate; // https://developer.coingate.com/docs/list-ordersawait coingate; // https://developer.coingate.com/docs/get-rateawait coingate; // https://developer.coingate.com/docs/list-ratesawait coingate; // https://developer.coingate.com/docs/pingawait coingate;
Running tests:
npm run test
Coverage
--------------|----------|----------|----------|----------|-------------------|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
--------------|----------|----------|----------|----------|-------------------|
All files | 97.48 | 64.29 | 100 | 97.48 | |
src | 100 | 100 | 100 | 100 | |
index.js | 100 | 100 | 100 | 100 | |
src/client | 94.44 | 64.29 | 100 | 94.44 | |
api.js | 100 | 100 | 100 | 100 | |
config.js | 100 | 66.67 | 100 | 100 | 5 |
index.js | 90.63 | 42.86 | 100 | 90.63 | 28,56,61 |
test | 100 | 100 | 100 | 100 | |
client.js | 100 | 100 | 100 | 100 | |
coingate.js | 100 | 100 | 100 | 100 | |
--------------|----------|----------|----------|----------|-------------------|
Roadmap
- Add full support of exchange rate APIs (merchant, trader etc.)
Support development
I really love open source, however i do need your help to keep the library up to date. There are several ways to do it: open issues, submit PRs, share the library w/ community or simply-