@@ -137,6 +137,10 @@ cdef class SimulatedExchange:
137
137
cdef inline void _process_limit_order(self , LimitOrder order, Price bid, Price ask) except *
138
138
cdef inline void _process_stop_market_order(self , StopMarketOrder order, Price bid, Price ask) except *
139
139
cdef inline void _process_stop_limit_order(self , StopLimitOrder order, Price bid, Price ask) except *
140
+ cdef inline void _amend_limit_order(self , LimitOrder order, Quantity qty, Price price, Price bid, Price ask) except *
141
+ cdef inline void _amend_stop_market_order(self , StopMarketOrder order, Quantity qty, Price price, Price bid, Price ask) except *
142
+ cdef inline void _amend_stop_limit_order(self , StopLimitOrder order, Quantity qty, Price price, Price bid, Price ask) except *
143
+ cdef inline void _generate_order_amended(self , PassiveOrder order, Quantity qty, Price price) except *
140
144
141
145
# -- ORDER MATCHING ENGINE -------------------------------------------------------------------------
142
146
@@ -148,8 +152,12 @@ cdef class SimulatedExchange:
148
152
cdef inline bint _is_limit_matched(self , OrderSide side, Price order_price, Price bid, Price ask) except *
149
153
cdef inline bint _is_stop_marketable(self , OrderSide side, Price order_price, Price bid, Price ask) except *
150
154
cdef inline bint _is_stop_triggered(self , OrderSide side, Price order_price, Price bid, Price ask) except *
151
- cdef inline Price _market_fill_price(self , Symbol symbol, OrderSide side, Price bid, Price ask)
152
- cdef inline Price _stop_fill_price(self , Symbol symbol, OrderSide side, Price stop)
155
+ cdef inline Price _fill_price_maker(self , OrderSide side, Price bid, Price ask)
156
+ cdef inline Price _fill_price_taker(self , Symbol symbol, OrderSide side, Price bid, Price ask)
157
+ cdef inline Price _fill_price_stop(self , Symbol symbol, OrderSide side, Price stop)
158
+
159
+ # --------------------------------------------------------------------------------------------------
160
+
153
161
cdef inline void _fill_order(self , Order order, Price fill_price, LiquiditySide liquidity_side) except *
154
162
cdef inline void _clean_up_child_orders(self , ClientOrderId cl_ord_id) except *
155
163
cdef inline void _check_oco_order(self , ClientOrderId cl_ord_id) except *
0 commit comments