@@ -157,27 +157,27 @@ mod tests {
157157 use super :: * ;
158158
159159 fn make_fill ( instrument_id : & str , commission : Option < Money > , ts : u64 ) -> OrderFilled {
160- OrderFilled {
161- trader_id : TraderId :: from ( "TESTER-001" ) ,
162- strategy_id : StrategyId :: from ( "S-001" ) ,
163- instrument_id : InstrumentId :: from ( instrument_id) ,
164- client_order_id : ClientOrderId :: from ( "O-001" ) ,
165- venue_order_id : VenueOrderId :: from ( "V-001" ) ,
166- account_id : AccountId :: from ( "SIM-001" ) ,
167- trade_id : TradeId :: new ( "T-001" ) ,
168- order_side : OrderSide :: Buy ,
169- order_type : OrderType :: Limit ,
170- last_qty : Quantity :: from ( 100 ) ,
171- last_px : Price :: from ( "50.25" ) ,
172- currency : Currency :: USD ( ) ,
173- liquidity_side : LiquiditySide :: Maker ,
174- event_id : UUID4 :: default ( ) ,
175- ts_event : ts. into ( ) ,
176- ts_init : ( ts + 1 ) . into ( ) ,
177- reconciliation : false ,
178- position_id : Some ( PositionId :: from ( "P-001" ) ) ,
160+ OrderFilled :: new (
161+ TraderId :: from ( "TESTER-001" ) ,
162+ StrategyId :: from ( "S-001" ) ,
163+ InstrumentId :: from ( instrument_id) ,
164+ ClientOrderId :: from ( "O-001" ) ,
165+ VenueOrderId :: from ( "V-001" ) ,
166+ AccountId :: from ( "SIM-001" ) ,
167+ TradeId :: new ( "T-001" ) ,
168+ OrderSide :: Buy ,
169+ OrderType :: Limit ,
170+ Quantity :: from ( 100 ) ,
171+ Price :: from ( "50.25" ) ,
172+ Currency :: USD ( ) ,
173+ LiquiditySide :: Maker ,
174+ UUID4 :: default ( ) ,
175+ ts. into ( ) ,
176+ ( ts + 1 ) . into ( ) ,
177+ false ,
178+ Some ( PositionId :: from ( "P-001" ) ) ,
179179 commission,
180- }
180+ )
181181 }
182182
183183 #[ rstest]
0 commit comments