From 499aacd13267ef6e9f8b1b08206f9528ea3022a5 Mon Sep 17 00:00:00 2001 From: Alexandre Catarino Date: Tue, 2 Jun 2026 17:22:40 +0100 Subject: [PATCH] Document Bybit Demo Trading paper trading support Add Bybit Demo Trading as a supported paper trading environment now that the brokerage integration supports it (Lean.Brokerages.ByBit#41). Update the Cloud Platform Account Types page to cover both Demo Trading and Testnet credential creation, add the Demo and Testnet options to the Deploy Live Algorithms Environment table, and update the Lean CLI environment prompt to (live, paper, demo). Co-Authored-By: Claude Opus 4.8 (1M context) --- .../10 ByBit/02 Account Types.html | 14 +++++++--- .../10 ByBit/16 Deploy Live Algorithms.php | 27 ++++++++++++++++++- .../10 Bybit/03 Deploy Local Algorithms.php | 4 +-- 3 files changed, 39 insertions(+), 6 deletions(-) diff --git a/01 Cloud Platform/10 Live Trading/02 Brokerages/10 ByBit/02 Account Types.html b/01 Cloud Platform/10 Live Trading/02 Brokerages/10 ByBit/02 Account Types.html index 8af1f38e41..c8f0df979d 100644 --- a/01 Cloud Platform/10 Live Trading/02 Brokerages/10 ByBit/02 Account Types.html +++ b/01 Cloud Platform/10 Live Trading/02 Brokerages/10 ByBit/02 Account Types.html @@ -20,9 +20,17 @@

Create an Account

Paper Trading

-

Our integration doesn't support paper trading through the Bybit Demo Trading environment, but you can follow these steps to simulate it with QuantConnect:

+

Bybit supports paper trading through two environments: Bybit Demo Trading and the Bybit Testnet. Each environment uses a separate set of API credentials, so you can't reuse your live account keys.

+

Follow these steps to set up paper trading with Bybit Demo Trading:

    -
  1. In the Initializeinitialize method of your algorithm, set the Bybit brokerage model.
  2. -
  3. Deploy your algorithm with the QuantConnect Paper Trading brokerage.
  4. +
  5. Log in to your Bybit account.
  6. +
  7. From your account menu, switch to Demo Trading.
  8. +
  9. Create API credentials in the Demo Trading environment and store them somewhere safe.
  10. +
+ +

Follow these steps to set up paper trading with the Bybit Testnet:

+
    +
  1. Log in to the Bybit Testnet.
  2. +
  3. Create API credentials on the Testnet and store them somewhere safe.
diff --git a/01 Cloud Platform/10 Live Trading/02 Brokerages/10 ByBit/16 Deploy Live Algorithms.php b/01 Cloud Platform/10 Live Trading/02 Brokerages/10 ByBit/16 Deploy Live Algorithms.php index e6fac4a4b3..98297c9893 100644 --- a/01 Cloud Platform/10 Live Trading/02 Brokerages/10 ByBit/16 Deploy Live Algorithms.php +++ b/01 Cloud Platform/10 Live Trading/02 Brokerages/10 ByBit/16 Deploy Live Algorithms.php @@ -5,7 +5,32 @@ $secondBullet = ""; $authentication = "
  • Enter your API key and secret.
  • " . file_get_contents(DOCS_RESOURCES."/brokerages/create-credentials/bitfinex.html") . "
  • Click the VIP Level field and then click your level from the drop-down menu.
  • -

    For more information about VIP levels, see FAQ — Bybit VIP Program on the Bybit website.

    "; +

    For more information about VIP levels, see FAQ — Bybit VIP Program on the Bybit website.

    +
  • Click on the Environment field and then click one of the environments.
  • +

    The following table shows the supported environments:

    + + + + + + + + + + + + + + + + + + + + + + +
    EnvironmentDescription
    LiveTrade with real money
    DemoTrade with paper money through the Bybit Demo Trading environment
    TestnetTrade with paper money through the Bybit Testnet
    "; $postDeploy = ""; include(DOCS_RESOURCES."/live-trading/deploy-live-algorithm.php"); ?> \ No newline at end of file diff --git a/05 Lean CLI/09 Live Trading/01 Brokerages/10 Bybit/03 Deploy Local Algorithms.php b/05 Lean CLI/09 Live Trading/01 Brokerages/10 Bybit/03 Deploy Local Algorithms.php index c48e925c98..31d82a55d8 100644 --- a/05 Lean CLI/09 Live Trading/01 Brokerages/10 Bybit/03 Deploy Local Algorithms.php +++ b/05 Lean CLI/09 Live Trading/01 Brokerages/10 Bybit/03 Deploy Local Algorithms.php @@ -23,9 +23,9 @@
  • Enter the environment to use.
    $ lean live \"My Project\"
    -Use testnet? (live, paper): live
    +Use testnet? (live, paper, demo): live
    -

    The paper environment is Bybit Demo Trading.

    +

    The paper environment is the Bybit Testnet and the demo environment is Bybit Demo Trading. Both environments require API credentials that you create in that environment; your live account keys won't work.

  • ";