CoinJar Exchange Wrapper
Typescript / Node wrapper for the Data and Trading APIs offered by CoinJar Exchange
Setup
Install the dependancies with npm
or yarn
.
npm install coinjarexchange --save
yarn add coinjarexchange
API Key
In order to utilise the trading-api
you'll need to generate an API Key.
Usage
The API wrapper exposes a Data and a Trading method, which contain each of the endpoint functions.
Exposed Functions
Examples
Examples for usage of each function can be found within the examples folder
import { CoinJarExchange } from 'coinjarexchange';
const cje = new CoinJarExchange('MyApiKey');
cje.data().getProductTicker('BTCAUD')
.then(resp => {
console.log(resp);
});
cje.trading().getFills()
.then(resp => {
console.log(resp);
});