API reference · v5

MEXC Copy Trading API

MEXC futures copy trading: the leaderboard's tabs, profiles, performance, open positions with live PnL, and closed positions.

Base URL https://api.kopyon.com/v5/mexc-copy-trading/ · send your key in the X-API-KEY header · trader id: The code in a trader's MEXC URL, or their 8-digit uid.

Get a free API key · Interactive reference with Try it · Authentication, paging and errors

Traders

GET /v5/mexc-copy-trading/traders

MEXC's futures lead traders and their figures over a period.

Query parameters

NameTypeDescription
periodrequiredenumWhat the figures cover: 7, 30 or 90 days, or ALL7D, 30D, 90D, ALL
sortByenumdefault overallWhich of MEXC's leaderboard tabs: overall, ROI, PnL, copiers, or the new tradersoverall, roi, pnl, copiers, newTraders
pageintdefault 1Page number
rowsintdefault 20Rows per page1 to 50

Response fields, in data

FieldTypeDescription
traders[]alwaysarray
traders[].traderIdalwaysstringThe trader's id at the source; other operations take it as traderId
traders[].namealwaysstringDisplay name
traders[].avatarUrlstring
traders[].roinumber
traders[].pnlnumber
traders[].sourceDetails.equityonly MEXC
traders[].aumnumber
traders[].winRatenumber
traders[].copierPnlnumber
traders[].copiersnumberCurrent copiers
traders[].maxCopiersnumber
traders[].profitSharenumber
hasMorealwaysbooleantrue when another page follows
totalalwaysnumber

Example

curl -H "X-API-KEY: $KOPYON_KEY" \
  "https://api.kopyon.com/v5/mexc-copy-trading/traders?period=7D"
{
  "data": {
    "traders": [
      {
        "traderId": "02522972",
        "name": "尬電天尊",
        "avatarUrl": "https://public.p2primeglobal.com/banner/F20260626103336151vf4VPKjbl5xebP.png",
        "roi": 3.217,
        "pnl": 2065.680141764706,
        "winRate": 0.6444,
        "copiers": 40,
        "maxCopiers": 1000,
        "copierPnl": -635.13069714635,
        "aum": 5830.0156,
        "profitShare": 0.1,
        "sourceDetails": {
          "equity": 0
        }
      },
      {
        "traderId": "03923304",
        "name": "Scalp daily as routine ",
        "avatarUrl": "https://public.mocortech.com/banner/F20241129180904043gzi84gxNdLPGwo.png",
        "roi": 2.8192,
        "pnl": 3073.879239993704,
        "winRate": 0.5,
        "copiers": 225,
        "maxCopiers": 1000,
        "copierPnl": -6546.63859343134,
        "aum": 43625.5177,
        "profitShare": 0.15,
        "sourceDetails": {}
      },
      {
        "traderId": "06532040",
        "name": "Trunginox",
        "avatarUrl": "https://public.mocortech.com/banner/F20241129180903897wAEfT8y5WLfF2J.png",
        "roi": 1.6564,
        "pnl": 1294.24753,
        "winRate": 0.7075,
        "copiers": 14,
        "maxCopiers": 1000,
        "copierPnl": -14.680096543173072,
        "aum": 2472.7819,
        "profitShare": 0.1,
        "sourceDetails": {
          "equity": 0
        }
      }
    ],
    "hasMore": true,
    "total": 8935
  }
}

Search traders

GET /v5/mexc-copy-trading/traderSearch

Lead traders whose name contains this, in MEXC's overall order, with all-time figures.

Query parameters

NameTypeDescription
namerequiredstringPart of the trader's name
pageintdefault 1Page number
rowsintdefault 20Rows per page1 to 50

Response fields, in data

FieldTypeDescription
traders[]alwaysarray
traders[].traderIdalwaysstringThe trader's id at the source; other operations take it as traderId
traders[].namealwaysstringDisplay name
traders[].avatarUrlstring
traders[].roinumber
traders[].pnlnumber
traders[].sourceDetails.equityonly MEXC
traders[].aumnumber
traders[].winRatenumber
traders[].copierPnlnumber
traders[].copiersnumberCurrent copiers
traders[].maxCopiersnumber
traders[].profitSharenumber
hasMorealwaysbooleantrue when another page follows
totalalwaysnumber

Example

curl -H "X-API-KEY: $KOPYON_KEY" \
  "https://api.kopyon.com/v5/mexc-copy-trading/traderSearch?name=%E5%B0%AC%E9%9B%BB%E5%A4%A9%E5%B0%8A"
{
  "data": {
    "traders": [
      {
        "traderId": "02522972",
        "name": "尬電天尊",
        "avatarUrl": "https://public.p2primeglobal.com/banner/F20260626103336151vf4VPKjbl5xebP.png",
        "roi": 3.217,
        "pnl": 2065.680141764706,
        "winRate": 0.6444,
        "copiers": 40,
        "maxCopiers": 1000,
        "copierPnl": -635.13069714635,
        "aum": 5830.0156,
        "profitShare": 0.1,
        "sourceDetails": {
          "equity": 0
        }
      }
    ],
    "hasMore": false,
    "total": 1
  }
}

Trader profile

GET /v5/mexc-copy-trading/traderProfile

The trader's name, bio, copiers and profit share.

Query parameters

NameTypeDescription
traderIdrequiredstringThe lead trader's 8-digit uid, from traders, or the code in their MEXC URL (/copyTrade/leader/32C6A56), which is the uid in hexadecimal

Response fields, in data

FieldTypeDescription
traderIdalwaysstring
namestring
avatarUrlstring
biostring
sourceDetails.daysActiveonly MEXC
sourceDetails.equityonly MEXC
sourceDetails.minCopyAmountonly MEXC
sourceDetails.positionsHiddenonly MEXC
copiersnumber
maxCopiersnumber
totalCopiersnumber
aumnumber
profitSharenumber

Example

curl -H "X-API-KEY: $KOPYON_KEY" \
  "https://api.kopyon.com/v5/mexc-copy-trading/traderProfile?traderId=02522972"
{
  "data": {
    "traderId": "02522972",
    "name": "尬電天尊",
    "avatarUrl": "https://public.p2primeglobal.com/banner/F20260626103336151vf4VPKjbl5xebP.png",
    "copiers": 40,
    "maxCopiers": 1000,
    "totalCopiers": 86,
    "profitShare": 0.1,
    "aum": 5830.0156,
    "sourceDetails": {
      "daysActive": 167,
      "equity": 14817.17039934,
      "minCopyAmount": 0.01,
      "positionsHidden": true
    }
  }
}

Performance

GET /v5/mexc-copy-trading/performance

Return, PnL, win rate, drawdown, Sharpe ratio, trades and what copiers made over a period.

Query parameters

NameTypeDescription
traderIdrequiredstringThe lead trader's 8-digit uid, from traders, or the code in their MEXC URL (/copyTrade/leader/32C6A56), which is the uid in hexadecimal
periodrequiredenumWhat the figures cover: 7, 30 or 90 days, or ALL7D, 30D, 90D, ALL

Response fields, in data

FieldTypeDescription
periodalwaysstring
roinumber
pnlnumber
maxDrawdownnumber
copierPnlnumber
winRatenumber
winsnumber
tradesnumber
sharpeRationumber
lossesnumber

Example

curl -H "X-API-KEY: $KOPYON_KEY" \
  "https://api.kopyon.com/v5/mexc-copy-trading/performance?traderId=02522972&period=7D"
{
  "data": {
    "period": "7D",
    "roi": 3.217,
    "pnl": 2065.680141764706,
    "winRate": 0.6444,
    "maxDrawdown": 0.087,
    "sharpeRatio": 2.396,
    "copierPnl": -635.13069714635,
    "trades": 45,
    "wins": 29,
    "losses": 16
  }
}

Chart

GET /v5/mexc-copy-trading/traderChart

Cumulative ROI or PnL over the period, one point a day, oldest first.

Query parameters

NameTypeDescription
traderIdrequiredstringThe lead trader's 8-digit uid, from traders, or the code in their MEXC URL (/copyTrade/leader/32C6A56), which is the uid in hexadecimal
periodrequiredenumWhat the figures cover: 7, 30 or 90 days, or ALL7D, 30D, 90D, ALL
metricenumdefault ROIROI as a fraction, or PnL in USDTROI, PNL

Response fields, in data

FieldTypeDescription
metricalwaysstringWhat the points measure: ROI, PNL or BALANCE
points[]alwaysarray
points[].timestampalwaysnumberPoint time, in Unix milliseconds
points[].valuealwaysnumber

Example

curl -H "X-API-KEY: $KOPYON_KEY" \
  "https://api.kopyon.com/v5/mexc-copy-trading/traderChart?traderId=02522972&period=7D"
{
  "data": {
    "metric": "ROI",
    "points": [
      {
        "timestamp": 1792944000000,
        "value": 0.6686
      },
      {
        "timestamp": 1793030400000,
        "value": 0.17
      },
      {
        "timestamp": 1793116800000,
        "value": 0.6485
      }
    ]
  }
}

Open positions

GET /v5/mexc-copy-trading/openPositions

The trader's open positions, sizes in the base asset. MEXC sends no PnL: markPrice is its fair price, and unrealizedPnl and roi are worked out from it and the position's margin, as MEXC's site does. A trader can show them only to copiers; then positions is empty and hidden is true.

Query parameters

NameTypeDescription
traderIdrequiredstringThe lead trader's 8-digit uid, from traders, or the code in their MEXC URL (/copyTrade/leader/32C6A56), which is the uid in hexadecimal

Response fields, in data

FieldTypeDescription
positions[]alwaysarray
positions[].symbolalwaysstring
positions[].sidealwaysLONG | SHORT
positions[].sizenumberPosition size, always positive; side gives the direction
positions[].entryPricealwaysnumber
positions[].markPricenumberThe exchange's mark price
positions[].leveragenumber
positions[].marginModeISOLATED | CROSS
positions[].unrealizedPnlnumberIn pnlCurrency
positions[].pnlCurrencystring
positions[].marginnumberMargin the position uses, in pnlCurrency
positions[].roinumberunrealizedPnl over margin, as a fraction. Where the exchange sends its own (KuCoin; BingX, over the opening margin), it is passed on and can differ from that ratio
positions[].positionIdstring
positions[].openedAtnumber
positions[].fundingPnlnumber
positions[].tradingFeenumberFee paid to open, as a positive cost
hiddenalwaysbooleantrue when the trader shows positions only to copiers

Example

curl -H "X-API-KEY: $KOPYON_KEY" \
  "https://api.kopyon.com/v5/mexc-copy-trading/openPositions?traderId=06532040"
{
  "data": {
    "positions": [
      {
        "symbol": "ZECUSDT",
        "side": "LONG",
        "size": 2.55,
        "entryPrice": 1279.5471956100207,
        "leverage": 50,
        "marginMode": "CROSS",
        "positionId": "1530360483",
        "margin": 68.5651242,
        "openedAt": 1793408832980,
        "markPrice": 1230.37,
        "unrealizedPnl": -125.4018488056,
        "pnlCurrency": "USDT",
        "roi": -1.8289451127,
        "fundingPnl": 0.0286031472,
        "tradingFee": 1.6943964,
        "sourceDetails": {}
      },
      {
        "symbol": "WLDUSDT",
        "side": "LONG",
        "size": 15485,
        "entryPrice": 0.4529760999325499,
        "leverage": 50,
        "marginMode": "CROSS",
        "positionId": "1512752276",
        "margin": 145.9225536,
        "openedAt": 1792637766684,
        "markPrice": 0.3953,
        "unrealizedPnl": -893.1144074555,
        "pnlCurrency": "USDT",
        "roi": -6.1204686008,
        "fundingPnl": 0.3879772777,
        "tradingFee": 30.4850428,
        "sourceDetails": {}
      },
      {
        "symbol": "CCUSDT",
        "side": "LONG",
        "size": 36650,
        "entryPrice": 0.10449349031207515,
        "leverage": 50,
        "marginMode": "CROSS",
        "positionId": "1451945319",
        "margin": 83.22681636,
        "openedAt": 1791270570319,
        "markPrice": 0.09672,
        "unrealizedPnl": -284.8984199376,
        "pnlCurrency": "USDT",
        "roi": -3.4231565305,
        "fundingPnl": -6.7824149687,
        "tradingFee": 2.04779492,
        "sourceDetails": {}
      }
    ],
    "hidden": false
  }
}

Position history

GET /v5/mexc-copy-trading/positionHistory

The trader's closed positions, newest first, sizes in the base asset, with gross PnL, funding, fees and net PnL. Hidden like openPositions.

Query parameters

NameTypeDescription
traderIdrequiredstringThe lead trader's 8-digit uid, from traders, or the code in their MEXC URL (/copyTrade/leader/32C6A56), which is the uid in hexadecimal
cursorstringThe nextCursor of the previous answer; leave it out for the first page
rowsintdefault 20Rows per page1 to 50

Response fields, in data

FieldTypeDescription
positions[]alwaysarray
positions[].positionIdstring
positions[].symbolalwaysstring
positions[].sideLONG | SHORT
positions[].statusstring
positions[].marginModeISOLATED | CROSS
positions[].leveragenumber
positions[].roinumber
positions[].entryPricenumber
positions[].closePricenumber
positions[].openedAtalwaysnumberWhen the position opened, in Unix milliseconds
positions[].closedAtnumberWhen the position closed, in Unix milliseconds
positions[].updatedAtalwaysnumberLast change, in Unix milliseconds
positions[].openedVolumenumber
positions[].closedVolumenumber
positions[].maxOpenInterestnumber
positions[].grossPnlnumber
positions[].fundingPnlnumber
positions[].tradingFeenumber
positions[].liquidationFeenumber
positions[].netPnlnumber
positions[].pnlCurrencystring
nextCursorstringPresent when the page came back full, so another may follow
hiddenalwaysbooleantrue when the trader shows positions only to copiers

Example

curl -H "X-API-KEY: $KOPYON_KEY" \
  "https://api.kopyon.com/v5/mexc-copy-trading/positionHistory?traderId=06532040"
{
  "data": {
    "positions": [
      {
        "positionId": "1529832073",
        "symbol": "ZECUSDT",
        "side": "LONG",
        "marginMode": "CROSS",
        "leverage": 50,
        "entryPrice": 1274.6949159663866,
        "closePrice": 1288.1091596638655,
        "openedAt": 1793334442000,
        "closedAt": 1793408755000,
        "updatedAt": 1793408755000,
        "openedVolume": 2.38,
        "closedVolume": 2.38,
        "grossPnl": 31.9259,
        "fundingPnl": -0.5152940012,
        "tradingFee": 2.43978948,
        "netPnl": 28.9708165188,
        "pnlCurrency": "USDT",
        "sourceDetails": {}
      },
      {
        "positionId": "1529791757",
        "symbol": "ZECUSDT",
        "side": "LONG",
        "marginMode": "CROSS",
        "leverage": 50,
        "entryPrice": 1265.43796875,
        "closePrice": 1277.29671875,
        "openedAt": 1793327777000,
        "closedAt": 1793331267000,
        "updatedAt": 1793331267000,
        "openedVolume": 1.92,
        "closedVolume": 1.92,
        "grossPnl": 22.7688,
        "fundingPnl": 0,
        "tradingFee": 1.95282024,
        "netPnl": 20.81597976,
        "pnlCurrency": "USDT",
        "sourceDetails": {}
      },
      {
        "positionId": "1529785207",
        "symbol": "ZECUSDT",
        "side": "LONG",
        "marginMode": "CROSS",
        "leverage": 50,
        "entryPrice": 1254.63,
        "closePrice": 1265.22,
        "openedAt": 1793326832000,
        "closedAt": 1793327771000,
        "updatedAt": 1793327771000,
        "openedVolume": 1.91,
        "closedVolume": 1.91,
        "grossPnl": 20.2269,
        "fundingPnl": 0,
        "tradingFee": 1.9251654,
        "netPnl": 18.3017346,
        "pnlCurrency": "USDT",
        "sourceDetails": {}
      }
    ],
    "nextCursor": "ZDE1YmZlODExZTc1YmUyNC4y",
    "hidden": false
  }
}

Stream and webhooks

Paid plans can follow a trader in real time over wss://api.kopyon.com/v5/streamor through signed webhooks. Topics for this source:

  • openPositions: Open positions, whenever they change
  • positionEvents: Opened, increased, decreased, closed
  • positionHistory: Newly closed positions

Stream messages and webhook signatures

Try the MEXC Copy Trading API for free.

The free tier is 10,000 requests a month. That is enough to build a whole integration and test it against live data before you pay anything.

Usually answered within a day · [email protected]