
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
A node.js wrapper for the REST APIs exposed by bitcoin exchange OKEX. You will need to have a registered account with OKEX 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-china.
npm install okex-rest
var OKEX = require('okex-rest');
// Test public data APIs
var publicClient = new OKEX();
// get iota_btc ticker
publicClient.getTicker(console.log, 'iota_btc');
// get iota_btc order book
publicClient.getDepth(console.log, 'iota_btc');
// get trades defaulting to iota_btc
publicClient.getTrades(console.log);
// replace the parameters with your API key and secret
var privateClient = new OKCoin('your-api-key', 'your-api-secret');
privateClient.getUserInfo(console.log);
// buy limit order for 1 IOTA at price 00021054 BTC
privateClient.addTrade(console.log, 'iota_btc', 'buy', '1', '00021054');
FAQs
Nodejs API wrapper for OKEX exchange
We found that okex-rest demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.