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