def METHOD_NAME(
    position: int, original_order: Order, list_of_orders: listOfOrders
) -> Order:
    list_of_trade_qty = list_of_orders.list_of_qty()
    new_trade_qty = (
        calculate_most_conservative_qty_from_list_of_qty_with_limits_applied(
            position=position, list_of_trade_qty=list_of_trade_qty
        )
    )
    new_order = (
        original_order.replace_required_trade_size_only_use_for_unsubmitted_trades(
            new_trade_qty
        )
    )
    return new_order