Please note BitMEX does not support old browsers.
We recommend upgrading to the latest version of Opera, Firefox, or Chrome.
AllBTC/USDT84200.5-68.81%BTCUSDT83779.7+5.17%BTCUSD83880.7+5.76%BTCETH53.441+1.83%BTCEUR73840.0+4.02%BTCUSD_​BBX59922.0+0.73%BTCUSDTM2587096.5+5.02%BTCZ2594792.5+6.06%BTCJ2584508.5+5.07%BTCU2591486.0+5.62%BTCM2587338.5+7.15%BTCK2586028.5+6.02%ETHUSDT1570.49+3.72%ETHBTC0.01879-1.98%ETHUSD1563.22+3.55%ETH/BTC0.0800000+0.00%ETH/USDT4606.00+2.36%ETHUSDM251635.65+4.27%ETHM250.01975-1.40%BMEX/USDT0.3500-99.85%BMEXUSDT464.727+99.70%AAVEUSDT136.85+6.22%AAVEUSD137.66+5.24%ACTUSDT0.32614+0.00%ADAUSDT0.6574+0.67%ADAUSD0.6295+6.59%ADAM250.00000783+0.51%AEVOUSDT0.3993+20.09%AI16ZUSDT0.1859-8.92%AIBTCUSDT0.6348-0.02%APEUSDT0.4236+5.90%APE/USDT0.428+7.27%APTUSDT4.849+6.74%APTUSD4.855+6.54%APUUSDT0.0001507+13.65%ATOM/USDT--.-+0.00%AVAXUSDT19.364+8.63%AVAXUSD19.397+8.57%AXS/USDT3.477+0.00%AXSUSD2.43+6.11%BABYUSDT0.08200+0.00%BANANAUSDT16.4080+5.44%MEMEMEXTUSDT63.28+7.40%BBX/USDT--.-+0.00%BCHUSDT313.95+10.00%BCHUSD314.60+9.58%BERAUSDT--.-+0.00%BIGTIMEUSDT0.05314+7.20%BIOUSDT0.7183+0.00%BLURUSDT0.0966+6.98%BLURUSD0.0967+6.38%BNBUSDT589.03+2.51%BNBUSD589.52+2.42%BOMEUSDT0.006857+9.36%100BONKUSDT0.0012102+15.07%BONK/USDT--.-+0.00%BRETTUSDT0.20735+0.00%BROCCOLIUSDT--.-+0.00%CATUSDT0.000004983+5.37%CHILLGUYUSDT--.-+0.00%CYBERUSDT1.0655+8.19%DOGEUSDT0.15962+4.35%DOGEUSD0.16025+4.96%DOGSUSDT0.0001199+4.35%DOTUSDT3.591+4.72%DOTUSD3.576+4.71%DUCKUSDT0.005998+96.72%DYDXUSD0.5608+3.89%DYMUSDT0.3967-3.43%ENAUSDT0.9876+249.96%EOSUSD0.6252+0.74%FARTCOINUSDT0.4327+8.17%FILUSD2.4522+4.47%FILUSDT3.1712-2.20%FLOKIUSDT0.00005521+6.62%FTR/USDT0.015000+0.00%GEMS/USDT--.-+0.00%GMEUSDT0.002218+13.28%GMTUSD0.0452+7.11%GOATUSDT--.-+0.00%GOAT/USDT--.-+0.00%GPSUSDT--.-+0.00%HIVEUSDT0.2527-1.25%HSKUSDTZ251.2000+0.00%HYPEUSDT15.480+17.87%INJUSDT9.5470+2.73%IPUSDT--.-+0.00%JUSDT0.2148-6.24%JAILSTOOLUSDT--.-+0.00%JELLYJELLYUSDT0.01965+0.00%JUPUSDT0.3638+2.31%KAITOUSDT--.-+0.00%KLAYUSDT0.12293-0.16%LDOUSD0.7352+6.26%LDOUSDT1.0638+8.03%LINKUSDT12.767+6.49%LINK/USDT16.000+0.00%LINKUSD12.746+7.27%LTCUSDT76.88+5.85%LTCUSD77.14+6.05%LUNAUSDT0.1633+4.08%MANTAUSDT0.1871+4.82%MEUSDT9.0000+0.00%MELANIAUSDT--.-+0.00%MEMEUSDT0.001602+4.57%MERLUSD0.0869+4.45%MEWUSDT0.002429+15.61%1000000MOGUSDT2.4000+0.00%MOVEUSDT1.0700+0.00%MUBARAKUSDT--.-+0.00%MYROUSDT0.01994+0.91%NEARUSDT2.056+5.54%NEARUSD2.102+6.38%NILUSDT0.6990+0.00%NOTUSDT0.001898+4.98%ONDOUSDT0.90657+12.36%OPUSD0.6647+4.20%OPUSDT0.9451+3.89%ORDIUSD7.152+5.89%PENGUUSDT0.00670-3.87%PEPEUSDT0.000006914+4.88%PEPEUSD0.000006950+5.32%PIUSDT--.-+0.00%PIXELUSDT0.17880+33.73%PNUTUSDT0.50860-49.14%POLUSDT0.1855+3.92%POL/USDT0.3707-0.99%POPCATUSDT0.8000+40.33%P_​POWELLK2643.37-0.09%PYTHUSDT0.1498+2.39%RAYUSDT1.925+10.19%REDUSDT--.-+0.00%REDUSDTZ250.9492-0.42%SUSDT0.4859+3.49%S/USDT0.4391+6.86%SAGAUSDT0.4016+2.14%SEIUSDT0.1555+5.78%SHELLUSDT--.-+0.00%SHIBUSDT0.000012250+6.24%SHIBUSD0.000012244+6.14%SOLUSDT120.58+9.12%SOLUSD120.74+8.80%SOL/USDT129.00-5.44%SOLVUSDT0.03997-7.13%STLS/USDT0.10890+2.67%STRKUSDT0.1736-2.75%SUIUSDT2.2268+7.26%SUIUSD2.241+7.64%TIAUSDT3.2723-0.11%TNSRUSDT0.4456-6.13%TONUSD2.9338+1.16%TONUSDT5.4167-8.90%TRUMP/USDT0.715-98.57%TRUMPOFFICIALUSDT11.569-8.52%TRXUSDT0.24309+2.87%TRXUSD0.24233+2.47%TRX/USDT0.09020+0.00%TSTUSDT--.-+0.00%TUTUSDT--.-+0.00%UNIUSDT5.301+7.29%UNI/USDT7.038+0.00%USDTUSDC1.0008+0.26%USUALUSDT1.0700+0.00%VELOUSDT0.242500+0.00%VINEUSDT0.16450+0.00%VVVUSDT--.-+0.00%WUSDT0.3146+45.51%WEN/USDT--.-+0.00%WIFUSDT0.5183+1.05%WLDUSD0.7305+7.43%WLDUSDT0.7470-25.20%WLFIUSDTZ260.087+19.18%WOOUSDT0.2149+35.41%XAIUSDT0.25260+31.84%XAUTUSD3255.6+2.78%XRDUSDT0.00879+3.17%XRPUSDT2.0900-5.86%XRPUSD2.0542+5.37%XRP/USDT2.4000-3.33%XRPM250.00002551+1.39%ZKUSDT0.1939+69.34%ZROUSDT2.7016+6.72%Funding: 00:42:06 @ 0.0100%Time: 7:17:53 pm UTC

REST API

Using the BitMEX REST API

For working code and examples, please see our HTTP Connectors on GitHub.

If you are logged in, you may access the API Key Management interface.

For a list of endpoints and return types, view the REST documentation in the API Explorer.

Specification and Clients

The BitMEX API conforms to the Swagger spec for REST endpoints. Any Swagger-compatible client can connect to the BitMEX API and execute commands.

An updated list of available clients is listed here.

Examples of basic communication to our API are in our api-connectors repository.

Note that all Bitcoin quantities are returned in Satoshis: 1 XBt (Satoshi) = 0.00000001 XBT (Bitcoin), all Tether quantities are returned in USDt: 1 USDt = 0.000001 USDT and all Ethereum are returned in gwei: 1 gwei = 0.000000001 ETH.

For other currencies, please refer to our Asset API where the relationship is represented by the scale parameter.

Authentication

To access private endpoints, a permanent API key is required.

Details about authentication via API Key are available via a separate document.

Limits

Request Rate Limits

Requests to our REST API are rate limited by one or more limiters in a layered approach. The limiters implement a Token Bucket mechanism and tokens are continuously refilled.

Currently, there are two limiters in place:

  1. 120 requests per minute on all routes (reduced to 30 when unauthenticated)
  2. 10 requests per second on certain routes (see below)

Please be very careful about the number of errors your tools throw. If a large number of 4xx or 5xx responses are delivered in a short period of time, your IP address may be banned for an hour. Multiple bans in a short time will result in a weeklong ban.

Viewing Your Request Rate Limit

On each request to the API, these headers are returned:

"x-ratelimit-limit": 120
"x-ratelimit-remaining": 118
"x-ratelimit-reset": 1489791662

Use these headers to determine your current limit and remaining requests. At the UNIX timestamp designated by x-ratelimit-reset, you will have enough requests left to retry your current request. If you have not exceeded your limit, this value is always the current timestamp.

If you are limited, you will receive a 429 response and an additional header, retry-after, that indicates the number of seconds you should pause before retrying.

Second Layer Rate Limits

In addition to the first layer of rate limiting, some routes have an additional limiter that limits requests to a rate of 10 requests per second. This limit is shared across the following routes:

  • POST /api/v1/order
  • PUT /api/v1/order
  • DELETE /api/v1/order
  • DELETE /api/v1/order/all
  • POST /api/v1/position/isolate
  • POST /api/v1/position/leverage
  • POST /api/v1/position/transferMargin

On each request to these routes, the x-ratelimit-remaining-1s header will be returned with the first layer rate limit headers.

When exceeding this limit, the value for the x-ratelimit-remaining-1s header will be 0 and you will receive a 429 response along with the retry-after header.

Increasing Your Request Rate Limit

If you are running up against our limits and believe that you have a legitimate need, please Contact Support to discuss upgrading your access limits.

Before increasing your rate limits, we require that your programs at least:

  • Use the WebSocket feeds to avoid polling data.
  • Use our bulk cancel features to reduce load on the system.
    • Bulk cancels, regardless of count, always only count as one request.

When emailing us about a rate limit increase, please include:

  • Your application’s purpose and intended growth
  • Your desired rate limit
  • Acknowledgement that your program is using the API efficiently, as mentioned above.
Rate Limit Reductions

Rate limits may be reduced on individual accounts if an account is involved with malicious behaviour.

Order Count Limits

To keep an orderly market, BitMEX imposes limits on the number of open orders per account. These limits are:

  1. Maximum 200 open orders per symbol per account;
  2. Maximum 10 stop orders per symbol per account;

When placing a new order that causes these caps to be exceeded, it will be rejected with the message “Too many [open|stop] orders”.

Order Minimum Size Limits

We intentionally set the contract sizes of BitMEX products at low values to encourage traders both large and small to trade on BitMEX. However, some traders abuse this and spam the orderbook or trade feed with many small orders.

Accounts with too many open orders with a gross value less than 0.0001 XBT each will be labeled as a Spam Account.

If you are marked as a Spam Account:

  • Orders below 0.0001 XBT in value will automatically become hidden orders.
  • Hidden orders do not show in the orderbook and always pay the taker fee.
  • Post-Only spam orders will be Rejected instead of being hidden.
  • Too many spam orders may be grounds to temporarily ban an account from trading.
  • Spam Account designations are re-evaluated and lifted automatically every 24 hours if user behavior has changed.

WebSocket Limits

WebSocket Limits are documented on the WebSocket API page.

Behaviour

BitMEX monitors the behaviour of accounts on the platform, including those using the API.

Trading Rules

BitMEX enforces certain trading rules on the platform to discourage inefficient or undesirable behaviours. Please view our Trading Rules documentation for more details.

Efficiency

Accounts that consistently make a disproportionate number of order-management API requests per notional of XBT executed place unnecessary load on the system and may be banned. For example, if your account is making thousands of new/amend/cancel order API requests each day, yet not trading at all, your account may be banned.

To help keep your trading activity efficient, you may:

  • Switch off the automated system that is using the API.
  • Increase traded volume, by tightening your quotes or crossing the spread if necessary.
  • Reduce the number of requests made.

HTTP Keep-Alive

BitMEX does not support placing or canceling orders via WebSocket, only via HTTP.

Our servers support HTTP Keep-Alive and cache SSL sessions. If you keep a connection alive, you will get websocket-like latency, obviating the need to use the websocket for transactional communication.

Our Keep-Alive timeout is 90 seconds.

Overload

To help improve responsiveness during high-load periods, the BitMEX trading engine will begin load-shedding when requests reach a critical queue depth. When this happens, you will quickly receive a 503 status code with the JSON payload {"error": {"message": "The system is currently overloaded. Please try again later.", "name": "HTTPError"}}. The request will not have reached the engine, and you should retry after at least 500 milliseconds.

Learn more about how this mechanism works by visiting the load shedding reference page. We will keep clients updated as we improve peak capacity on the trading engine.

Filtering

Many table endpoints take a filter parameter. This is expected to be JSON. For example, the filter query {"side":"Buy"} can be url-encoded and sent to the trade endpoint (click to run).

Most values can only be filtered by simple equality. Timestamps, which are all UTC, can be queried in many ways:

Timestamp Filters

The following fields can be passed in the "filter" param as JSON key/value pairs:

Key Description Example Example Description
"startTime" Start timestamp. "2014-12-26 11:00" On or after 11:00am on 26 December 2014.
"endTime" End timestamp. "2014-12-26 13:00" On or before 1:00pm on 26 December 2014.
"timestamp" Exact timestamp. "2014-12-26 12:00" Exactly noon on 26 December 2014.
"timestamp.date" Exact day. "2014-12-26" The entire day of 26 December 2014.
"timestamp.month" Exact month. "2014-12" The entire month of December 2014.
"timestamp.year" Exact year. 2014 The entire year of 2014.
"timestamp.mm" Month of year. 12 December of each year.
"timestamp.dd" Day of month. 26 26th of each month.
"timestamp.ww" Day of week. 6 Friday of each week. 0 = Sat, 1 = Sun
"timestamp.time" Exact time. "12:00:00.000" Exactly noon of each day.
"timestamp.second" Exact second. "12:00:00" The entire second from noon of each day.
"timestamp.minute" Exact minute. "12:00" The entire minute from noon of each day.
"timestamp.hh" Hour of day. 12 12th hour of each day. (i.e. noon)
"timestamp.uu" Minute of hour. 30 30th minute of each hour.
"timestamp.ss" Second of minute. 15 15th second of each minute.

For example, the .BVOL7D index is calculated and published on the trade feed every 5 minutes. To filter to just noon on Fridays, send the payload:

{"symbol": ".BVOL7D", "filter": {"timestamp.time":"12:00", "timestamp.ww":6}}

(Click to run)

OrderBookL2

This section has been relocated.

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.