CoinSpot API
The new API provides additional functionality as well as enhancements of existing processes.
Documentation for the new API is available here.
This page will provide basic documentation on using the CoinSpot API.
To use this API you need to generate an API key, you generate your API key from the settings page in your account. Please note that you must be registered customer to use the API, registering is free and only takes a minute, you can register here.
Important things to note
All requests and responses will be JSON
All requests will be made with the POST method.
Requests are limited to 1000 requests per minute.
The endpoint for the API is https://www.coinspot.com.au/api
The endpoint for the Public API is https://www.coinspot.com.au/pubapi
Read Only API
We have a Read Only API available, you can read the documentation for the read only API here.
We currently have a node.js SDK, if you are interested in getting an SDK in another language Contact us
Url
https://www.coinspot.com.au/pubapi/latest
Inputs
none
Response
status - ok, errorprices - object containing one property for each coin with the latest prices for that coin
The API is secured using by using the shared secret key to create a HMAC with the SHA512 cryptographic hash function. Hash-based message authentication code (HMAC) is a mechanism for calculating a message authentication code involving a hash function in combination with a secret key. This can be used to verify the integrity and authenticity of a a message.
All requests to the API will need to include the following security data.
Headers
key - Your API key generated from the settings pagesign - The POST data is to be signed using your secret key according to HMAC-SHA512 method.
Post Params
nonce - Any integer value which must always be greater than the previous requests nonce value.
Url
/orders
Inputs
cointype - the coin shortname, example value 'BTC', 'LTC', 'DOGE'
Response
status - ok, errorbuyorders - array containing all the open buy orders
sellorders - array containing all the open sell orders
Url
/orders/history
Inputs
cointype - the coin shortname, example value 'BTC', 'LTC', 'DOGE'
Response
status - ok, errororders - list of the last 1000 completed orders
Url
/my/coin/deposit
Inputs
cointype - the coin shortname, example value 'BTC', 'LTC', 'DOGE'
Response
status - ok, erroraddress - your deposit address for the coin
Url
/quote/buy
Inputs
cointype - the coin shortname, example value 'BTC', 'LTC', 'DOGE'amount - the amount of coins to buy
Response
status - ok, errorquote - the rate per coin
timeframe - estimate hours to wait for trade to complete (0 = immediate trade)
Url
/quote/sell
Inputs
cointype - the coin shortname, example value 'BTC', 'LTC', 'DOGE'amount - the amount of coins to sell
Response
status - ok, errorquote - the rate per coin
timeframe - estimate hours to wait for trade to complete (0 = immediate trade)
Url
/my/balances
Inputs
none
Response
status - ok, errorbalances - object containing one property for each coin with your balance for that coin.
A list of your open orders by coin type, it will return a maximum of 100 results
Url
/my/orders
Inputs
none
Response
status - ok, errorbuyorders - array containing all your buy orders
sellorders - array containing all your sell orders
Url
/my/buy
Inputs
cointype - the coin shortname, example value 'BTC', 'LTC', 'DOGE'amount - the amount of coins you want to buy, max precision 8 decimal places
rate - the rate in AUD you are willing to pay, max precision 6 decimal places
Response
status - ok, error
Url
/my/sell
Inputs
cointype - the coin shortname, example value 'BTC', 'LTC', 'DOGE'amount - the amount of coins you want to sell, max precision 8 decimal places
rate - the rate in AUD you are willing to sell for, max precision 6 decimal places
Response
status - ok, error
Url
/my/buy/cancel
Inputs
id - the id of the order to cancel
Response
status - ok, error
Url
/my/sell/cancel
Inputs
id - the id of the order to cancel
Response
status - ok, error
We have a Read Only API available.
To use this API, you need to generate a Read Only API key from the settings page.
Important things to note about the read only API
All requests and responses will be JSON.
All requests will be made with the POST method.
The endpoint for the Read Only API is https://www.coinspot.com.au/api/ro
Url
https://www.coinspot.com.au/api/ro/my/balances
Inputs
none
Response
status - ok, errorbalances - array containing one object for each coin with your balance, AUD value and rate for that coin
Url
/api/ro/my/balances/:cointype
Inputs
cointype - the coin shortname, example value 'BTC', 'LTC', 'DOGE'
Response
status - ok, errorbalance - object containing one property with your balance, AUD value and rate for that coin
Url
/api/ro/my/deposits
Inputs
startdate - (optional) format 'YYYY-MM-DD'enddate - (optional) format 'YYYY-MM-DD'
Response
status - ok, errordeposits - array containing your AUD deposit history
Url
/api/ro/my/withdrawals
Inputs
startdate - (optional) format 'YYYY-MM-DD'enddate - (optional) format 'YYYY-MM-DD'
Response
status - ok, errorwithdrawals - array containing your AUD withdrawal history
Url
/api/ro/my/transactions
Inputs
startdate - (optional) format 'YYYY-MM-DD'enddate - (optional) format 'YYYY-MM-DD'
Response
status - ok, errorbuyorders - array containing your buy order history
sellorders - array containing your sell order history
Url
/api/ro/my/transactions/:cointype
Inputs
cointype - the coin shortname, example value 'BTC', 'LTC', 'DOGE'startdate - (optional) format 'YYYY-MM-DD'
enddate - (optional) format 'YYYY-MM-DD'
Response
status - ok, errorbuyorders - array containing your coins buy order history
sellorders - array containing your coins sell order history
Url
/api/ro/my/transactions/open
Inputs
none
Response
status - ok, errorbuyorders - array containing your open buy orders
sellorders - array containing your open sell orders
Url
/api/ro/my/transactions/:cointype/open
Inputs
cointype - the coin shortname, example value 'BTC', 'LTC', 'DOGE'
Response
status - ok, errorbuyorders - array containing your coins open buy orders
sellorders - array containing your coins open sell orders
Url
/api/ro/my/sendreceive
Inputs
none
Response
status - ok, errorsendtransactions - array containing your coin send transaction history
receivetransactions - array containing your coin receive transaction history
Url
/api/ro/my/affiliatepayments
Inputs
none
Response
status - ok, errorpayments - array containing one object for each completed affiliate payment
Url
/api/ro/my/referralpayments
Inputs
none
Response
status - ok, errorpayments - array containing one object for each completed referral payment