Refactored.

This commit is contained in:
Pedro Pinto committed 2019-04-15 13:43:40 -04:00
1 parent 6e5451e314
commit 81a0e1376c
1 file changed
+1 -4
@@ -171,10 +171,7 @@ bool TopOrder::ensure_min_quantity() {
}
bool TopOrder::at_top_of_book() const {
auto my_side = definition().side();
auto &my_side_psz = me->last_book.side(my_side)[0];
return securities::is_same(price(), Price(my_side_psz.price()));
return securities::is_same(price(), top_of_book_price());
}
bool TopOrder::better_than_top() const {