MEXC Spot Account/Trade API

The Spot Account/Trade API from MEXC — 8 operation(s) for spot account/trade.

GitHub OpenAPI
Business capability
Trading Order Management BC-1370.30

Operations 12

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /api/v3/order/test Test a new order without placing it · Test New Order #
Ask an LLM
“Can I test a buy or sell order before actually placing it?”
“What does a test new order return?”
Tell an agent
Test a {type} order for {quantity} {symbol} at {price}.
Simulate a {side} order on {symbol} without committing it.
POST /api/v3/order Place a new order · New Order #
Ask an LLM
“How do I buy or sell a coin on MEXC?”
“Can I place a market or limit order for a quantity at a price?”
Tell an agent
Place a {type} {side} order for {quantity} {symbol} at {price}.
Buy {quantity} {symbol} at {price}.
DELETE /api/v3/order Cancel an order · Cancel Orde #
Ask an LLM
“How do I cancel an order I no longer want?”
“Can I remove a single order by its ID?”
Tell an agent destructive · confirm first
Cancel order {orderId} on {symbol}.
Remove order {orderId}.
GET /api/v3/order Look up one order · Query Order #
Ask an LLM
“Has my order been filled yet?”
“Can I check a single order's status by its ID?”
Tell an agent
Query order {orderId} on {symbol}.
Check the status of order {orderId}.
DELETE /api/v3/openOrders Cancel all open orders on a symbol · Cancel all Open Orders on a Symbol #
Ask an LLM
“Can I clear every open order on one coin at once?”
“What's the fastest way to get rid of all my pending trades on a pair?”
Tell an agent destructive · confirm first
Cancel all open orders on {symbol}.
Clear every pending order on {symbol}.
GET /api/v3/openOrders List my open orders · Current Open Orders #
Ask an LLM
“Which of my orders are still open?”
“What buy and sell orders do I have sitting on the book?”
Tell an agent
List my open orders on {symbol}.
Show all open orders.
GET /api/v3/allOrders List all my orders · All Orders #
Ask an LLM
“What has my account traded recently?”
“Can I see every order I've ever placed?”
Tell an agent
List all my orders on {symbol}.
Show my complete order history.
GET /api/v3/account Get my account balance and settings · Account Information #
Ask an LLM
“What is my current balance and account status?”
“Can I check my account information before trading?”
Tell an agent
Get my account information.
Show my account balance and settings.
GET /api/v3/myTrades List my trades · Account Trade List #
Ask an LLM
“Which trades have I executed?”
“Can I see the fills on my account?”
Tell an agent
List my trades on {symbol}.
Show the fills for {symbol}.
GET /api/v3/selfSymbols List the coins I can trade · Query Self Symbols #
Ask an LLM
“Which coins can I trade on my account?”
“What symbols are available to me?”
Tell an agent
List the symbols I can trade.
Show my available trading pairs.
POST /api/v3/mxDeduct/enable Enable MX deduction · MxDeduct enable #
Ask an LLM
“How do I turn on MX deduction?”
“Can I enable MX deduction for my account?”
Tell an agent
Enable MX deduction with {mxDeductEnable}.
Turn MX deduction on.
GET /api/v3/mxDeduct/enable Check whether MX deduction is enabled · Query MxDeduct #
Ask an LLM
“Is MX deduction turned on for my account?”
“How do I check MX deduction status?”
Tell an agent
Check whether MX deduction is enabled.
Show MX deduction status.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/mexc:mexc-spot-account-trade-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

mexc-spot-account-trade-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MEXC Spot REST API v3 Spot Account/Trade API
  description: MEXC Spot REST API (v3) providing programmatic access to spot trading, market data, account management, and wallet operations.
  version: 1.0.0
servers:
- url: https://api.mexc.com
tags:
- name: Spot Account/Trade
paths:
  /api/v3/order/test:
    post:
      tags:
      - Spot Account/Trade
      summary: Test New Order
      operationId: test_new_order
      parameters:
      - name: symbol
        in: query
        description: Symbol
        required: false
        schema:
          type: string
      - name: side
        in: query
        description: ENUM:Order Side
        required: false
        schema:
          type: string
      - name: type
        in: query
        description: ENUM:Order Type
        required: false
        schema:
          type: string
      - name: quantity
        in: query
        description: Quantity
        required: false
        schema:
          type: string
      - name: price
        in: query
        description: Price
        required: false
        schema:
          type: string
      - name: timestamp
        in: query
        description: ''
        required: false
        schema:
          type: string
      - name: signature
        in: query
        description: ''
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
      security:
      - ApiKeyAuth: []
  /api/v3/order:
    post:
      tags:
      - Spot Account/Trade
      summary: New Order
      operationId: new_order
      parameters:
      - name: symbol
        in: query
        description: Symbol
        required: false
        schema:
          type: string
      - name: side
        in: query
        description: ENUM:Order Side
        required: false
        schema:
          type: string
      - name: type
        in: query
        description: 'ENUM:Order Type '
        required: false
        schema:
          type: string
      - name: quantity
        in: query
        description: Quantity
        required: false
        schema:
          type: string
      - name: price
        in: query
        description: Price
        required: false
        schema:
          type: string
      - name: timestamp
        in: query
        description: ''
        required: false
        schema:
          type: string
      - name: signature
        in: query
        description: ''
        required: false
        schema:
          type: string
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties: {}
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
      security:
      - ApiKeyAuth: []
    delete:
      tags:
      - Spot Account/Trade
      summary: Cancel Orde
      operationId: cancel_orde
      parameters:
      - name: symbol
        in: query
        description: Symbol
        required: false
        schema:
          type: string
      - name: orderId
        in: query
        description: Order id
        required: false
        schema:
          type: string
      - name: timestamp
        in: query
        description: ''
        required: false
        schema:
          type: string
      - name: signature
        in: query
        description: ''
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
      security:
      - ApiKeyAuth: []
    get:
      tags:
      - Spot Account/Trade
      summary: Query Order
      operationId: query_order
      parameters:
      - name: symbol
        in: query
        description: Symbol
        required: false
        schema:
          type: string
      - name: orderId
        in: query
        description: Order id
        required: false
        schema:
          type: string
      - name: timestamp
        in: query
        description: ''
        required: false
        schema:
          type: string
      - name: signature
        in: query
        description: ''
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
      security:
      - ApiKeyAuth: []
  /api/v3/openOrders:
    delete:
      tags:
      - Spot Account/Trade
      summary: Cancel all Open Orders on a Symbol
      operationId: cancel_all_open_orders_on_a_symbol
      parameters:
      - name: symbol
        in: query
        description: Symbol
        required: false
        schema:
          type: string
      - name: timestamp
        in: query
        description: ''
        required: false
        schema:
          type: string
      - name: signature
        in: query
        description: ''
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
      security:
      - ApiKeyAuth: []
    get:
      tags:
      - Spot Account/Trade
      summary: Current Open Orders
      operationId: current_open_orders
      parameters:
      - name: symbol
        in: query
        description: Symbol
        required: false
        schema:
          type: string
      - name: timestamp
        in: query
        description: ''
        required: false
        schema:
          type: string
      - name: signature
        in: query
        description: ''
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
      security:
      - ApiKeyAuth: []
  /api/v3/allOrders:
    get:
      tags:
      - Spot Account/Trade
      summary: All Orders
      operationId: all_orders
      parameters:
      - name: symbol
        in: query
        description: Symbol
        required: false
        schema:
          type: string
      - name: timestamp
        in: query
        description: ''
        required: false
        schema:
          type: string
      - name: signature
        in: query
        description: ''
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
      security:
      - ApiKeyAuth: []
  /api/v3/account:
    get:
      tags:
      - Spot Account/Trade
      summary: Account Information
      operationId: account_information
      parameters:
      - name: timestamp
        in: query
        description: ''
        required: false
        schema:
          type: string
      - name: signature
        in: query
        description: ''
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
      security:
      - ApiKeyAuth: []
  /api/v3/myTrades:
    get:
      tags:
      - Spot Account/Trade
      summary: Account Trade List
      operationId: account_trade_list
      parameters:
      - name: symbol
        in: query
        description: Symbol
        required: false
        schema:
          type: string
      - name: timestamp
        in: query
        description: ''
        required: false
        schema:
          type: string
      - name: signature
        in: query
        description: ''
        required: false
        schema:
          type: string
      - name: recvWindow
        in: query
        description: ''
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
      security:
      - ApiKeyAuth: []
  /api/v3/selfSymbols:
    get:
      tags:
      - Spot Account/Trade
      summary: Query Self Symbols
      operationId: query_self_symbols
      parameters:
      - name: timestamp
        in: query
        description: ''
        required: false
        schema:
          type: string
      - name: signature
        in: query
        description: ''
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
      security:
      - ApiKeyAuth: []
  /api/v3/mxDeduct/enable:
    post:
      tags:
      - Spot Account/Trade
      summary: MxDeduct enable
      operationId: mxdeduct_enable
      parameters:
      - name: mxDeductEnable
        in: query
        description: ''
        required: false
        schema:
          type: string
      - name: timestamp
        in: query
        description: ''
        required: false
        schema:
          type: string
      - name: signature
        in: query
        description: ''
        required: false
        schema:
          type: string
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties: {}
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
      security:
      - ApiKeyAuth: []
    get:
      tags:
      - Spot Account/Trade
      summary: Query MxDeduct
      operationId: query_mxdeduct
      parameters:
      - name: timestamp
        in: query
        description: ''
        required: false
        schema:
          type: string
      - name: signature
        in: query
        description: ''
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
      security:
      - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-MEXC-APIKEY