
Product
A Fresh Look for the Socket Dashboard
We’ve redesigned the Socket dashboard with simpler navigation, less visual clutter, and a cleaner UI that highlights what really matters.
okx-api-node-client
Advanced tools
Node.js connector for the OKX APIs and WebSockets:
npm install okx-api-node-client
Most methods accept JS objects. These can be populated using parameters specified by okx's API documentation, or check the type definition in the rest-client class methods.
Create API credentials at okx
data
property is directly (without the code
, data
& msg
properties).code
and msg
properties). See the interface for APIResponse.This connector includes a high-performance node.js & typescript websocket client for the OKX public & private websockets.
ts-node examples/ws-private.ts
import { ... } from 'okx-api-node-client'
to const { ... } = require('okx-api-node-client');
ws-private.js
node examples/ws-private.js
Build a bundle using webpack:
npm install
npm build
npm pack
The bundle can be found in dist/
. Altough usage should be largely consistent, smaller differences will exist. Documentation is still TODO.
FAQs
Node.js connector for OKX market REST APIs and WebSockets
The npm package okx-api-node-client receives a total of 13 weekly downloads. As such, okx-api-node-client popularity was classified as not popular.
We found that okx-api-node-client 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
We’ve redesigned the Socket dashboard with simpler navigation, less visual clutter, and a cleaner UI that highlights what really matters.
Industry Insights
Terry O’Daniel, Head of Security at Amplitude, shares insights on building high-impact security teams, aligning with engineering, and why AI gives defenders a fighting chance.
Security News
MCP spec updated with structured tool output, stronger OAuth 2.1 security, resource indicators, and protocol cleanups for safer, more reliable AI workflows.