Merge branch 'prod' of bitbucket.org:bluetradesys/spark
This commit is contained in:
commit
bf1ca4e5fa
2 files changed
+48
-28
No files matched your search
@@ -195,6 +195,15 @@ void dump_db(const vector<string> args) {
|
||||
md::db::load_securities(symbols, [&](const api::Security& security) {
|
||||
if (all || keys.find(security.id()) != keys.end()) {
|
||||
security.PrintDebugString();
|
||||
if (md::securitytype_of(security) == api::SECURITYTYPE_SYNTHETIC) {
|
||||
auto metadata = md::db::load_metadata();
|
||||
for (const auto &m : metadata) {
|
||||
if(m.security_key() == security.id()) {
|
||||
m.PrintDebugString();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user