OKCoin China API Wrapper
A node.js wrapper for the REST APIs exposed by bitcoin exchange OKCoin. You will need to have a registered account with OKCoin and generated API keys to access the private methods.
Please contact support@okcoin.com if you are having trouble opening an account or generating an API key.
This module is forked from okcoin.
forked from naddison36
A node.js wrapper for the REST APIs exposed by bitcoin exchange OKCoin. You will need to have a registered account with OKCoin and generated API keys to access the private methods.
Please contact support@okcoin.com if you are having trouble opening and account or generating an API key.
Install
npm install okcoin-china
var OKCoin = ; // Test public data APIsvar publicClient = ; // get BTCCNY tickerpublicClient; // get BTCCNY order bookpublicClient; // get trades defaulting to BTCCNYpublicClient; // replace the parameters with your API key and secretvar privateClient = 'your-api-key' 'your-api-secret'; privateClient; // buy limit order for 0.01 BTC at price 4000 CNYprivateClient;