Overview of the OKX JavaScript SDK
masterThe okx-api SDK is a Node.js, JavaScript, and TypeScript library designed to interface with the OKX (OKEX) exchange. It provides complete coverage for the OKX REST API and WebSocket APIs (including public, private, and business channels).
Key features handled by the SDK:
- Authentication: Request signing and API passphrase authentication.
- Routing: Regional endpoint routing (Global, EEA, US) and product/instrument routing.
- WebSocket Management: Channel routing, heartbeats, automatic reconnects, resubscriptions, and WebSocket API response matching.
- Trading Support: Demo trading, Spot, Margin, Swaps, Futures, and Options.
- Networking: Support for HTTP and SOCKS proxies.
- Developer Experience: Full TypeScript support with request and response types.