Exante futures fees do not scale with contract quantity

オープン 初心者向け
#10,187 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
88/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
csharp
領域
backend

調査の方向性

Common/Orders/Fees/ExanteFeeModel.csを読み、SecurityType.Futureの分岐に注目して、既存のInteractiveBrokersFeeModelTests.USAFutureFeeの設定と動作を比較してください。注文方向の両方について、単一契約と複数契約の回帰テストを追加し、関連する手数料モデルのテストを実行してください。先物の手数料が数量の絶対値に応じて変わり、既存の契約あたりの料率と無関係な手数料の動作が変わらないことを完了条件とします。

索引モデルが issue の本文から書いたものです。

説明

priority:p2

Problem

ExanteFeeModel.GetOrderFee returns a constant 1.5 USD for every futures order, without multiplying by the absolute contract quantity (Common/Orders/Fees/ExanteFeeModel.cs, SecurityType.Future branch). Multi-contract orders therefore have the same commission as a single contract.

This behavior is present on master and is independent of #10180's Forex fee-currency fix.

Reproduction

Built and ran a standalone .NET 10 program using the existing fee model and a CME ES future. Calling GetOrderFee with market orders produced:

Order quantity Returned fee At the model's existing USD 1.50-per-contract rate
1 USD 1.50 USD 1.50
10 USD 1.50 USD 15.00
-10 USD 1.50 USD 15.00

A test can use the same Future setup as InteractiveBrokersFeeModelTests.USAFutureFee and replace the fee-model call with:

var fee = new ExanteFeeModel().GetOrderFee(new OrderFeeParameters(
    security, new MarketOrder(security.Symbol, 10, time)));
Assert.AreEqual(Currencies.USD, fee.Value.Currency);
Assert.AreEqual(15m, fee.Value.Amount); // Actual: 1.5m

The provider's cost-and-charges disclosure, Example 8, explicitly states: “Fee per trade is calculated as US DOLLARS per contract.” Its futures page lists starting rates by exchange. This report concerns quantity scaling, not changing the modeled rate schedule.

Fix requirements

Scale the existing futures commission by absolute contract quantity, with regression coverage for a single contract, multiple contracts, and both order directions. Keep unrelated Forex/equity behavior unchanged.

Priority P2: limited to multi-contract futures orders using this fee model; single-contract orders are unaffected. Evidence of broader usage and materially wrong backtest results would justify raising it.

主要言語
C#
スター
22.5k
フォーク
5.4k
平均マージ
13時間 11分
マージ済み PR(30日)
104

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

QuantConnect/Lean のほかの issue

QuantConnect/Lean の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。