ContractPicker - Security type check should actually check security types
This commit is contained in:
1 parent
c3abd88794
commit
4b8f3418f0
1 file changed
+1
-1
@@ -249,7 +249,7 @@ namespace mbts.spark
|
||||
public static bool security_in_criteria(SecurityCriteria criteria, SecurityImmutable sec_item) {
|
||||
foreach (SecurityCriteriaClause x in criteria.clauses) {
|
||||
bool check_exchanges = !(x.exchanges == null || x.exchanges.Length == 0);
|
||||
bool check_security_types = !(x.exchanges == null || x.security_types.Length == 0);
|
||||
bool check_security_types = !(x.security_types == null || x.security_types.Length == 0);
|
||||
bool check_symbols = !(x.symbols == null || x.symbols.Length == 0);
|
||||
bool check_security_keys = !(x.security_keys == null || x.security_keys.Count == 0);
|
||||
bool check_something_in_clause = check_exchanges || check_security_types || check_symbols || check_security_keys;
|
||||
|
||||
Reference in new issue
Block a user