coinspot-api-v2

coinspot.com.au API client for node.js

Usage no npm install needed!

<script type="module">
  import coinspotApiV2 from 'https://cdn.skypack.dev/coinspot-api-v2';
</script>

README

Please see https://www.coinspot.com.au/api for documentation on the CoinSpot API.

Forked from https://github.com/rtw/npm-coinspot-api with the addition of some V2 endpoints not currently available in the Coinspot SDK.

Example usage

var coinspot = require('coinspot-api');

var secret = ''; // insert your secret here
var key = ''; // insert your key here

var client = new coinspot(key, secret);

client.orders('LTC', function(e, data) {
    console.log(data);
});

client.myorders(function(e, data) {
    console.log(data);
});

client.spot(function(e, data) {
    console.log(data);
});

client.buy('BTC', 0.3, 529, function(e, data) {
    console.log(data);
});

client.sell('DOGE', 0.3, 0.00024, function(e, data) {
    console.log(data);
});