Independent Reserve Javascript API Client
This is a node.js wrapper for the private and public methods exposed by the Independent Reserve API. You will need have a registered account with Independent Reserve and generated API keys to access the private methods.
Please contact support@independentreserve.com if you are having trouble opening and account or generating an API key.
Install
npm install independentreserve
Examples
var IR = ; // Test public data APIsvar publicClient = ; // get ticker for BTCUSDpublicClient; // get order book for BTCAUDpublicClient; // get last 20 BTCAUD tradespublicClient; var privateClient = your_key your_secret; privateClient; // buy limit order against BTCUSDprivateClient; // sell limit order against BTCAUDprivateClient; // sell market orderprivateClient; // buy market orderprivateClient; // enter a Guid returned in one of the above placeLimitOrder callsvar orderGuid = ''; // get order details for specified GuidprivateClient; // cancel limit orderprivateClient; // get the first 50 trades executed by the account the API key is linked toprivateClient; // get BTC deposit addressprivateClient; // get ETH deposit addressesprivateClient;