AlgoSeekFuturesProcessor duplicates the last tick on final flush
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
ToolBox/AlgoSeekFuturesConverter/AlgoSeekFuturesProcessor.csから始め、特に133行目付近のティック解像度の設定と、211~213行目付近のFlushBufferを確認してください。IdentityDataConsolidator<Tick>が各ティックを書き込む方法と、最終フラッシュがWorkingDataを処理する方法を追ってください。再現コードがティック解像度で入力ティックごとに1行を書き込み、最終フラッシュでは集約解像度の未完了バーも引き続き書き込めれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Problem
ToolBox/AlgoSeekFuturesConverter/AlgoSeekFuturesProcessor.cs writes the last tick of each contract and tick type twice when converting at tick resolution.
At Resolution.Tick the processor uses IdentityDataConsolidator<Tick> (line 133). Its Update raises DataConsolidated for every tick, which writes the line, and also keeps the tick as WorkingData. FlushBuffer(frontier, finalFlush: true) then writes WorkingData again (lines 211-213), so the file ends with a duplicate of its last row.
Reproduction
var date = new DateTime(2020, 4, 22);
var symbol = Symbol.CreateFuture("CL", Market.NYMEX, new DateTime(2020, 5, 19));
var processor = new AlgoSeekFuturesProcessor(symbol, date, TickType.Trade, Resolution.Tick, outputDirectory);
processor.Process(new Tick { Symbol = symbol, Time = date.AddHours(10), TickType = TickType.Trade, Value = 20m, Quantity = 1 });
processor.FlushBuffer(DateTime.MaxValue, true);
// the generated tick file holds 2 identical rows instead of 1
What a fix must achieve
Each input tick is written once at tick resolution, including the last one, while the final flush still writes the unfinished bar at aggregated resolutions. Suggestion only: skip the WorkingData write when the resolution is Tick.
- 主要言語
- C#
- スター
- 22.5k
- フォーク
- 5.4k
- 平均マージ
- 13時間 11分
- マージ済み PR(30日)
- 104
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
QuantConnect/Lean のほかの issue
-
priority:p2
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
QuantConnect/Lean#10191 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
priority:p2
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
QuantConnect/Lean#10189 ·
メンテナーはふだん 1 日以内に返信
-
priority:p2
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
QuantConnect/Lean#10187 ·
メンテナーはふだん 1 日以内に返信
-
priority:p2
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
QuantConnect/Lean#10175 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
QuantConnect/Lean#10082 ·
メンテナーはふだん 1 日以内に返信
QuantConnect/Lean の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
area-ai untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
dotnet/extensions#7956 ·
メンテナーはふだん 1 日以内に返信
-
bug needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
microsoft/microsoft-ui-reactor#1567 ·
メンテナーはふだん 1 日以内に返信
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
openclaw/openclaw-windows-node#2287 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
AI Generated CI/CD ⚒️ Flaky-tests 🐦 go 🏃
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
valkey-io/valkey-glide#7772 ·
メンテナーはふだん 1 日以内に返信