diff --git a/components/trade_form/AdvancedTradeForm.tsx b/components/trade_form/AdvancedTradeForm.tsx index 56e0eacb..81cb8ba3 100644 --- a/components/trade_form/AdvancedTradeForm.tsx +++ b/components/trade_form/AdvancedTradeForm.tsx @@ -643,9 +643,7 @@ export default function AdvancedTradeForm({ let perpOrderPrice: number = orderPrice if (isMarketOrder) { - if (postOnlySlide) { - perpOrderType = 'postOnlySlide' - } else if (tradeType === 'Market' && maxSlippage) { + if (tradeType === 'Market' && maxSlippage) { perpOrderType = 'ioc' if (side === 'buy') { perpOrderPrice = markPrice * (1 + parseFloat(maxSlippage)) @@ -658,6 +656,8 @@ export default function AdvancedTradeForm({ } else { perpOrderType = 'market' } + } else { + perpOrderType = postOnlySlide ? 'postOnlySlide' : orderType } if (isTriggerOrder) {