Connecting Lumibot to KuCoin Through CCXT
Summary
This document describes how to configure Lumibot’s CCXT broker for KuCoin. KuCoin is not presented as a globally auto-detected credential route, so the guide uses an explicit broker configuration with the exchange identifier and API key, secret, and passphrase. It also shows the margin and sandbox settings and identifies KuCoin as the documented CCXT data source for backtesting.
The operational guidance is to validate account balances and the full order lifecycle—including submission, cancellation, and fills—along with precision and fees before increasing position size. This is integration guidance rather than a trading strategy or performance analysis. It gives no backtest results, fee figures, order behavior evidence, or detailed instructions for obtaining credentials, and the configuration alone does not establish that live trading will behave as expected. Testing with small quantities is advised.
Key ideas
- KuCoin is configured through an explicit Lumibot CCXT broker setup.
- The required credential fields are an API key, secret, and passphrase.
- The document identifies KuCoin as a supported CCXT backtesting data source.
- Before increasing position size, validate balances, order handling, fills, precision, and fees.
Tags
Full text
# brokers.ccxt.kucoin
KuCoin CCXT Configuration
=========================
.. meta::
:description: KuCoin has selected Lumibot/CCXT handling, but it is not currently one of the global auto-detected credential paths.
KuCoin has selected Lumibot/CCXT handling, but it is not currently one of the
global auto-detected credential paths. Use an explicit ``Ccxt`` broker config
and validate behavior with small quantities.
Status
------
* **Live trading path:** explicit ``Ccxt`` config
* **Credential style:** API key, secret, and passphrase
* **Backtesting:** documented CCXT backtesting exchange id: ``kucoin``
* **Asset class:** crypto
Manual Config
-------------
.. code-block:: python
from lumibot.brokers import Ccxt
KUCOIN_CONFIG = {
"exchange_id": "kucoin",
"apiKey": "your_api_key",
"secret": "your_api_secret",
"password": "your_passphrase",
"margin": False,
"sandbox": False,
}
broker = Ccxt(KUCOIN_CONFIG)
Backtesting
-----------
.. code-block:: bash
export BACKTESTING_DATA_SOURCE=kucoin
Always validate balances, order submission, cancellation, fills, precision, and
fees before increasing position size.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.