Merge branch 'prod' of bitbucket.org:bluetradesys/spark

This commit is contained in:
Eric Harding committed 2018-11-01 16:55:04 -04:00
commit bf1ca4e5fa
2 files changed
+48 -28

No files matched your search

+9
View File
@@ -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;
}
}
}
}
});
}