pub fn perp_place_order_pegged(
    ctx: Context<'_, '_, '_, '_, PerpPlaceOrder<'_>>,
    side: Side,
    price_offset_lots: i64,
    peg_limit: i64,
    max_base_lots: i64,
    max_quote_lots: i64,
    client_order_id: u64,
    order_type: PlaceOrderType,
    reduce_only: bool,
    expiry_timestamp: u64,
    limit: u8,
    max_oracle_staleness_slots: i32
) -> Result<Option<u128>>