okx-api package is a fully-featured, actively maintained Node.js and TypeScript SDK for interacting with the OKX exchange. It covers every endpoint in OKX’s REST API and provides a robust, auto-reconnecting WebSocket client for real-time market data and private account streams.
Quickstart
Install the package and make your first API call in minutes
Authentication
Learn how to create and configure your OKX API credentials
REST Client
Explore the full REST API — account, trading, funding and more
WebSocket Client
Subscribe to real-time streams with automatic reconnection
Installation
Key exports
Community & support
- Issues & bugs — GitHub Issues
- Discussion — Node.js Algo Traders on Telegram
- Announcements — @sieblyio on X/Twitter

