coinspot-readonly-api

1.2.1 • Public • Published

Read Only Coinspot API

Forked from the original SDK which did not support read only at all, and has not been touched in 6 years.

Links & Resources

Example Usage

var coinspot = require('coinspot-api');
 
var key = ''; // insert your key here
var secret = ''; // insert your secret here
 
var coinspotClient = new coinspot(key, secret);
 
// Simple balance check
coinspotClient.balances((e, data) => {
    console.log(data);
});
 
// Check balance by coin
// eg: 'BTC', 'LTC', 'DOGE' -- appears to be case insensitive
coinspotClient.balanceByCoin('BTC', (e, data) => {
    console.log(data);
});
 
// List deposits - note empty params
coinspotClient.deposits({}, (e, data) => {
    console.log(data);
});
 
// List deposits - with start and/or end date
// Note lowercase startdate/enddate
coinspotClient.deposits({ startdate: '2020-01-01'}, (e, data) => {
    console.log(data);
});
 
// List referral payments
coinspotClient.referralPayments((e, data) => {
    console.log(data);
});

Supported Calls

Query Supported
List My Balances Yes
List a Coins Balance Yes
List Deposit History Yes
List Withdrawal History 🕑 Not yet
List Transaction History 🕑 Not yet
List Coin Transaction History 🕑 Not yet
List Open Transactions 🕑 Not yet
List Coins Open Transactions 🕑 Not yet
List Send & Receive Transactions 🕑 Not yet
List My Affiliate Payments 🕑 Not yet
List My Referral Payments Yes

Support

Bitcoin (Coinspot!) address: 1J1PbX42RYYk1auWe1ujGunM9cdP1xW4wF

Bitcoin Address

Package Sidebar

Install

npm i coinspot-readonly-api

Weekly Downloads

1

Version

1.2.1

License

MIT

Unpacked Size

5 kB

Total Files

4

Last publish

Collaborators

  • taitems