Crypto and CryptoFuture delisting support
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
- #9916 @abhi-byte62 による — マージされずにクローズ
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
調査の方向性
Data/symbol-properties/symbol-properties-database.csv から始めて、その cryptofuture 行がどのように生成されるかを追跡し、その生成元がこのリポジトリに存在するか確認します。次に Common/Securities/SecurityService.cs:152 と Common/Securities/Crypto/Crypto.cs:139 を追って subscription の失敗を理解します。完了の条件は、上場廃止された過去の契約を AddCryptoFuture 経由で引き続き解決でき、現在の listings を失わないことです。
索引モデルが issue の本文から書いたものです。
説明
Summary
Historical hourly trade/quote data for several Binance USDⓈ-M perpetual futures
contracts is present in the QuantConnect cloud data store, but the contracts
have no row in Data/symbol-properties/symbol-properties-database.csv under
type=cryptofuture, so AddCryptoFuture(...) cannot subscribe to them (the
security service throws Failed to resolve base currency for '<TICKER>', it might be missing from the Symbol database or market '<MARKET>' could be wrong, Common/Securities/SecurityService.cs:152).
Evidence
The following tickers were once tradeable Binance USDⓈ-M futures contracts
(all later delisted from the futures venue by Binance) and have complete
historical trade+quote hour files in the cloud store
(cryptofuture/binance/hour/<ticker>_trade.zip /
cryptofuture/binance/hour/<ticker>_quote.zip both exist for each), yet none
of them has a type=cryptofuture row in the current
symbol-properties-database.csv:
- AKROUSDT
- BTTUSDT
- BZRXUSDT
- DODOUSDT
- KEEPUSDT
- LUNAUSDT
- NUUSDT
- YFIIUSDT
All eight tickers do still have a type=crypto (spot) row in the same file,
which is not equivalent - AddCryptoFuture specifically requires a
cryptofuture row (see Common/Securities/Crypto/Crypto.cs:139, which reads
SymbolProperties.QuoteCurrency to decompose the currency pair; without a
matching row the default account-currency quote is used instead, the ticker
does not end with it, and CurrencyPairUtil.TryDecomposeCurrencyPair fails).
Suspected root cause
symbol-properties-database.csv's cryptofuture rows appear to be
regenerated from Binance's current exchangeInfo listing. Once Binance
delists a USDⓈ-M futures contract, its row silently drops out of the next
regeneration - even though the previously-collected historical files for that
ticker remain valid and stay in the data store indefinitely. The result is
that historical data becomes permanently unreachable through the normal
subscription API for any contract Binance later delists, despite the data
itself being intact.
Proposed fix
The cryptofuture generation step should preserve a symbol's row once
delisted (or fall back to the last-known row) rather than dropping it,
similar to how equity delistings do not remove historical map-file/security
entries. Where the historical row differs from the current listing, the
row should be flagged (e.g. by an IsDelisted/last-active-date column) or
delisted rows appended after a snapshot, so AddCryptoFuture can still
resolve the currency pair for periods when the contract was live.
Open questions
- Is
symbol-properties-database.csv'scryptofuturesection generated by
an automated job or hand-maintained? If automated, is the generator in this
repo or an internal pipeline? - Are there other delisted Binance USDⓈ-M contracts with the same gap beyond
the eight sampled here?
Reported via Intercom conversation 215475946234200.
- 主要言語
- C#
- スター
- 22k
- フォーク
- 5.3k
- 平均マージ
- 1日 6時間
- マージ済み PR(30日)
- 47
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
QuantConnect/Lean のほかの issue
-
WebullFeeModel charges SPXW options the SPX exchange fee対応中かも @Amadeus-22 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
QuantConnect/Lean#9922 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
QuantConnect/Lean#9920 ·
メンテナーはふだん 1 日以内に返信
-
AlpacaBrokerageModel refuses extended-hours limit orders with the GTC time in force, which Alpaca accepts対応中かも @AlexCatarino が 7 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
QuantConnect/Lean#9892 ·
メンテナーはふだん 1 日以内に返信
-
GetMarketHours: a late open after the day's last segment keeps the whole day open対応中かも @abhi-byte62 が 4 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
QuantConnect/Lean#9889 ·
メンテナーはふだん 1 日以内に返信
-
library-request
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
QuantConnect/Lean#9879 ·
メンテナーはふだん 1 日以内に返信
QuantConnect/Lean の issue をすべて見る
似ている issue
-
[BUG] Still libmicrohttpd dependency is not removed properly from External-Dependency-Info.txt fileオープンtype/bug
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
[辞書] かんそうりつ->乾燥率オープン辞書
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
thomhurst/TUnit#7201 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
ArduPilot/MissionPlanner#3826 ·
メンテナーはふだん 1 日以内に返信
-
MongoDB integration tests fail on newer GitHub Actions runner kernels対応中かも @nmummau が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
Eventuous/eventuous#626 · コメント 2 件 ·
メンテナーはふだん 7 日以内に返信