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

This commit is contained in:
Taha Afzal committed 2017-10-12 10:37:03 -04:00
commit 0258fbb5f8
3 files changed
+5 -4

No files matched your search

@@ -45,9 +45,9 @@ public:
for (auto &h : _handles) {
auto &handle = h.handle;
if (handle->get_depth(h.last,
std::tuple_size<BookSide>(),
&book.bid()[0],
&book.ask()[0]) == md2::HandleReadResult::SUCCESS) {
std::tuple_size<BookSide>(),
&book.bid()[0],
&book.ask()[0]) == md2::HandleReadResult::SUCCESS) {
book._security_key = SecurityKey(handle->key());
auto corid = handle->sequence();
book_update.correlation_id = corid;
@@ -123,6 +123,7 @@ void SpreaderOrderMan::on(event::BookUpdate const&book_update)
void SpreaderOrderMan::on(event::GatewayStatusChange const&c)
{
me->gateway_ready = c.is_connected;
if (c.is_connected)
for (auto const &kvp : me->spreader_orders)
kvp.second->on_connect();