Skip to content

feature: add webull brokerage core integration#9362

Open
Romazes wants to merge 5 commits intoQuantConnect:masterfrom
Romazes:feature-brokerage-webull
Open

feature: add webull brokerage core integration#9362
Romazes wants to merge 5 commits intoQuantConnect:masterfrom
Romazes:feature-brokerage-webull

Conversation

@Romazes
Copy link
Copy Markdown
Collaborator

@Romazes Romazes commented Mar 30, 2026

Description

Adds Webull brokerage core integration to Lean: WebullBrokerageModel, WebullFeeModel, WebullOrderProperties, and supporting tests.

Related PR(s)

Related Issue

N/A

Motivation and Context

Webull is a popular retail brokerage. This PR wires it into Lean's brokerage infrastructure so the upcoming Webull plugin can rely on a first-class model and fee schedule.

Requires Documentation Change

No

How Has This Been Tested?

  • WebullBrokerageModelTests — CanSubmitOrder per security/order type matrix (Equity, Option, IndexOption, Crypto, Future), GetFeeModel
  • WebullFeeModelTests — all index option tiers (SPX, SPXW, VIX/VIXW, XSP, DJX, NDX/NDXP), equity zero commission, crypto 0.6%

Types of changes

  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Refactor (non-breaking change which improves implementation)
  • Performance (non-breaking change which improves performance)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Non-functional change (xml comments/documentation/etc)

Checklist:

  • My code follows the code style of this project.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • My branch follows the naming convention bug-<issue#>-<description> or feature-<issue#>-<description>

Romazes added 2 commits March 28, 2026 01:43
- add BrokerageName.Webull enum value
- add WebullBrokerageModel supporting Equity, Option, IndexOption
- add WebullFeeModel with zero commission for equity/option, tiered index option fees (SPX, SPXW, VIX/VIXW, XSP, DJX, NDX/NDXP), 0.6% crypto fee
- register Webull in IBrokerageModel factory switch and GetBrokerageName
- add webull config keys and live-webull environment to Launcher/config.json
- add WebullBrokerageModelTests (CanSubmitOrder, GetFeeModel)
- add WebullFeeModelTests covering all index option tiers and crypto
- replace flat _supportSecurityTypes/_supportOrderTypes with _supportedOrderTypesBySecurityType dictionary
- options and index options: Limit, StopMarket, StopLimit only
- equity, future, crypto: Market, Limit, StopMarket, StopLimit, TrailingStop
- add WebullOrderProperties with OutsideRegularTradingHours flag
- add messages for unsupported order type validation
@Romazes Romazes requested a review from Martin-Molinero March 30, 2026 23:11
@Romazes Romazes self-assigned this Mar 30, 2026
- merge per-tier and per-symbol [Test] methods into [TestCase]/[TestCaseSource] parameterized tests in WebullFeeModelTests
- replace CreateIndexOptionSecurity/CreateOptionSecurity/CreateCryptoSecurity with single CreateSecurity(SecurityType, decimal, string) helper
- rename test methods to PascalCase (drop underscores) in WebullBrokerageModelTests
- remove section-separator comments from WebullBrokerageModelTests
- update Launcher/config.json for local Webull UAT environment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant