MEXC · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for MEXC Spot REST API v3 Margin API

20 actions 20 updates phrasing extends openapi/mexc-margin-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for MEXC's API. It is a proposal applied on top of the contract, not a document MEXC publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 20 · first 16 shown; the file carries all of them

$.info
$.paths['/api/v3/margin/tradeMode'].post
$.paths['/api/v3/margin/order'].get
$.paths['/api/v3/margin/order'].post
$.paths['/api/v3/margin/order'].delete
$.paths['/api/v3/margin/loan'].get
$.paths['/api/v3/margin/loan'].post
$.paths['/api/v3/margin/repay'].get
$.paths['/api/v3/margin/repay'].post
$.paths['/api/v3/margin/openOrders'].get
$.paths['/api/v3/margin/openOrders'].delete
$.paths['/api/v3/margin/allOrders'].get
$.paths['/api/v3/margin/myTrades'].get
$.paths['/api/v3/margin/maxTransferable'].get
$.paths['/api/v3/margin/priceIndex'].get
$.paths['/api/v3/margin/isolated/account'].get

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for MEXC Spot REST API v3 Margin API
  version: 1.0.0
extends: openapi/mexc-margin-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-11-21'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 19
- target: $.paths['/api/v3/margin/tradeMode'].post
  update:
    x-apievangelist-phrasing:
      intent: Switch margin trade mode
      effect: write
      questions:
      - How do I switch a margin account between cross and isolated mode?
      - Can I change the trade mode for a single symbol?
      instructions:
      - text: Change the trade mode of {symbol} to {tradeMode}.
        slots:
          symbol: query.symbol
          tradeMode: query.tradeMode
      - text: Switch my margin account to {tradeMode} mode.
        slots:
          tradeMode: query.tradeMode
      method: generated
      generated: '2026-11-21'
- target: $.paths['/api/v3/margin/order'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a margin order
      effect: read
      questions:
      - What is the status of one margin order?
      - Can I look up a single margin order by its ID?
      instructions:
      - text: Get margin order {orderId}.
        slots:
          orderId: query.orderId
      - text: Show the status of margin order {orderId} on {symbol}.
        slots:
          orderId: query.orderId
          symbol: query.symbol
      method: generated
      generated: '2026-11-21'
- target: $.paths['/api/v3/margin/order'].post
  update:
    x-apievangelist-phrasing:
      intent: Place a margin order
      effect: write
      questions:
      - How do I buy or sell a coin on margin?
      - Can I place a margin order at a specific price?
      instructions:
      - text: Place a {side} {type} margin order for {quantity} {symbol} at {price}.
        slots:
          side: query.side
          type: query.type
          quantity: query.quantity
          symbol: query.symbol
          price: query.price
      - text: Open a {side} margin trade on {symbol} for {quantity}.
        slots:
          side: query.side
          symbol: query.symbol
          quantity: query.quantity
      method: generated
      generated: '2026-11-21'
- target: $.paths['/api/v3/margin/order'].delete
  update:
    x-apievangelist-phrasing:
      intent: Cancel a margin order
      effect: destructive
      questions:
      - How do I cancel a margin order I no longer want?
      - Can I cancel a single margin order by its ID?
      instructions:
      - text: Cancel margin order {orderId}.
        slots:
          orderId: query.orderId
      - text: Cancel margin order {orderId} on {symbol}.
        slots:
          orderId: query.orderId
          symbol: query.symbol
      method: generated
      generated: '2026-11-21'
- target: $.paths['/api/v3/margin/loan'].get
  update:
    x-apievangelist-phrasing:
      intent: List margin loans
      effect: read
      questions:
      - Which coins have I borrowed on margin?
      - Can I see my margin loan history for one asset?
      instructions:
      - text: Show my margin loan record for {asset}.
        slots:
          asset: query.asset
      - text: List margin loans for {asset} on {symbol}.
        slots:
          asset: query.asset
          symbol: query.symbol
      method: generated
      generated: '2026-11-21'
- target: $.paths['/api/v3/margin/loan'].post
  update:
    x-apievangelist-phrasing:
      intent: Borrow on margin
      effect: write
      questions:
      - How do I borrow funds on margin to trade?
      - Can I borrow a specific amount of a coin on isolated margin?
      instructions:
      - text: Borrow {amount} {asset} on margin.
        slots:
          amount: query.amount
          asset: query.asset
      - text: Borrow {amount} {asset} on isolated margin for {symbol}.
        slots:
          amount: query.amount
          asset: query.asset
          symbol: query.symbol
      method: generated
      generated: '2026-11-21'
- target: $.paths['/api/v3/margin/repay'].get
  update:
    x-apievangelist-phrasing:
      intent: List margin repayments
      effect: read
      questions:
      - Which borrowed funds have I repaid on margin?
      - Can I see my margin repayment history for one asset?
      instructions:
      - text: Show my margin repayment record for {asset}.
        slots:
          asset: query.asset
      - text: List margin repayments for {asset} on {symbol}.
        slots:
          asset: query.asset
          symbol: query.symbol
      method: generated
      generated: '2026-11-21'
- target: $.paths['/api/v3/margin/repay'].post
  update:
    x-apievangelist-phrasing:
      intent: Repay a margin loan
      effect: write
      questions:
      - How do I pay back borrowed funds on margin?
      - Can I repay a specific borrowed loan by its ID?
      instructions:
      - text: Repay {amount} {asset} on margin.
        slots:
          amount: query.amount
          asset: query.asset
      - text: Repay borrowed loan {borrowId} on {asset}.
        slots:
          borrowId: query.borrowId
          asset: query.asset
      method: generated
      generated: '2026-11-21'
- target: $.paths['/api/v3/margin/openOrders'].get
  update:
    x-apievangelist-phrasing:
      intent: List open margin orders
      effect: read
      questions:
      - What margin orders are still open?
      - Can I see only my open margin orders on one symbol?
      instructions:
      - text: Show my open margin orders.
      - text: List open margin orders on {symbol}.
        slots:
          symbol: query.symbol
      method: generated
      generated: '2026-11-21'
- target: $.paths['/api/v3/margin/openOrders'].delete
  update:
    x-apievangelist-phrasing:
      intent: Cancel all open margin orders on a symbol
      effect: destructive
      questions:
      - How do I clear every open margin order on a coin?
      - Can I cancel all my margin orders on one symbol at once?
      instructions:
      - text: Cancel all open margin orders on {symbol}.
        slots:
          symbol: query.symbol
      - text: Clear every margin order on {symbol}.
        slots:
          symbol: query.symbol
      method: generated
      generated: '2026-11-21'
- target: $.paths['/api/v3/margin/allOrders'].get
  update:
    x-apievangelist-phrasing:
      intent: List all margin orders
      effect: read
      questions:
      - What margin orders have I placed overall?
      - Can I see every margin order ever placed on a symbol?
      instructions:
      - text: Show all my margin orders.
      - text: List every margin order on {symbol}.
        slots:
          symbol: query.symbol
      method: generated
      generated: '2026-11-21'
- target: $.paths['/api/v3/margin/myTrades'].get
  update:
    x-apievangelist-phrasing:
      intent: List margin trades
      effect: read
      questions:
      - What has my margin account traded?
      - Can I see margin trades for one pair?
      instructions:
      - text: List margin trades for {symbol}.
        slots:
          symbol: query.symbol
      - text: Show my margin account's trade history.
      method: generated
      generated: '2026-11-21'
- target: $.paths['/api/v3/margin/maxTransferable'].get
  update:
    x-apievangelist-phrasing:
      intent: Check max transferable to margin
      effect: read
      questions:
      - How much of an asset can I transfer into margin?
      - What is the maximum I can move to my isolated margin account?
      instructions:
      - text: Show the max transferable amount for {asset}.
        slots:
          asset: query.asset
      - text: Check how much {asset} I can move to isolated margin on {symbol}.
        slots:
          asset: query.asset
          symbol: query.symbol
      method: generated
      generated: '2026-11-21'
- target: $.paths['/api/v3/margin/priceIndex'].get
  update:
    x-apievangelist-phrasing:
      intent: Get the margin price index
      effect: read
      questions:
      - What is the margin price index for a coin?
      - Can I look up the price index for a margin pair?
      instructions:
      - text: Get the margin price index for {symbol}.
        slots:
          symbol: query.symbol
      - text: Show the price index of {symbol}.
        slots:
          symbol: query.symbol
      method: generated
      generated: '2026-11-21'
- target: $.paths['/api/v3/margin/isolated/account'].get
  update:
    x-apievangelist-phrasing:
      intent: Get isolated margin account info
      effect: read
      questions:
      - What is the margin balance and leverage of my isolated margin account?
      - Can I see isolated margin info for several symbols at once?
      instructions:
      - text: Show isolated margin account info for {symbols}.
        slots:
          symbols: query.symbols
      - text: Get my isolated margin balance and leverage.
      method: generated
      generated: '2026-11-21'
- target: $.paths['/api/v3/margin/trigerOrder'].get
  update:
    x-apievangelist-phrasing:
      intent: List margin trigger orders
      effect: read
      questions:
      - What trigger orders are set on my margin account?
      - Can I see all margin stop orders?
      instructions:
      - text: Show my margin trigger orders.
      - text: List all margin stop orders on my account.
      method: generated
      generated: '2026-11-21'
- target: $.paths['/api/v3/margin/maxBorrowable'].get
  update:
    x-apievangelist-phrasing:
      intent: Check max borrowable on margin
      effect: read
      questions:
      - How much of a coin can I borrow on margin?
      - What is the maximum I can borrow for isolated margin?
      instructions:
      - text: Show the max borrowable amount for {asset}.
        slots:
          asset: query.asset
      - text: Check how much {asset} I can borrow on isolated margin for {symbol}.
        slots:
          asset: query.asset
          symbol: query.symbol
      method: generated
      generated: '2026-11-21'
- target: $.paths['/api/v3/margin/isolated/pair'].get
  update:
    x-apievangelist-phrasing:
      intent: Get isolated margin pair info
      effect: read
      questions:
      - What are the isolated margin settings for a coin pair?
      - Can I look up the isolated margin pair for one symbol?
      instructions:
      - text: Show isolated margin pair info for {symbol}.
        slots:
          symbol: query.symbol
      - text: Get the isolated margin settings of {symbol}.
        slots:
          symbol: query.symbol
      method: generated
      generated: '2026-11-21'
- target: $.paths['/api/v3/margin/forceLiquidationRec'].get
  update:
    x-apievangelist-phrasing:
      intent: List forced liquidation records
      effect: read
      questions:
      - Which positions were forcibly liquidated on margin?
      - Can I see forced liquidation records for one symbol?
      instructions:
      - text: Show forced liquidation records for {symbol}.
        slots:
          symbol: query.symbol
      - text: List margin forced liquidations.
      method: generated
      generated: '2026-11-21'

Work with this as data

Every overlay 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 openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • 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 overlay
curl "https://apis.io/api/v1/overlays/mexc-margin-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?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.