def METHOD_NAME(
    price: Optional[Price] = None,
    quantity: Optional[Quantity] = None,
    instrument_id: Optional[InstrumentId] = None,
    client_order_id: Optional[ClientOrderId] = None,
    venue_order_id: Optional[VenueOrderId] = None,
    order: Optional[Order] = None,
) -> ModifyOrder:
    assert price or quantity
    if order is not None:
        return ModifyOrder(
            trader_id=TestIdStubs.trader_id(),
            strategy_id=TestIdStubs.strategy_id(),
            instrument_id=order.instrument_id,
            client_order_id=order.client_order_id,
            venue_order_id=order.venue_order_id,
            quantity=quantity,
            price=price,
            trigger_price=None,
            command_id=TestIdStubs.uuid(),
            ts_init=0,
        )
    else:
        return ModifyOrder(
            trader_id=TestIdStubs.trader_id(),
            strategy_id=TestIdStubs.strategy_id(),
            instrument_id=instrument_id,
            client_order_id=client_order_id,
            venue_order_id=venue_order_id,
            quantity=quantity,
            price=price,
            trigger_price=None,
            command_id=TestIdStubs.uuid(),
            ts_init=0,
        )