API Reference Guide for Limit Order API in OKX DEX

·

Introduction to Limit Order API

The Limit Order API enables developers to create, manage, and execute decentralized exchange (DEX) limit orders programmatically. This guide covers key endpoints, use cases, and integration steps.

Key Features


Core Functionalities

1. Get Supported Chains

Purpose: Retrieve list of supported blockchain networks and their IDs.
Use Case: Verify compatibility before order creation.

👉 [Explore supported networks](https://www.okx.com/join/BLOCKSTAR)

2. Token Management

3. Order Operations

EndpointDescription
Create Limit OrderSubmit new limit order
Query Limit OrderFetch order details by ID
Cancel Order CalldataGenerate cancellation transaction data

Integration Workflow

  1. Chain Selection
    Use /chains endpoint to confirm network support.
  2. Token Approval
    Approve tokens via approve-transaction if required.
  3. Order Placement
    Submit orders with price/amount parameters.
👉 [View full API parameters](https://www.okx.com/join/BLOCKSTAR)

FAQ

Q1: What’s the maximum order expiration time?
A: Orders expire after 30 days by default.

Q2: How are fees calculated?
A: Fees vary by chain and are displayed during order preview.

Q3: Can I modify existing orders?
A: No—orders must be canceled and recreated.


Best Practices

For additional queries, refer to the Smart Contract Documentation.