Socket
Socket
Sign inDemoInstall

coinspot-readonly-api

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coinspot-readonly-api - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

9

index.js

@@ -55,4 +55,13 @@ const hmac = require("crypto").createHmac;

}
self.deposits = (params, callback) => {
request(`/api/ro/my/deposits/`, params, callback);
}
self.referralPayments = callback => {
request('/api/ro/my/referralpayments', {}, callback);
}
}
module.exports = coinspot

2

package.json
{
"name": "coinspot-readonly-api",
"version": "1.0.2",
"version": "1.1.0",
"description": "Read-only API client for coinspot.com.au",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -11,13 +11,30 @@ ### Read Only Coinspot API

```
```js
var coinspot = require('coinspot-api');
var key = ''; // insert your key here
var secret = ''; // insert your secret here
var key = ''; // insert your key here
var client = new coinspot(key, secret);
var coinspotClient = new coinspot(key, secret);
// Simple balance check
coinspotClient.balances((e, data) => {
console.log(data);
});
// List deposits - note empty params
coinspotClient.balances({}, (e, data) => {
console.log(data);
});
// List deposits - with start and/or end date
// Note lowercase startdate/enddate
coinspotClient.balances({ startdate: '2020-01-01'}, (e, data) => {
console.log(data);
});
// List referral payments
coinspotClient.referralPayments((e, data) => {
console.log(data);
});
```

@@ -31,3 +48,3 @@

| List a Coins Balance | 🕑 Not yet |
| List Deposit History | 🕑 Not yet |
| List Deposit History | ✅ **Yes** |
| List Withdrawal History | 🕑 Not yet |

@@ -40,3 +57,3 @@ | List Transaction History | 🕑 Not yet |

| List My Affiliate Payments | 🕑 Not yet |
| List My Referral Payments | 🕑 Not yet |
| List My Referral Payments | ✅ **Yes** |

@@ -43,0 +60,0 @@ #### Support

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc