修正深交所债券ETF代码识别逻辑
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user