File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed
main/java/com/ddfplus/util
test/java/com/ddfplus/util Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,8 @@ else if (symbol.endsWith(".RP"))
153
153
return SymbolType .Economic_Indicators ;
154
154
else if (symbol .endsWith (".BI" ))
155
155
return SymbolType .Baltic ;
156
+ else if (symbol .endsWith (".BP" ))
157
+ return SymbolType .YieldBP ;
156
158
157
159
for (int i = 0 ; i < ca .length ; i ++) {
158
160
if (Character .isDigit (ca [i ])) {
Original file line number Diff line number Diff line change @@ -67,6 +67,6 @@ public enum SymbolType {
67
67
*/
68
68
Future_Option_UserDefinedSpread ,
69
69
Economic_Indicators ,
70
- Baltic ;
70
+ Baltic , YieldBP ;
71
71
72
72
}
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ public void testGetSymbolType() {
13
13
assertEquals (SymbolType .Future_Option , Symbol .getSymbolType ("CLG3|1300C" ));
14
14
assertEquals (SymbolType .Index , Symbol .getSymbolType ("$SPX" ));
15
15
assertEquals (SymbolType .Baltic , Symbol .getSymbolType ("C5TC.BI" ));
16
+ assertEquals (SymbolType .YieldBP , Symbol .getSymbolType ("ZCYAOH80.BP" ));
16
17
}
17
18
18
19
@ Test
You can’t perform that action at this time.
0 commit comments