Fixed a few bugs.
This commit is contained in:
1 parent
3186dd383c
commit
7757ab3ea0
2 files changed
+5
-1
No files matched your search
@@ -104,6 +104,8 @@ Session load_session(jetfix::SessionName const &sn, std::string const &path) {
|
||||
uint64_t dummy;
|
||||
f >> dummy >> result.to_cme >> result.from_cme;
|
||||
}
|
||||
else
|
||||
save_session(path, result);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
@@ -1082,7 +1082,9 @@ bool NativeOrder::is_stop_limit_order() {
|
||||
}
|
||||
|
||||
bool NativeOrder::stop_order_has_been_triggered() {
|
||||
bts_assert(is_stop_order());
|
||||
if (!is_stop_order())
|
||||
return false;
|
||||
|
||||
auto const &native_state = get_native_state(me->state);
|
||||
return has_exchange_order_id() &&
|
||||
native_state.native_type() == NATIVE_ORDER_TYPE_LIMIT;
|
||||
|
||||
Reference in new issue
Block a user