Crypto and CryptoFuture delisting support
维护者通常 1 天内回复
还没有人认领这个 Issue。
- #9916 来自 @abhi-byte62 —— 已关闭,未合并
评估
调研方向
从 Data/symbol-properties/symbol-properties-database.csv 开始,追踪其中 cryptofuture 行的生成方式,并检查该生成器是否存在于此仓库中。然后跟踪 Common/Securities/SecurityService.cs:152 和 Common/Securities/Crypto/Crypto.cs:139,以了解订阅失败的原因;完成的标准是,被摘牌的历史合约仍可通过 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#
- 星标
- 22.3k
- 派生
- 5.4k
- 平均合并
- 1 天 15 小时
- 30 天内合并 PR
- 51
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
QuantConnect/Lean 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
QuantConnect/Lean#10005 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
QuantConnect/Lean#9965 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
QuantConnect/Lean#9955 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
QuantConnect/Lean#9953 ·
维护者通常 1 天内回复
-
WebullFeeModel charges SPXW options the SPX exchange fee可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
QuantConnect/Lean#9922 · 2 条评论 ·
维护者通常 1 天内回复
查看 QuantConnect/Lean 的全部 Issue
相似的 Issue
-
enhancement P3 performance
难度 2/5 1-3 小时 新手友好度 75/100
thomhurst/TUnit#7380 · 2 条评论 ·
维护者通常 1 天内回复
-
documentation trivial
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
PCL-Community/PCL-CE#3767 ·
维护者通常 1 天内回复
-
area-blazor NativeAOT Regression
难度 2/5 1-3 小时 新手友好度 62/100
dotnet/aspnetcore#70236 · 1 条评论 ·
维护者通常 1 天内回复
-
bug priority: P2
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复