CoinFlux.com JavaScript API Client
This is an asynchronous NodeJS client for the coinflux.com API. It exposes all the API methods found here: https://api.coinflux.com/v0/ through the api
method:
$ npm install coinflux-api
const key = '...'; // API Key
const secret = '...'; // API Private Key
const options = {
"env": "test", //defaults to prod -> production
"timeout": 20000, //optional, defaults to 20000
"ua" : "Client software name" //optional
}
const CoinFluxClient = require('coinflux-api');
const coinflux = new CoinFluxClient(key, secret, options);
(async () => {
// Get Ticker Info
console.log(await coinflux.api('getRate', { pair : 'XBTEUR' }));
// Get Ticker Info
console.log(await coinflux.api('getWallet', { walletid : '0a846ac16f5842e6b48e769e6caa8942' }));
})();
This section states available methods and required parameters.
parameters: pair
parameters: fluxid
parameters: fluxid
parameters: address
parameters: fluxid
parameters: walletid
parameters: walletid
parameters: walletid
and historyid
parameters: ledgerid
parameters: accountid
parameters: walletid
, address
, ccy1
, cost
and, optionally for XRP, address_tag
We used the NodeJS implementation from https://github.com/nothingisdead/npm-kraken-api as reference.