API reference · v5

BingX Copy Trading API

BingX copy trading for USDⓈ-M perpetuals: rankings and the global leaderboard, profiles, performance, positions, orders and transfers.

Base URL https://api.kopyon.com/v5/bingx-copy-trading/ · send your key in the X-API-KEY header · trader id: The number in a trader's BingX URL, or uid_apiIdentity from traders.

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

Traders

GET /v5/bingx-copy-trading/traders

BingX's perpetual futures lead traders and their figures over a period. BingX returns at most 12 a page, and sometimes one fewer.

Query parameters

NameTypeDescription
periodrequiredenumDays the figures cover7D, 30D, 90D, 180D
sortByenumdefault overallWhat to rank by: highest first, except maxDrawdown and riskLevel, lowest firstoverall, roi, pnl, winRate, maxDrawdown, sharpeRatio, riskLevel, aum, copiers, copierPnl, equity
rankingenumBingX's global leaderboard, by 7-day ROI, instead of the list. period and sortBy are then ignoredglobal
pageintdefault 1Page number
rowsintdefault 12Rows per page1 to 12

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.riskLevelonly BingX
traders[].sourceDetails.equityonly BingX
traders[].sourceDetails.tradingDaysonly BingX
traders[].aumnumber
traders[].maxDrawdownnumber
traders[].winRatenumber
traders[].copierPnlnumber
traders[].sharpeRationumber
traders[].copiersnumberCurrent copiers
traders[].maxCopiersnumber
traders[].ranknumber
hasMorealwaysbooleantrue when another page follows
totalalwaysnumber

Example

curl -H "X-API-KEY: $KOPYON_KEY" \
  "https://api.kopyon.com/v5/bingx-copy-trading/traders?period=7D"
{
  "data": {
    "traders": [
      {
        "traderId": "1211055486886170627_1560170963385430022",
        "name": "WakeChang",
        "avatarUrl": "https://static-app.bb-os.com/avatar/20220816/df5a08ba96b6721bdef73757e946135f.jpg",
        "roi": 0.163,
        "pnl": 1834.7798019071715,
        "winRate": 0.7272727272727273,
        "maxDrawdown": 0.33102161959886234,
        "sharpeRatio": 1.62,
        "aum": 29544.33,
        "copierPnl": 27782.08,
        "copiers": 67,
        "maxCopiers": 2000,
        "sourceDetails": {
          "riskLevel": 4,
          "equity": 12200.45,
          "tradingDays": 1154
        }
      },
      {
        "traderId": "1373505428236574725_1374296864361787395",
        "name": "Harmonic Trading",
        "avatarUrl": "https://static-app.bb-os.com/avatar/20260819/BingX_iOS_9d4ae567c4448baaf8f518968f3dd25c.jpg",
        "roi": 0.0383,
        "pnl": 159.41778330322086,
        "winRate": 0.9090909090909091,
        "maxDrawdown": 0.009906827999999963,
        "sharpeRatio": 11.89,
        "aum": 150798.39,
        "copierPnl": 54927.08,
        "copiers": 734,
        "maxCopiers": 2000,
        "sourceDetails": {
          "riskLevel": 1,
          "equity": 4312.15,
          "tradingDays": 700
        }
      },
      {
        "traderId": "1521227074786598920_1553315495564193792",
        "name": "hi***[email protected]",
        "avatarUrl": "https://static-app.bb-os.com/avatar/20230901/avatar_1.png",
        "roi": 0.2063,
        "pnl": 54235.41730762696,
        "winRate": 0.7142857142857143,
        "maxDrawdown": 0.11429482350805265,
        "sharpeRatio": 6.52,
        "aum": 574.39,
        "copierPnl": -1650.78,
        "copiers": 12,
        "maxCopiers": 2000,
        "sourceDetails": {
          "riskLevel": 4,
          "equity": 239861.3,
          "tradingDays": 312
        }
      }
    ],
    "hasMore": true,
    "total": 1579
  }
}

Search traders

GET /v5/bingx-copy-trading/traderSearch

Lead traders whose name contains this, in BingX's overall order, with 180-day figures.

Query parameters

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

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.riskLevelonly BingX
traders[].sourceDetails.equityonly BingX
traders[].sourceDetails.tradingDaysonly BingX
traders[].aumnumber
traders[].maxDrawdownnumber
traders[].winRatenumber
traders[].copierPnlnumber
traders[].sharpeRationumber
traders[].copiersnumberCurrent copiers
traders[].maxCopiersnumber
hasMorealwaysbooleantrue when another page follows
totalalwaysnumber

Example

curl -H "X-API-KEY: $KOPYON_KEY" \
  "https://api.kopyon.com/v5/bingx-copy-trading/traderSearch?name=Wake"
{
  "data": {
    "traders": [
      {
        "traderId": "1211055486886170627_1560170963385430022",
        "name": "WakeChang",
        "avatarUrl": "https://static-app.bb-os.com/avatar/20220816/df5a08ba96b6721bdef73757e946135f.jpg",
        "roi": 3.7327,
        "pnl": 74361.39260377425,
        "winRate": 0.573076923076923,
        "maxDrawdown": 1,
        "sharpeRatio": 2.89,
        "aum": 29544.33,
        "copierPnl": 27782.08,
        "copiers": 67,
        "maxCopiers": 2000,
        "sourceDetails": {
          "riskLevel": 5,
          "equity": 12200.45,
          "tradingDays": 1154
        }
      },
      {
        "traderId": "1535753300456808456_1555808079557668865",
        "name": "Awake trader",
        "avatarUrl": "https://static-app.bb-os.com/avatar/20260504/BingX_iOS_3cf56baf8b30c845ac4b6cd8c194822d.jpg",
        "roi": -0.3315,
        "pnl": -2983.5433006926564,
        "winRate": 0.46632124352331605,
        "maxDrawdown": 0.997819807718936,
        "sharpeRatio": -1.09,
        "aum": 0,
        "copierPnl": -1.93,
        "copiers": 0,
        "maxCopiers": 2000,
        "sourceDetails": {
          "riskLevel": 5,
          "equity": 52.68,
          "tradingDays": 269
        }
      },
      {
        "traderId": "1336639359271755777_1339683386145062918",
        "name": "awakeelectron",
        "avatarUrl": "https://static-app.bb-os.com/avatar/20240809/76e83f889ee5c1853ac038157d1309c4.jpg",
        "roi": 0.6608,
        "pnl": 304.28534767351005,
        "winRate": 0.625,
        "maxDrawdown": 0.14067340903227352,
        "sharpeRatio": 1.91,
        "aum": 0,
        "copierPnl": -448.01,
        "copiers": 0,
        "maxCopiers": 2000,
        "sourceDetails": {
          "riskLevel": 4,
          "equity": 764.7,
          "tradingDays": 821
        }
      }
    ],
    "hasMore": false,
    "total": 4
  }
}

Trader profile

GET /v5/bingx-copy-trading/traderProfile

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

Query parameters

NameTypeDescription
traderIdrequiredstringuid_apiIdentity, from traders or leaderboard, or the uid alone, as in the trader's BingX URL (/CopyTrading/1451841303539277828), for its perpetual futures account

Response fields, in data

FieldTypeDescription
traderIdalwaysstring
namestring
avatarUrlstring
biostring
sourceDetails.subscribersonly BingX
sourceDetails.positionsHiddenonly BingX
copiersnumber
profitSharenumber

Example

curl -H "X-API-KEY: $KOPYON_KEY" \
  "https://api.kopyon.com/v5/bingx-copy-trading/traderProfile?traderId=1211055486886170627_1560170963385430022"
{
  "data": {
    "traderId": "1211055486886170627_1560170963385430022",
    "name": "WakeChang",
    "avatarUrl": "https://static-app.bb-os.com/avatar/20220816/df5a08ba96b6721bdef73757e946135f.jpg",
    "copiers": 1211,
    "profitShare": 0.08,
    "sourceDetails": {
      "subscribers": 3356,
      "positionsHidden": false
    }
  }
}

Performance

GET /v5/bingx-copy-trading/performance

Return, PnL, win rate, drawdown, Sharpe ratio and risk level over a period.

Query parameters

NameTypeDescription
traderIdrequiredstringuid_apiIdentity, from traders or leaderboard, or the uid alone, as in the trader's BingX URL (/CopyTrading/1451841303539277828), for its perpetual futures account
periodrequiredenumDays the figures cover7D, 30D, 90D, 180D

Response fields, in data

FieldTypeDescription
periodalwaysstring
roinumber
pnlnumber
maxDrawdownnumber
winRatenumber
sharpeRationumber
sourceDetails.riskLevelonly BingX

Example

curl -H "X-API-KEY: $KOPYON_KEY" \
  "https://api.kopyon.com/v5/bingx-copy-trading/performance?traderId=1211055486886170627_1560170963385430022&period=7D"
{
  "data": {
    "period": "7D",
    "roi": 0.163,
    "pnl": 1834.7798019071715,
    "winRate": 0.7272727272727273,
    "maxDrawdown": 0.33102161959886234,
    "sharpeRatio": 1.62,
    "sourceDetails": {
      "riskLevel": 4
    }
  }
}

Chart

GET /v5/bingx-copy-trading/traderChart

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

Query parameters

NameTypeDescription
traderIdrequiredstringuid_apiIdentity, from traders or leaderboard, or the uid alone, as in the trader's BingX URL (/CopyTrading/1451841303539277828), for its perpetual futures account
periodrequiredenumDays the figures cover7D, 30D, 90D, 180D
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/bingx-copy-trading/traderChart?traderId=1211055486886170627_1560170963385430022&period=7D"
{
  "data": {
    "metric": "ROI",
    "points": [
      {
        "timestamp": 1792944000000,
        "value": -0.06029758137771114
      },
      {
        "timestamp": 1793030400000,
        "value": -0.03262747678675201
      },
      {
        "timestamp": 1793116800000,
        "value": -0.020547062884669797
      }
    ]
  }
}

Open positions

GET /v5/bingx-copy-trading/openPositions

The trader's open positions, sizes in the base asset. A trader can hide them; then positions is empty and hidden is true.

Query parameters

NameTypeDescription
traderIdrequiredstringuid_apiIdentity, from traders or leaderboard, or the uid alone, as in the trader's BingX URL (/CopyTrading/1451841303539277828), for its perpetual futures account

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[].fundingPnlnumber
positions[].tradingFeenumberFee paid to open, as a positive cost
hiddenalwaysbooleantrue when the trader hides positions

Example

curl -H "X-API-KEY: $KOPYON_KEY" \
  "https://api.kopyon.com/v5/bingx-copy-trading/openPositions?traderId=1521227074786598920_1553315495564193792"
{
  "data": {
    "positions": [
      {
        "symbol": "NCCO1OILWTI2USDUSDT",
        "side": "LONG",
        "size": 700,
        "entryPrice": 102.53,
        "markPrice": 102.85,
        "leverage": 20,
        "marginMode": "CROSS",
        "unrealizedPnl": 217.5,
        "pnlCurrency": "USDT",
        "positionId": "2115458436544286720",
        "margin": 3588.7,
        "roi": 0.0606,
        "fundingPnl": 251.9505,
        "tradingFee": 10.0483,
        "sourceDetails": {}
      },
      {
        "symbol": "NCCO1OILBRENT2USDUSDT",
        "side": "LONG",
        "size": 1200,
        "entryPrice": 110.79,
        "markPrice": 112.26,
        "leverage": 20,
        "marginMode": "CROSS",
        "unrealizedPnl": 1755.1697,
        "pnlCurrency": "USDT",
        "positionId": "2111485558438187008",
        "margin": 6647.5415,
        "roi": 0.264,
        "fundingPnl": 916.1945,
        "tradingFee": 20.0073,
        "sourceDetails": {}
      },
      {
        "symbol": "AINUSDT",
        "side": "SHORT",
        "size": 20000,
        "entryPrice": 0.05223,
        "markPrice": 0.26743,
        "leverage": 10,
        "marginMode": "CROSS",
        "unrealizedPnl": -4304.0028,
        "pnlCurrency": "USDT",
        "positionId": "2106523899063914498",
        "margin": 104.4697,
        "roi": -41.1985,
        "fundingPnl": 85.9964,
        "tradingFee": 0.4178,
        "sourceDetails": {}
      }
    ],
    "hidden": false
  }
}

Position history

GET /v5/bingx-copy-trading/positionHistory

The trader's closed positions, newest first, with gross PnL, funding, fees and net PnL.

Query parameters

NameTypeDescription
traderIdrequiredstringuid_apiIdentity, from traders or leaderboard, or the uid alone, as in the trader's BingX URL (/CopyTrading/1451841303539277828), for its perpetual futures account
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
totalalwaysnumber
nextCursorstringSend it back as cursor, with the same query, to read the next page; absent on the last page

Example

curl -H "X-API-KEY: $KOPYON_KEY" \
  "https://api.kopyon.com/v5/bingx-copy-trading/positionHistory?traderId=1211055486886170627_1560170963385430022"
{
  "data": {
    "positions": [
      {
        "positionId": "2111665336761303040",
        "symbol": "ERAUSDT",
        "side": "SHORT",
        "marginMode": "CROSS",
        "leverage": 5,
        "entryPrice": 0.07165,
        "closePrice": 0.06751,
        "openedAt": 1792295224000,
        "closedAt": 1793494129000,
        "updatedAt": 1793494129000,
        "openedVolume": 79800,
        "closedVolume": 79800,
        "grossPnl": 330.4728,
        "fundingPnl": -994.4471,
        "tradingFee": 5.5526,
        "netPnl": -669.5269,
        "pnlCurrency": "USDT",
        "sourceDetails": {}
      },
      {
        "positionId": "2115833136924966912",
        "symbol": "LSKUSDT",
        "side": "SHORT",
        "marginMode": "CROSS",
        "leverage": 5,
        "entryPrice": 0.20479,
        "closePrice": 0.24865,
        "openedAt": 1793288905000,
        "closedAt": 1793493182000,
        "updatedAt": 1793493182000,
        "openedVolume": 25000,
        "closedVolume": 25000,
        "grossPnl": -1096.3924,
        "fundingPnl": -253.0468,
        "tradingFee": 5.6679,
        "netPnl": -1355.1071,
        "pnlCurrency": "USDT",
        "sourceDetails": {}
      },
      {
        "positionId": "2111726685453402112",
        "symbol": "GTCUSDT",
        "side": "SHORT",
        "marginMode": "CROSS",
        "leverage": 5,
        "entryPrice": 0.27348,
        "closePrice": 0.22231,
        "openedAt": 1792309850000,
        "closedAt": 1793493091000,
        "updatedAt": 1793493091000,
        "openedVolume": 20000,
        "closedVolume": 20000,
        "grossPnl": 1023.2906,
        "fundingPnl": -597.3978,
        "tradingFee": 4.9579,
        "netPnl": 420.9349,
        "pnlCurrency": "USDT",
        "sourceDetails": {}
      }
    ],
    "total": 276,
    "nextCursor": "NDYwN2NiZWJjOTU1N2E4NC4y"
  }
}

Order history

GET /v5/bingx-copy-trading/orderHistory

The trader's orders, newest first.

Query parameters

NameTypeDescription
traderIdrequiredstringuid_apiIdentity, from traders or leaderboard, or the uid alone, as in the trader's BingX URL (/CopyTrading/1451841303539277828), for its perpetual futures account
cursorstringThe nextCursor of the previous answer; leave it out for the first page
rowsintdefault 20Rows per page1 to 50

Response fields, in data

FieldTypeDescription
orders[]alwaysarray
orders[].symbolalwaysstring
orders[].sidealwaysstring
orders[].pricenumber
orders[].quantitynumber
orders[].updatedAtalwaysnumberLast change, in Unix milliseconds
orders[].orderTypestringFor example MARKET or LIMIT
orders[].realizedPnlnumber
orders[].orderIdstring
orders[].tradingFeenumberFees paid, in sourceDetails.feeToken; negative is a rebate
orders[].actionOPEN | CLOSE | BOTH
orders[].statusstringFor example Filled or Cancelled
orders[].positionIdstring
totalalwaysnumber
nextCursorstringSend it back as cursor, with the same query, to read the next page; absent on the last page

Example

curl -H "X-API-KEY: $KOPYON_KEY" \
  "https://api.kopyon.com/v5/bingx-copy-trading/orderHistory?traderId=1211055486886170627_1560170963385430022"
{
  "data": {
    "orders": [
      {
        "orderId": "2116693912630538240",
        "symbol": "ERAUSDT",
        "side": "BUY",
        "action": "CLOSE",
        "orderType": "Market",
        "status": "Filled",
        "price": 0.06708,
        "quantity": 100,
        "realizedPnl": 0.4868,
        "tradingFee": 0.0033,
        "updatedAt": 1793494130000,
        "positionId": "2111665336508166146"
      },
      {
        "orderId": "2116693909413507072",
        "symbol": "ERAUSDT",
        "side": "BUY",
        "action": "CLOSE",
        "orderType": "Market",
        "status": "Filled",
        "price": 0.06708,
        "quantity": 100,
        "realizedPnl": 0.4868,
        "tradingFee": 0.0033,
        "updatedAt": 1793494129000,
        "positionId": "2111665336508166146"
      },
      {
        "orderId": "2116693906196475904",
        "symbol": "ERAUSDT",
        "side": "BUY",
        "action": "CLOSE",
        "orderType": "Market",
        "status": "Filled",
        "price": 0.06708,
        "quantity": 100,
        "realizedPnl": 0.4868,
        "tradingFee": 0.0033,
        "updatedAt": 1793494128000,
        "positionId": "2111665336508166146"
      }
    ],
    "total": 56731,
    "nextCursor": "YzgzZmVlN2EyYzc1NTY2Ny4y"
  }
}

Transfer history

GET /v5/bingx-copy-trading/transferHistory

Assets moved into and out of the account, newest first.

Query parameters

NameTypeDescription
traderIdrequiredstringuid_apiIdentity, from traders or leaderboard, or the uid alone, as in the trader's BingX URL (/CopyTrading/1451841303539277828), for its perpetual futures account
cursorstringThe nextCursor of the previous answer; leave it out for the first page
rowsintdefault 20Rows per page1 to 50

Response fields, in data

FieldTypeDescription
transfers[]alwaysarray
transfers[].timealwaysnumberIn Unix milliseconds
transfers[].assetstring
transfers[].amountalwaysnumber
transfers[].typealwaysdeposit | withdraw | transfer | vaultDeposit | vaultWithdraw | commission | otherdeposit and withdraw move the owner's money into or out of the account; transfer, to or from another address; vaultDeposit and vaultWithdraw, into or out of a vault; commission is a vault leader's share; other is a kind none of these fits, named in sourceDetails.type
totalalwaysnumber
nextCursorstringSend it back as cursor, with the same query, to read the next page; absent on the last page

Example

curl -H "X-API-KEY: $KOPYON_KEY" \
  "https://api.kopyon.com/v5/bingx-copy-trading/transferHistory?traderId=1211055486886170627_1560170963385430022"
{
  "data": {
    "transfers": [
      {
        "time": 1793509202000,
        "amount": 1.94,
        "asset": "USDT",
        "type": "deposit"
      },
      {
        "time": 1793498258000,
        "amount": -891,
        "asset": "USDT",
        "type": "withdraw"
      },
      {
        "time": 1793350434000,
        "amount": 5,
        "asset": "USDT",
        "type": "deposit"
      }
    ],
    "total": 114,
    "nextCursor": "NjhjNDk1NDVhZmU1OTQwZi4y"
  }
}

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
  • orderHistory: New and updated orders
  • positionHistory: Newly closed positions

Stream messages and webhook signatures

Try the BingX 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]