Note: I think all dates/times are in GMT.
A Node.js wrapper for the CoinSpot API with no dependencies. This fork includes the read only API, unlike the official one, and supports nearly everything in the documentation.
npm install kowasaur/npm-coinspot-api
For the complete, official API documentation, please see https://www.coinspot.com.au/api.
const CoinSpot = require('./coinspot');
const key = ''; // insert your key here
const secret = ''; // insert your secret here
const coinspotClient = new CoinSpot(key, secret);
// Example Call
coinspotClient.balances((data, error) => {
console.log(data.balances)
});
All calls require a callback, returning data
and error
if there are any. data
is an object with all response information. Here's an example of what transactions()
's data
looks like:
{
status: 'ok',
buyorders: [
{
otc: false,
market: 'SNX/AUD',
amount: 1.37963384,
created: '2020-12-16T20:06:48.209Z',
audfeeExGst: 0.090009,
audGst: 0.0090009,
audtotal: 10
},
{
otc: false,
market: 'LINK/AUD',
amount: 0.57343395,
created: '2020-12-15T23:24:13.363Z',
audfeeExGst: 0.090009,
audGst: 0.0090009,
audtotal: 10
}
],
sellorders: []
}
I could not get /api/ro/my/balances/:cointype to work.
This package is a fork of Martin Wheeler's.
This README and the repository description were modelled after the CoinGecko API Client for Node.js