Configuring BitMEX Through CCXT and Checking Derivatives Behavior
Summary
This document explains how to connect to BitMEX through Lumibot’s CCXT broker interface using an explicit exchange configuration and API credentials. It notes that BitMEX is not among the globally auto-detected credential paths, and identifies the exchange ID used for CCXT backtesting. The example configuration also exposes sandbox and margin settings that need attention when preparing a connection.
The main trading lesson is to validate the instrument’s semantics before relying on live orders or simulated results. BitMEX products may use leverage, contract multipliers, and derivative-specific calculations that differ from spot crypto, so asset selection, quantity, margin treatment, and profit-and-loss behavior require exchange-specific checks. The document supplies setup guidance rather than a strategy or performance evidence; it does not explain execution behavior, supported products in detail, or the accuracy and limitations of the backtesting data source.
Key ideas
- BitMEX access through CCXT requires an explicit broker configuration in this setup.
- The document identifies BitMEX as a crypto derivatives venue and names its CCXT exchange ID for backtesting.
- Leverage and contract multipliers can make product behavior differ from spot crypto.
- Validate the selected asset, order quantity, margin settings, and profit-and-loss calculations before live trading.
Tags
Full text
# brokers.ccxt.bitmex
:seo_title: BitMEX adapter status in LumiBot
BitMEX adapter status
=====================
.. meta::
:description: CCXT removed its BitMEX adapter. Check installed adapter availability and find current LumiBot crypto exchange guides.
CCXT removed its ``bitmex`` adapter in its upstream
`delisting change <https://github.com/ccxt/ccxt/pull/30612>`_.
Current CCXT installations do not provide this adapter, so this page no longer
offers connection or trading examples. The page stays at its existing URL for
users following older links.
.. include:: _snippets/botspot_mcp_callout.rst
Frequently asked questions
--------------------------
Why is the BitMEX setup guide no longer here?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CCXT removed the adapter from its distributed package. The preserved CCXT
4.5.64 metadata describes an older installation. Instructions to install LumiBot and select
``bitmex`` would no longer work with current CCXT.
Can a current CCXT installation connect to BitMEX through LumiBot?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
No. LumiBot's shared crypto broker needs an adapter supplied by the installed
CCXT package. The upstream removal does not establish whether BitMEX's own
services remain available; it means this CCXT connection is no longer provided.
Does this documentation change disable an older installed adapter?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
No. LumiBot still discovers the adapters in the installed CCXT package and has
no exchange allowlist. An older installation that includes ``bitmex`` keeps
that runtime path. Adapter presence alone does not verify that the exchange's
current API accepts its requests.
The `earlier guide <https://github.com/Lumiwealth/lumibot/blob/71c21d231ee9a64170458b087a8076a24ead95f1/docsrc/brokers.ccxt.bitmex.rst>`_
remains available as historical documentation for those installations.
How do I check which adapters my installation provides?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This reads installed package metadata without connecting to an exchange:
.. code-block:: python
import ccxt
print(ccxt.__version__)
print("bitmex" in ccxt.exchanges)
print(ccxt.exchanges)
Where can I find other crypto exchange guides?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
See :doc:`brokers.crypto` for exchange guides and :doc:`brokers.ccxt` for the
shared broker configuration. Each guide describes its exchange's credentials
and supported market types.
Sources
-------
* `CCXT BitMEX delisting change <https://github.com/ccxt/ccxt/pull/30612>`_
(reviewed 2026-11-01).
* The `CCXT 4.5.64 facts snapshot <https://github.com/Lumiwealth/lumibot/blob/71c21d231ee9a64170458b087a8076a24ead95f1/docsrc/_data/ccxt_exchange_facts.json>`_
was generated 2026-10-23. It is historical metadata, not a current availability claim.Shown in full with attribution under the source's licence. Licence: GPL-3.0
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.