# OKX Trading API

**Canonical:** https://apis.io/apis/okx/okx-trading-api/  
**Provider:** OKX — https://apis.io/providers/okx/  
**Base URL:** https://openapi.okx.com  
**Documentation:** https://www.okx.com/docs-v5/en/

OKX Trading API is one of 7 APIs that [OKX](https://apis.io/providers/okx/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include Trading, Order, Spot, Futures, and Options. The published artifact set on APIs.io includes API documentation and an OpenAPI specification.

REST and WebSocket endpoints for order book trading, algo orders, block trading, spread trading, and copy trading across spot, futures, options, and perpetual swap instruments.

## Machine-readable artifacts (4)

- **Documentation** — https://www.okx.com/docs-v5/en/
- **OpenAPI** — https://www.okx.com/docs-v5/en/
- **GraphQL** — https://raw.githubusercontent.com/api-evangelist/okx/refs/heads/main/graphql/okx-graphql.md
- **APIsJSON** — https://raw.githubusercontent.com/api-evangelist/okx/refs/heads/main/apis.yml

## Other OKX APIs (6)

- [OKX Market Data API](https://apis.io/apis/okx/okx-market-data-api/)
- [OKX Account API](https://apis.io/apis/okx/okx-account-api/)
- [OKX Funding Account API](https://apis.io/apis/okx/okx-funding-account-api/)
- [OKX Sub-Account API](https://apis.io/apis/okx/okx-sub-account-api/)
- [OKX Financial Products API](https://apis.io/apis/okx/okx-financial-products-api/)
- [OKX Wallet API (Onchain OS)](https://apis.io/apis/okx/okx-wallet-api-onchain-os/)

## Tags

Trading, Order, Spot, Futures, Options, Perpetuals

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/okx/okx-trading-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/okx/.
