From 27c62608c486294e2acfcc7bb8e972f658c28982 Mon Sep 17 00:00:00 2001 From: Alexandre Catarino Date: Tue, 2 Jun 2026 17:47:07 +0100 Subject: [PATCH] Use OAuth for Webull cloud deployment Document the Authenticate button for QuantConnect Cloud deployment and the auth0 browser flow for Lean CLI cloud deployment. Clarify on the Account Types page that cloud and CLI-to-cloud deployments authenticate through the wizard, while local Lean CLI use (download, backtest, research, and live trading) requires API credentials. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../08 Webull/02 Account Types.html | 2 +- .../08 Webull/16 Deploy Live Algorithms.php | 4 +++- .../08 Webull/02 Deploy Cloud Algorithms.php | 17 ++++++++++++----- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/01 Cloud Platform/10 Live Trading/02 Brokerages/08 Webull/02 Account Types.html b/01 Cloud Platform/10 Live Trading/02 Brokerages/08 Webull/02 Account Types.html index fb67c1ebcd..f3baf9c4d9 100644 --- a/01 Cloud Platform/10 Live Trading/02 Brokerages/08 Webull/02 Account Types.html +++ b/01 Cloud Platform/10 Live Trading/02 Brokerages/08 Webull/02 Account Types.html @@ -4,7 +4,7 @@

Create an Account

Follow the account creation wizard on the Webull website to create a Webull account.

Create API Credentials

-

To trade with the Webull API, you need an App Key, App Secret, and the account ID of the Webull account you want to trade. The following steps summarize how to create them. For the full process with screenshots, see Individual Application API in the Webull developer documentation.

+

In QuantConnect Cloud and when you use the Lean CLI to deploy to the cloud, you authenticate through the deployment wizard, so you don't need to create API credentials. To use Webull locally with the Lean CLI—to download data, backtest, research, or trade live—you need an App Key, App Secret, and the account ID of the Webull account you want to trade. The following steps summarize how to create these credentials. For the full process with screenshots, see Individual Application API in the Webull developer documentation.

  1. Log in to Webull.com and open the account center.
  2. From the avatar menu, open Developer Tools and then click API Management > My Application.
  3. diff --git a/01 Cloud Platform/10 Live Trading/02 Brokerages/08 Webull/16 Deploy Live Algorithms.php b/01 Cloud Platform/10 Live Trading/02 Brokerages/08 Webull/16 Deploy Live Algorithms.php index c408bd0dfc..077565ce09 100644 --- a/01 Cloud Platform/10 Live Trading/02 Brokerages/08 Webull/16 Deploy Live Algorithms.php +++ b/01 Cloud Platform/10 Live Trading/02 Brokerages/08 Webull/16 Deploy Live Algorithms.php @@ -3,7 +3,9 @@ $cashState = false; $holdingsState = false; $secondBullet = ""; -$authentication = "
  4. Enter your Webull App Key, App Secret, and account ID.
  5. " . file_get_contents(DOCS_RESOURCES."/brokerages/create-credentials/webull.html"); +$authentication = "
  6. Click the Authenticate button.
  7. +
  8. On the Webull website, log in to your account to grant QuantConnect access to your account information and authorization.
  9. +
  10. Click the Select Account Id field and then click one of your accounts.
  11. "; $postDeploy = ""; $dataProviderDetails = "

    Webull doesn't provide a live data feed, so use the QuantConnect data provider or another data provider for the securities you trade.

    "; include(DOCS_RESOURCES."/live-trading/deploy-live-algorithm.php"); diff --git a/05 Lean CLI/09 Live Trading/01 Brokerages/08 Webull/02 Deploy Cloud Algorithms.php b/05 Lean CLI/09 Live Trading/01 Brokerages/08 Webull/02 Deploy Cloud Algorithms.php index 87533f6b51..73d0dc9fe8 100644 --- a/05 Lean CLI/09 Live Trading/01 Brokerages/08 Webull/02 Deploy Cloud Algorithms.php +++ b/05 Lean CLI/09 Live Trading/01 Brokerages/08 Webull/02 Deploy Cloud Algorithms.php @@ -1,13 +1,20 @@ Enter your Webull App Key, App Secret, and account ID. +
  12. In the browser window that automatically opens, log in to your Webull account.
    $ lean cloud live \"My Project\" --push --open
    -App key: 0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d
    -App secret: *******************************
    -Account id: 12345678
    +Please open the following URL in your browser to authorize the LEAN CLI. +https://www.quantconnect.com/api/v2/live/auth0/authorize?brokerage=webull +Will sleep 5 seconds and retry fetching authorization... + +
    +
  13. + +
  14. Enter the Webull account ID. +
    +
    $ lean cloud live \"My Project\" --push --open
    +The Webull account Id: 12345678
    -" . file_get_contents(DOCS_RESOURCES."/brokerages/create-credentials/webull.html") . "
  15. "; $dataProviderDetails = ""; $brokerageName="Webull";