Merge branch 'master' of bitbucket.org:bluetradesys/spark
This commit is contained in:
commit
0258fbb5f8
3 files changed
+5
-4
No files matched your search
+1
-1
Submodule externals updated: 1884a761e4...7b09ede99d.
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user