Spark-608 - get the simulator to send markets down to the shell.
This commit is contained in:
1 parent
1653671764
commit
e652435890
8 files changed
+45
-34
No files matched your search
@@ -129,28 +129,12 @@ size_t get_system_md_symbols(const md::PlatformConfig& config, std::set<UserSymb
|
||||
}
|
||||
|
||||
extern "C" BTS_EXPORT Platform platform_for_exchange(Venue) {
|
||||
return co2::PLATFORM_MDP3ONIXS;
|
||||
// using namespace bts::md;
|
||||
// const auto& pmap = config::get<PlatformMap>();
|
||||
|
||||
// const PlatformMap::PlatformProps platforms[] = {
|
||||
// pmap.sim(), pmap.srlabs(), pmap.spryware(), pmap.csm(), pmap.cme(), pmap.ice(), pmap.replay(), pmap.activ(), pmap.mdp3(), pmap.csm_onixs(), pmap.blue()
|
||||
// };
|
||||
// const Platform types[] = {
|
||||
// PLATFORM_SIM, PLATFORM_SRLABS, PLATFORM_SPRYWARE, PLATFORM_CSM, PLATFORM_CME, PLATFORM_ICE, PLATFORM_REPLAY, PLATFORM_ACTIV, PLATFORM_MDP3ONIXS, PLATFORM_CSM_ONIXS, PLATFORM_BLUE
|
||||
// };
|
||||
// static_assert(BTS_ARRAYSIZE(platforms) == BTS_ARRAYSIZE(types),"Platforms should be the same size as types");
|
||||
|
||||
// for (size_t x = 0; x < BTS_ARRAYSIZE(platforms); x++)
|
||||
// {
|
||||
// for (int y = 0; y < platforms[x].exchange_size(); ++y) {
|
||||
// if (platforms[x].exchange(y) == exchange) {
|
||||
// return types[x];
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
// return PLATFORM_UNSET;
|
||||
const auto& pmap = config::get<PlatformMap>();
|
||||
co2::Platform platform;
|
||||
if (co2::Platform_Parse(pmap.glbx_platform(), &platform)) {
|
||||
return platform;
|
||||
}
|
||||
return PLATFORM_UNSET;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user