Fee models get the order, not the fill, so fees based on trade value use an estimate
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 22/100
調査の方向性
Start with OrderFeeParameters and the fee model call in BacktestingBrokerage, where fill.OrderFee is set after the fill but the fee model still receives the original order. The fix changes the fee-model interface across all fee models, including Python and brokerage plugins, so it needs design agreement first. Done means fee models see the fill's price and quantity while pre-trade buying power checks still use the order, with the reproduction case charging $1.00.
索引モデルが issue の本文から書いたものです。
説明
Expected Behavior
A fee model that charges on trade value, such as InteractiveBrokersFeeModel's 1% maximum per order, charges a fill on that fill's price and quantity.
Actual Behavior
OrderFeeParameters only carries the Security and the Order. BacktestingBrokerage sets fill.OrderFee after the fill, but it passes the fee model the original order and not the fill. So fee models estimate the trade value from the order's prices or the security's current price.
Once #10129 is merged, US equity orders under $100 pay 1% of trade value, so the estimate shows in the fee. For example, take a one-share buy stop at $100 when the next minute bar is 90/110/90/90 (open/high/low/close). It fills at $100 and should cost $1.00, but it's charged $0.90.
Potential Solution
Pass the fill (price and quantity) to the fee model when charging a fill, for example as an optional fill on OrderFeeParameters. Pre-trade fee estimates, such as buying power checks, keep using the order. This affects every fee model, including Python models and models in the brokerage plugins.
Reproducing the Problem
With #10129: EquityFillModel fills the stop above at $100, and InteractiveBrokersFeeModel charges $0.90.
System Information
master, .NET 10.
- 主要言語
- C#
- スター
- 22.6k
- フォーク
- 5.4k
- 平均マージ
- 11時間 39分
- マージ済み PR(30日)
- 104
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
QuantConnect/Lean のほかの issue
-
priority:p2
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
QuantConnect/Lean#10216 ·
メンテナーはふだん 1 日以内に返信
-
priority:p2
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
QuantConnect/Lean#10206 ·
メンテナーはふだん 1 日以内に返信
-
priority:p2
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
QuantConnect/Lean#10199 ·
メンテナーはふだん 1 日以内に返信
-
priority:p2
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
QuantConnect/Lean#10198 ·
メンテナーはふだん 1 日以内に返信
-
priority:p2
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
QuantConnect/Lean#10197 ·
メンテナーはふだん 1 日以内に返信
QuantConnect/Lean の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
dotnet-outdated/dotnet-outdated#871 ·
メンテナーはふだん 1 日以内に返信
-
triage/untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
unoplatform/uno#26676 ·
メンテナーはふだん 1 日以内に返信
-
.NET bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
jhaizhou-ops/S2Arm#2177 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
area-CodeGen-coreclr untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
dotnet/runtime#138181 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信