only put parents in the dict
This commit is contained in:
1 parent
f2d592f9c7
commit
ea776d2dcd
1 file changed
+1
-1
@@ -108,7 +108,7 @@ namespace bts.fix
|
||||
|
||||
void _add_order_info_to_caches(OrderRecordImmutable o) {
|
||||
_order_cache[o.Key] = o;
|
||||
if (o.HasDef && !string.IsNullOrEmpty(o.Def.ExternalOrderId)) {
|
||||
if (o.HasDef && o.ParentKey==0 && !string.IsNullOrEmpty(o.Def.ExternalOrderId)) {
|
||||
_external_id_vs_bts_key[o.Def.ExternalOrderId] = o.Key;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user