Please note BitMEX does not support old browsers.
We recommend upgrading to the latest version of Opera, Firefox, or Chrome.

BitMEX trading is not available in your region

AllXBTUSDT25770.5-3.87%XBTUSD25786.0-3.82%XBTEUR24105.0-3.98%XBTUSDTU2325643.0-5.79%XBTM2325860.5-3.88%XBTUSDTM2325708.5-4.44%XBTU2325920.5-3.84%XBTZ2326031.5-4.65%ETHUSDT1815.20-2.98%ETHUSD1818.05-2.95%ETHUSD_ETH1809.55-3.03%ETHUSDM231825.00-4.09%ETHM230.07045+1.02%ETHUSDTM231900.00+0.94%BMEXUSDT0.405-3.11%BMEXUSD0.402-2.90%ADAUSDT0.3512-6.10%ADAUSD0.3531-5.92%ADAM230.00001363-2.29%1TAIDOGEUSDT218.2-2.55%1TAIDOGEUSD175.9-21.72%APEUSDT2.959-7.03%APTUSD8.009-9.36%ARBUSDT1.037-11.89%ARBUSD1.138-3.07%ARBUSDTM231.129-8.29%AVAXUSD14.105-4.57%AVAXUSDT14.054-4.63%AXSUSD6.58-8.74%BCHUSDT109.40-4.91%BCHUSD109.45-3.70%BLURUSDT0.4294-11.21%BLURUSD0.4322-9.96%BNBUSDT274.95-7.91%BNBUSD276.48-8.13%BOBUSD0.0000201-4.29%CROUSD0.05836-2.99%DOGEUSDT0.06653-7.11%DOGEUSD0.06667-7.13%DOTUSDT5.023-4.32%DOTUSD5.078-3.73%EOSUSD0.8475-5.96%FLOKIUSD0.00002800-9.15%FLOKIUSDT0.00000400-87.21%FLRUSD0.0209-8.73%GMTUSDT0.3000+13.81%GMTUSD0.2372-8.91%GMXUSD52.33-2.02%GMXUSDT52.00-21.93%KLAYUSD0.17475-5.41%LINKUSD6.097-4.53%LTCUSDT87.38-6.45%LTCUSD87.61-6.24%LUNAUSDT0.7758-10.65%LUNAUSD0.7918-9.10%MATICUSDT0.8290-6.33%NEARUSD1.506-6.52%ORDIUSD7.525-11.84%PEPEUSDT0.000001010-15.34%PEPEUSD0.000001019-14.75%RNDRUSD2.276-11.13%SOLUSDT20.02-7.36%SOLUSD20.07-7.26%SUIUSDT0.807-12.28%SUIUSD0.804-12.32%TURBOUSD0.000136-11.11%USDTUSDC0.9915+0.03%XRPUSDT0.5106-4.11%XRPUSD0.5096-4.45%XRPM230.00001974-0.80%Funding: 04:31:17 @ -0.0083%Time: 7:28:42 AM UTC
BitMEX header logo
Load Shedding

At BitMEX, one of the most frequent questions we receive is about the behaviour and inner workings of our load shedding function, also known as “overload”.

Submitting an Order

Order management requests (i.e. new/amend/cancel orders and leverage changes) are placed in a single processing queue, and processed by the BitMEX trading engine in the order they arrive (first-in-first-out). This ensures that all requests are executed in the order they are received.

During times of extraordinary demand, order management requests arrive faster than they can be processed. As the queue depth grows, requests joining the back of the queue will wait longer, which can result in traders waiting several seconds for their requests to be processed and receive a response.

To maintain acceptable response times for traders (i.e. less than a few seconds), the queue has a maximum depth after which new requests are immediately rejected with a 503 status code. This mechanism gives immediate feedback to traders who can then choose to resubmit or amend. Without a maximum queue depth (i.e. an unbounded queue), if the platform were to receive many order management requests in a short period of time, the queue would grow very long. With a long queue, response times for user requests could grow into the minutes. The load shedding mechanism is a standard technique that exists specifically to prevent this from happening, and to keep response times reasonable for users.

Non-full Queue

When the queue of order management requests is not full, then new requests just join the back of the queue as usual.

Non Full Queue

Placing an order when the queue of outstanding requests is not full

Load Shedding

When the rate of order management requests received is higher than the rate at which they can be processed, the queue of outstanding requests becomes full. An order management request received at this time will be rejected and the user will be notified. Note: there is a specific subset of order management requests detailed below that are exempt from being load-shed, and will join the back of the queue as usual.

Full Queue

Placing an order when the queue of outstanding requests is full

The determination of which order management request is accepted and which is rejected is based purely on the depth of the queue at the time the request is received. If an empty slot is available at the time an order request is received, it is accepted and joins the back of the queue. Otherwise, it is rejected.

Requests Exempt from Load Shedding

BitMEX has enacted a policy whereby certain order management requests are accepted even if the queue has reached its maximum depth. This provides a backstop for traders who decide they would rather exit a position or remove orders during high-volatility periods. These actions are limited to order cancellations and close orders and are summarised in the table below. Please note that all order management requests, including those exempt from being load-shed, join the back of the queue. If the queue is large, the time a request stays in queue before processing will increase. Exempt requests aren’t processed more quickly than any other request joining the queue.

Requests Exempt from Load Shedding Non-Exempt Requests
* Cancel Order (individual, bulk, and all)
* Close Limit Order (full position)
* Close Market Order (full position)
* New Order (except Exempt types)
* Amend Order
* Position Leverage/Margin Changes
* All Bulk Order Requests (API)

Exempt: Order Cancellation

Order Cancel

  • Web: Use the Cancel button under the Orders tab.
  • API: Cancel orders via DELETE /api/v1/order.

Exempt: Position Close Position Close

  • Web: Use either the Close or Market button under the Positions tab.
  • API: Use the “Close” execInst on POST /api/v1/order with no orderQty. The absence of a quantity, in combination with Close, is interpreted as your full position size. Close orders containing a quantity are subject to load shedding, as are bulk orders, even when only one is submitted.

Further Information

We are working daily to improve system performance and reduce the occurrences of load shedding. As we deliver enhancements and the throughput of the trading engine increases, the queue will process more quickly. With this additional performance, we periodically increase the maximum queue depth to allow more orders to be placed without being load-shed. We have done this three times in 2018 and once already in 2019.

We appreciate your support and use of BitMEX. As always, if you have questions or comments about this topic, please Contact Support.