예제 #1
0
 def event_position_closed(position) -> PositionClosed:
     return PositionClosed(
         position,
         position.last_event,
         uuid4(),
         UNIX_EPOCH,
     )
예제 #2
0
 def event_position_closed(position) -> PositionClosed:
     return PositionClosed(
         position=position,
         order_fill=position.last_event,
         event_id=uuid4(),
         timestamp_ns=0,
     )