Skip to content

imlaxman/coinspot-test-client-nodejs

 
 

Repository files navigation

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

To run: Rename ".env.example" => ".env" and add your API key and secret.

install dependancies with npm install

$ npm run test

Example usage

const coinspot = require('./coinspot.js')
require('dotenv').config()

//key and secret kept seperate in .env file
const key = process.env.PRIVATE_KEY
const secret = process.env.SECRET

var client = new coinspot(key, secret);


client.status_fa()
client.status_ro()

//inputs: cointype, amounttype - aud/coin, amount
client.quotebuy('DOGE', 'AUD', 10)
//optional inputs: rate, threshold 
client.instant_buy_now('DOGE', 'coin', 30)

//inputs: coin
client.open_market_orders('DOGE')

client.get_sendreceives()

About

example client for coinspot API v2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.5%
  • Shell 0.5%