sdk
This commit is contained in:
1 parent
c95b402683
commit
d6aeda8cfd
8 files changed
+202
-76
No files matched your search
@@ -337,6 +337,21 @@ struct MDRelayServer : bts::co2::MarketDataRelayBase {
|
||||
reply(*preply);
|
||||
});
|
||||
}
|
||||
|
||||
virtual void request_products(const ProductListRequest& request, const std::function<void(const ProductListReply&)>& reply) override
|
||||
{
|
||||
ProductListReply list;
|
||||
std::set<UserSymbol> syms;
|
||||
get_system_md_symbols(syms);
|
||||
for(const auto& i : syms)
|
||||
{
|
||||
auto prod = list.add_products();
|
||||
prod->set_exchange(i.exchange());
|
||||
prod->set_type(i.type());
|
||||
prod->set_symbol(i.symbol());
|
||||
}
|
||||
reply(list);
|
||||
}
|
||||
};
|
||||
|
||||
struct QueryServer {
|
||||
|
||||
Reference in new issue
Block a user