• EXECUTION
  • DISCOVERY
  • VERIFICATION
  • MANAGEMENT

How to execute crypto market orders with your AI

Connect OKX to your AI client once. After that, you can trade by simply describing the orders you want to place.

Ask AI about this page

Short answer

Can I trade on OKX using my AI?

Yes. You can tell your AI to find specific crypto pairs and place buy or sell orders. It handles the technical execution while you provide the intent.

The outcomes

What happens after you connect

Your AI moves from reading data to taking action on your OKX account.

EXECUTION

Direct order placement

The AI uses your instructions to trigger buy or sell orders. You get immediate execution for the specified amount or price.

DISCOVERY

Instrument lookup

Your agent identifies available trading pairs and instruments. It ensures you are trading the correct asset before any order goes through.

VERIFICATION

Human confirmation

You stay in control. The AI presents the order details for your review before the final execution happens.

MANAGEMENT

Trade oversight

You can check the status of your recent activity. The AI keeps track of what was requested and what was successfully placed.

The workflow

What your AI does when you ask to trade.

The AI translates your plain English requests into specific API calls to OKX.

  1. Identify the asset

    The AI looks up the specific crypto pair or instrument you mentioned to ensure the symbol is valid.

    get_instruments
  2. Format the order

    Your agent calculates the necessary parameters for a limit or market order based on your text.

    place_order
  3. Execute the trade

    The AI sends the finalized order to OKX to be filled in the market.

    place_order
  4. Confirm details

    The AI verifies the instrument details one last time to prevent errors in the order type.

    get_instruments

Try it

Copy these to start.

Use these prompts to begin trading with your agent.

Starting points

Swap out the specific coins and amounts for the ones you actually want to trade.

OKX Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_Ax5Q8n9mhVZ6QfccMtE4K3uI7ivl5xyIu9yZEAtC/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — OKX capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "okx-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_Ax5Q8n9mhVZ6QfccMtE4K3uI7ivl5xyIu9yZEAtC/mcp"
    }
  }
}
Copy into chat04
  • Buy 0.05 BTC using a market order on OKX

  • Place a limit sell order for 1000 USDT worth of ETH

  • Find the available instruments for SOL on OKX

  • Sell my XRP using a market order

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect OKX once, then ask.

Follow the link to link your account. Your credentials stay encrypted and the setup is handled on our end.

Connect OKX to your AI

FAQ

Common questions

  • 01

    Can the AI withdraw funds from my OKX account?

    No. The tools only allow for looking up instruments and placing buy or sell orders.

  • 02

    Does the AI decide when to trade for me?

    No. The AI only acts when you give it a direct command. It does not run autonomous trading bots.

  • 03

    What kind of orders can I place?

    You can place both market orders and limit orders through your AI client.

  • 04

    Can I use this to check my account balance?

    No. This specific connector is limited to instrument discovery and order placement.

  • 05

    Do I need to use the OKX website to confirm trades?

    You don't have to, but you should always review the order the AI drafts before you give the final command.

  • More questions about OKX? The Connector page answers them. See everything the OKX Connector can do

Connect OKX to Claude, Cursor, ChatGPT & more