Skip to content

kowasaur/npm-coinspot-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CoinSpot API Client for Node.js

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.

Installation

npm install kowasaur/npm-coinspot-api

CoinSpot API Documentation

For the complete, official API documentation, please see https://www.coinspot.com.au/api.

Quick Start Example

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)
});

Making Calls

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: []
}

Issue

I could not get /api/ro/my/balances/:cointype to work.

Credit

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

Languages

  • JavaScript 100.0%