修正深交所债券ETF代码识别逻辑

This commit is contained in:
锦麟 王
2026-04-14 15:06:46 +08:00
parent 977e1be0da
commit a3a213667b
@@ -80,7 +80,7 @@ namespace YLErp.Plugins.GuoLian.DocumentGenerator
/// <summary>
/// 判断是否为债券ETF
/// - .SH后缀且511开头 -> 债券ETF
/// - .SZ后缀且59开头 -> 债券ETF
/// - .SZ后缀且159开头 -> 债券ETF
/// - 其他 -> 现券
/// </summary>
private bool IsBondEtf(string underlyingCode)
@@ -95,7 +95,7 @@ namespace YLErp.Plugins.GuoLian.DocumentGenerator
return true;
// 深交所债券ETF:59开头.SZ后缀
if (underlyingCode.EndsWith(".SZ") && underlyingCode.StartsWith("59"))
if (underlyingCode.EndsWith(".SZ") && underlyingCode.StartsWith("159"))
return true;
return false;