コード例 #1
0
ファイル: stubs.py プロジェクト: w1r2p1/nautilus_trader
 def event_position_changed(position) -> PositionChanged:
     return PositionChanged(
         position,
         position.last_event,
         uuid4(),
         UNIX_EPOCH,
     )
コード例 #2
0
 def event_position_changed(position) -> PositionChanged:
     return PositionChanged(
         position=position,
         order_fill=position.last_event,
         event_id=uuid4(),
         timestamp_ns=0,
     )