Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

WebullFeeModel charges SPXW options the SPX exchange fee

Abierto Apto para principiantes
#9,922 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@Amadeus-22 ya está trabajando en esto.

Desde el 19/10/2026.

  • #9923 de @Amadeus-22 — abierto

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
75/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
csharp

Línea de trabajo

Empieza en WebullFeeModel.GetIndexOptionFee, donde el issue identifica la búsqueda del símbolo subyacente como la causa del nivel de tarifas incorrecto de SPXW. Revisa las pruebas cercanas del modelo de tarifas, especialmente los casos que crean un índice llamado SPXW, y compáralas con la reproducción proporcionada AddIndexOption("SPX", "SPXW"). Se considera terminado cuando una prueba para esa forma de contrato real verifica la tarifa esperada de $1.00 por debajo de $1 y de $1.09 a partir de $1.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Expected Behavior

WebullFeeModel charges SPXW (weekly SPX) index options the SPXW exchange fee: $1.00 per contract below $1 and $1.09 at $1 or more, including the $0.50 Webull fee.

Actual Behavior

They are charged the SPX rate ($1.07 / $1.16), so every SPXW fill costs $0.07 more per contract. That matters most for 0DTE strategies, which trade SPXW heavily.

GetIndexOptionFee picks the tier from security.Symbol.Underlying.Value. For a real SPXW contract (AddIndexOption("SPX", "SPXW")) the underlying is the SPX index, so the "SPXW" case is never reached. The existing tests build an index named "SPXW" as the underlying, which doesn't happen in practice. VIXW and NDXP resolve to VIX and NDX the same way, but those pairs share the same fees, so their totals are right.

Potential Solution

Use the option's own ticker, security.Symbol.ID.Symbol, as InteractiveBrokersFeeModel does. That resolves SPX, SPXW, VIXW, NDXP and XSP correctly. I can open a PR with the fix and a test.

Reproducing the Problem
var spx = Symbol.Create("SPX", SecurityType.Index, Market.USA);
var spxw = Symbol.CreateOption(spx, "SPXW", Market.USA, OptionStyle.European, OptionRight.Call, 5000m, new DateTime(2026, 6, 19));
// security priced at 0.80, MarketOrder(spxw, 1)
new WebullFeeModel().GetOrderFee(new OrderFeeParameters(security, order)); // 1.07, expected 1.00
System Information

master (2f5e8df), net10.0.

Checklist
  • I have completely filled out this template
  • I have confirmed that this issue exists on the current master branch
  • I have confirmed that this is not a duplicate issue by searching issues
Lenguaje dominante
C#
Estrellas
22k
Forks
5.3k
Merge medio
1 d 6 h
PR fusionados (30 d)
48

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de QuantConnect/Lean

Todos los issues de QuantConnect/Lean

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.