enewhuis / liquibook

Modern C++ order matching engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Suspicious STOP LOSS logic, comparison seems inverted

enewhuis opened this issue · comments

commented

https://github.com/objectcomputing/liquibook/blob/110695cf0a234888555323c94d8b65edb45fe8cf/src/book/order_book.h#L578

This seems to contradict line 553 since if the stop price (here->first) is a better deal than the market price (until) then it definitely is time to panic.

commented

I can submit a pull request with experimental but complete support for STOP orders if there is any interest and if preparing it doesn't take too much time. I may need to rework and generalize some earlier unrelated enhancements and/or distill another branch for it to be more universally acceptable.

commented

Sure I can probably do that. It looks like there are already some minor enhancement people would like to see merged to master.

I hereby volunteer.