Fixed a few bugs.

This commit is contained in:
Pedro Pinto committed 2020-06-30 19:35:53 -04:00
1 parent 3186dd383c
commit 7757ab3ea0
2 files changed
+5 -1

No files matched your search

+3 -1
View File
@@ -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;