Please note BitMEX does not support old browsers.
We recommend upgrading to the latest version of Opera, Firefox, or Chrome.
AllBTCUSDT82285.4-3.43%BTC/USDT83000.0+0.00%BTCUSD82226.2-0.93%BTCEUR75317.0-1.21%BTCETH43.469-0.22%BTCUSD_​BBX59922.0+0.73%BTCUSDTH2581786.5-2.10%BTCUSDTM2586811.0-1.39%BTCH2582826.0-0.11%BTCZ2594363.0-2.23%BTCJ2584045.0-1.14%BTCM2586916.0-0.72%BTCU2591108.5-1.13%ETHUSDT1896.93-0.22%ETHBTC0.02298+0.52%ETHUSD1873.17-1.99%ETH/USDT4606.00+2.36%ETH/BTC0.0800000+0.00%ETHUSDM251975.45-1.34%ETHUSDH251904.55-0.78%ETHH250.02319+0.69%ETHM250.02416+1.17%BMEXUSDT25.055+0.00%BMEX/USDT0.3129+3.95%AAVEUSDT166.99-2.12%AAVEUSD167.09-1.91%ACTUSDT0.32614+0.00%ADAUSDT0.7352+0.16%ADAUSD0.7003-2.84%ADAH250.00000846-2.76%ADAM250.00000885-3.07%AEVOUSDT0.3993+20.09%AI16ZUSDT0.2041-30.65%AIBTCUSDT0.6348-0.02%APEUSDT0.5340+4.03%APE/USDT0.525+1.94%APTUSDT6.097-0.16%APTUSD5.383-0.35%APUUSDT0.0002054+0.15%ATOM/USDT--.-+0.00%AVAXUSDT18.438-0.80%AVAXUSD18.566+0.10%AXS/USDT3.745+0.03%AXSUSD3.33-2.35%BANANAUSDT16.8600-2.26%MEMEMEXTUSDT64.43-3.61%BBX/USDT--.-+0.00%BCHUSDT335.95-0.46%BCHUSD332.20-1.37%BERAUSDT--.-+0.00%BIGTIMEUSDT0.04957+13.15%BIOUSDT0.7183+0.00%BLURUSDT0.1048-0.85%BLURUSD0.1051+0.10%BNBUSDT629.00+0.11%BNBUSD622.47-1.05%BOMEUSDT0.006857+9.36%100BONKUSDT0.0010625-4.03%BONK/USDT--.-+0.00%BRETTUSDT0.20735+0.00%BROCCOLIUSDT--.-+0.00%CATUSDT0.000007952-5.25%CHILLGUYUSDT--.-+0.00%CYBERUSDT1.5155+18.04%DOGEUSDT0.16351-4.45%DOGEUSD0.16340-4.76%DOGSUSDT0.000141+0.00%DOTUSDT4.284-1.29%DOTUSD4.280-1.27%DUCKUSDT0.003049-5.95%DYDXUSD0.6288-1.50%DYMUSDT0.3399+6.15%ENAUSDT0.9876+249.96%EOSUSD0.4878-0.31%FARTCOINUSDT0.3150-9.14%FILUSDT3.1122+4.12%FILUSD2.8746-1.78%FLOKIUSDT0.00006049-1.53%FTR/USDT0.015000+0.00%P_​FTXZ2630.63-0.68%GEMS/USDT--.-+0.00%GMEUSDT0.001538-3.15%GMTUSD0.0491-0.61%GOATUSDT--.-+0.00%GOAT/USDT--.-+0.00%GPSUSDT--.-+0.00%HIVEUSDT0.2559-6.84%HSKUSDTZ251.2000+0.00%HYPEUSDT14.880-15.37%INJUSDT9.2934-6.67%IPUSDT--.-+0.00%JUSDT0.2291-26.12%JAILSTOOLUSDT--.-+0.00%JUPUSDT0.5459-17.11%KAITOUSDT--.-+0.00%KLAYUSDT0.12315+0.00%LDOUSD0.9158-3.49%LDOUSDT0.9847-18.67%LINKUSDT13.679-0.91%LINK/USDT14.918+0.00%LINKUSD13.682+0.28%LTCUSDT87.65-5.79%LTCUSD88.43-5.72%LUNAUSDT0.2009-5.19%MANTAUSDT0.2630+1.94%MEUSDT9.0000+0.00%MELANIAUSDT--.-+0.00%MEMEUSDT0.002392-3.63%MERLUSD0.1224-8.38%MEWUSDT0.001858-3.43%1000000MOGUSDT2.4000+0.00%MOVEUSDT1.0700+0.00%MUBARAKUSDT--.-+0.00%MYROUSDT0.02012+11.84%NEARUSDT2.557+0.39%NEARUSD2.540-1.63%NOTUSDT0.002422+2.54%ONDOUSDT0.82726-3.45%OPUSD0.8642-0.77%OPUSDT0.9097-14.61%ORDIUSD9.017-6.03%PENGUUSDT0.00697+2.50%PEPEUSDT0.000006808-3.90%PEPEUSD0.000006818-4.47%PIUSDT--.-+0.00%PIXELUSDT0.1788+33.73%PNUTUSDT0.50860-49.14%POLUSDT0.2065-4.13%POL/USDT0.3707-0.99%POPCATUSDT0.8000+40.33%P_​POWELLK2643.45-0.55%PYTHUSDT0.1463-18.40%RAYUSDT1.747-25.37%REDUSDT--.-+0.00%REDUSDTZ250.9908-0.08%SUSDT0.4754-6.66%S/USDT0.4391+6.86%SAGAUSDT0.3932-9.07%SEIUSDT0.1942-2.17%SHELLUSDT--.-+0.00%SHIBUSDT0.000012536-2.93%SHIBUSD0.000012514-3.87%SOLUSDT122.02-4.02%SOLUSD122.15-4.14%SOL/USDT129.00-5.44%SOLVUSDT0.04304+2.23%STLS/USDT0.10607+0.07%STRKUSDT0.1785-1.71%SUIUSDT2.2539-1.29%SUIUSD2.258-0.88%TIAUSDT3.3244-6.64%TNSRUSDT0.4456-6.13%TONUSD3.5728+4.13%TONUSDT5.4167-8.90%TRUMP/USDT0.715-98.57%TRUMPOFFICIALUSDT12.646-6.34%TRXUSDT0.22466+4.11%TRXUSD0.22369+3.63%TRX/USDT0.09020+0.00%TSTUSDT--.-+0.00%TUTUSDT--.-+0.00%UNI/USDT7.545+0.00%USDTUSDC1.0003-0.05%USUALUSDT1.0700+0.00%VELOUSDT0.242500+0.00%VINEUSDT0.1645+0.00%VVVUSDT--.-+0.00%WUSDT0.3146+45.51%WEN/USDT--.-+0.00%WIFUSDT0.5129-14.72%WLDUSDT0.901+6.88%WLDUSD0.825-4.40%WLFIUSDTZ260.091+7.06%WOOUSDT0.2149+35.41%XAIUSDT0.25260+31.84%XAUTUSD3037.7+1.67%XRDUSDT0.00700+0.72%XRPUSDT2.3512-1.98%XRP/USDT2.2505-3.75%XRPUSD2.2360-4.35%XRPH250.00002749-2.86%XRPM250.00002887-2.53%ZKUSDT0.1939+69.34%ZROUSDT2.5715+8.92%Funding: 06:05:21 @ -0.2284%Time: 1:54:38 pm UTC

REST API Message Format

BitMEX documents its API using the Swagger/OpenAPI Specification.

The basic structure of an API response is documented in the API Explorer, which is generated by this specification. All responses are application/json.

In general, expect results to be either a plain object or array of objects corresponding to the particular endpoint. The same object shape is used for table retrieved from the WebSocket.

Interactive API Explorer

If an error is thrown, the error is of the shape:

{"error": {
  "message": "...",
  "name": "HTTPError" | "ValidationError" | "WebsocketError" | "Error"
}}

A full list of possible errors is below. Note that throwing too many errors in a short period of time is grounds for a temporary IP or account ban.

GET /user

  • Account does not exist

GET /

  • table is not valid
  • filter values are not valid
  • startTime is invalid
  • endTime is invalid
  • depth is invalid
  • filter columns are not valid
  • start is invalid
  • count is invalid
  • columns are not valid

POST /user/requestWithdrawal

  • Account does not exist
  • Negative withdrawal amount
  • Negative fee amount
  • Invalid withdrawal amount
  • Invalid fee amount
  • Account has insufficient Withdrawable Balance
  • Withdrawal ban expires at [Date]
  • Withdrawals currently disabled, please contact Customer Support

POST /user/{cancel,confirm}Withdrawal

  • Account does not exist
  • transactStatus is not Pending

POST /order, PUT /order, POST /order/closePosition

  • Duplicate clOrdID
  • Invalid orderID
  • Duplicate orderID
  • Invalid symbol
  • Instruments do not match
  • Instrument not listed for trading yet
  • Instrument expired
  • Instrument has no mark price
  • Accounts do not match
  • Invalid account
  • Account is suspended
  • Account has no [XBt]
  • Invalid ordStatus (trying to amend a canceled or filled order)
  • Invalid triggered
  • Invalid workingIndicator
  • Invalid side
  • Invalid orderQty or simpleOrderQty
  • Invalid simpleOrderQty
  • Invalid orderQty
  • Invalid simpleLeavesQty
  • Invalid simpleCumQty
  • Invalid leavesQty
  • Invalid cumQty
  • Invalid avgPx
  • Invalid price
  • Invalid price tickSize
  • Invalid displayQty
  • Unsupported ordType
  • Unsupported pegPriceType
  • Invalid pegPriceType for ordType
  • Invalid pegOffsetValue for pegPriceType
  • Invalid pegOffsetValue tickSize
  • Invalid stopPx for ordType
  • Invalid stopPx tickSize
  • Unsupported timeInForce
  • Unsupported execInst
  • Invalid execInst
  • Invalid ordType or timeInForce for execInst
  • Invalid displayQty for execInst
  • Invalid ordType for execInst
  • Unsupported contingencyType
  • Invalid clOrdLinkID for contingencyType
  • Invalid multiLegReportingType
  • Invalid currency
  • Invalid settlCurrency

Reject reasons for orders created by above

Note: In these cases, the order will be returned with an ordRejReason.

  • Invalid ordStatus
  • Market is not open
  • Underlying leg market is not open
  • Underlying leg instrument has no mark price
  • Invalid price
  • Invalid price tickSize
  • Price greater than limitUpPrice
  • Price less than limitDownPrice
  • Invalid side
  • Invalid orderQty or simpleOrderQty
  • Invalid simpleOrderQty
  • Invalid orderQty
  • Invalid leavesQty
  • Invalid simpleLeavesQty
  • Invalid pegOffsetValue for pegPriceType
  • Invalid pegOffsetValue tickSize
  • Invalid stopPx for ordType
  • Invalid stopPx tickSize
  • Account has insufficient Available Balance, [100000 XBt] required
  • Value of positions and orders exceeds account Risk Limit
  • Value of position and orders exceeds position Risk Limit
  • Position is in liquidation
  • Order price is below the liquidation price of current long position
  • Order price is above the liquidation price of current short position
  • Executing at order price would lead to immediate liquidation
  • Executing at order price would push account deeper into margin call
  • Account is in margin call
  • Executing at order price would put account into margin call
  • Order had execInst of [Close|ReduceOnly] and side of [Buy|Sell] but current position is [100]

POST /position/riskLimit

  • Market is not open
  • Cannot exceed the maximum effective leverage
  • Value of position and orders exceeds position Risk Limit

POST /position/leverage

  • Instrument is not taxable
  • Market is not open
  • Invalid leverage
  • Cannot exceed the maximum entry leverage
  • Account has insufficient Available Balance

POST /position/isolate

  • Instrument is not taxable
  • Market is not open

POST /position/transferMargin

  • Instrument is not taxable
  • Market is not open
  • Position has cross margin enabled
  • Invalid amount for isolated margin transfer
  • Account has insufficient Available Balance
  • Position has insufficient isolated margin

BitMEX is a P2P crypto-products trading platform.

BitMEX and the mobile apps issued under BMEX are wholly owned and operated by HDR Global Trading Limited, a Republic of Seychelles incorporated entity or its relevant authorised affiliates.

Trading in cryptocurrency derivatives involves significant risks. Please consider whether using BitMEX is appropriate for you.

Please read our Terms of Service, Risk Disclosure Statement and Privacy Notice.

US Persons are prohibited from accessing the services of the BitMEX trading platform.

Cryptocurrency charts by TradingView.