More logs and TAS HNG can not be the master
This commit is contained in:
1 parent
bf19ec0fda
commit
bf6461c126
2 files changed
+10
-1
No files matched your search
@@ -268,6 +268,11 @@ inline bool is_daily_contract(const api::Security& s){
|
||||
return s.symbol() == "HHD";
|
||||
}
|
||||
|
||||
inline bool is_tas(const api::Security& s){
|
||||
return s.has_ice() &&
|
||||
s.ice().market_description().find("TAS") != std::string::npos;
|
||||
}
|
||||
|
||||
// risk qty is the qty used for risk purposes for
|
||||
// 1 lot of this security.
|
||||
// daily futures and ice lots are considered 1,
|
||||
@@ -324,6 +329,7 @@ inline void get_parent_child_relationships(
|
||||
if(f.has_ice() &&
|
||||
f.has_future() &&
|
||||
!f.ice().is_ice_lots() &&
|
||||
!is_tas(f) &&
|
||||
f.symbol() == child_f.symbol() &&
|
||||
f.future().expiration_year() == child_f.future().expiration_year() &&
|
||||
f.future().expiration_month() == child_f.future().expiration_month() &&
|
||||
|
||||
@@ -52,7 +52,10 @@ LimitStore::LimitStore(const bts::api::admin::AdminData &admin_data,
|
||||
void LimitStore::_set_parent_child_relationships(
|
||||
const std::map<uint32_t, api::Security const*>& sec_map){
|
||||
std::map<uint32_t, api::Security const*> child_parent_map;
|
||||
bts::securities::get_parent_child_relationships(sec_map,child_parent_map);
|
||||
bts::securities::get_parent_child_relationships(sec_map,child_parent_map);
|
||||
for (const auto& kvp : child_parent_map)
|
||||
LOG(OrderMan, Info, "Child->Parent : {0}->{1}",
|
||||
kvp.first,kvp.second != nullptr ? kvp.second->id() : 0);
|
||||
//test_parent_child_association(sec_map,child_parent_map);
|
||||
for (const auto& kp : child_parent_map){
|
||||
uint32_t child_key = kp.first;
|
||||
|
||||
Reference in new issue
Block a user