Why Orders Are Canceled After Funding Fee Deduction on OKX
Orders being canceled after a funding fee deduction happens because, under the old fee mechanism, if your available margin was insufficient, the system would cancel pending orders to free up funds for the funding fee. However, in June 2024, OKX updated its rules—under the new mechanism, funding fee deductions will no longer trigger order cancellations. If you're still experiencing this, it means your account is either still on the old deduction logic or you've encountered a different scenario.
A leading global cryptocurrency platform,suitable for both beginners and experienced traders.
New user benefit: 20% off trading fees upon registration!!
Here's a breakdown of the specific causes and how to handle them.
Prerequisites
You hold a position in OKX perpetual contracts, and the funding fee settlement time has arrived (typically 00:00, 08:00, and 16:00 UTC).
You have unfilled pending orders (such as limit open orders or stop-loss/take-profit orders).
After settlement, you notice that some or all of your pending orders have been canceled by the system.
Step 1: Determine If You Are on the "Old" Deduction Mechanism
OKX optimized its perpetual contract funding fee mechanism in June 2024. The difference between the old and new versions directly affects whether your orders get canceled.
Scenario A (Old Rules)
Single-currency cross margin: The funding fee is deducted from available margin. If insufficient, the system cancels all margin-increasing orders (including spot orders, isolated margin open orders, and cross margin open orders for that currency) until margin ≥ maintenance margin + closing fees.
Multi-currency cross margin: The fee is deducted from effective margin. If insufficient, all orders that reduce effective margin are canceled.
Isolated margin: The fee is first deducted from the cross margin transferable balance. If still insufficient, isolated open orders for that contract are canceled.
Scenario B (New Rules — Orders Will Not Be Canceled)
Starting June 7, 2024, OKX rolled out updated deduction logic in phases. Under the new mechanism, the funding fee is deducted directly from the position margin, and no orders are canceled during the deduction process. If the margin is still insufficient, liquidation is triggered directly instead of touching your pending orders.
If your orders were canceled after the funding fee deduction on or after June 7, 2024, your account might still be operating under the old logic, or you may have triggered the "exception" described below.
Step 2: Check If the Canceled Orders Were "Margin-Increasing" Types
Under the old rules, only orders that increase margin usage would be canceled. These include:
Limit open orders (long buys or short sells)
Open orders in isolated margin mode
Open orders in cross margin mode
Spot orders in certain scenarios
If your pending orders were close orders or reduce-only orders, they are generally not canceled because closing does not increase margin usage.
Completion criteria: Go to [Open Orders] and verify the type of the canceled order. If it was an open order, it falls into the category subject to cancellation; if it was a close order, there is likely another reason.
Step 3: Verify the Funding Fee Settlement Timestamp
Funding fees are collected at each settlement interval (default every 8 hours), and you only need to pay if you still hold a position at that moment. If you close the position before settlement, no funding fee is owed.
If your order was canceled a few minutes before settlement, the system may have preemptively cleared it to free up margin in anticipation of the upcoming funding fee.
Completion criteria: Check the exact time the order was canceled and see if it falls within the funding fee settlement window (approximately 20 seconds to 1 minute around each settlement time).
Step 4: If Confirmed as Old Mechanism Cancellation, Review Your Margin Balance
If your order was canceled under the old mechanism, it means your available margin was insufficient to cover the funding fee. You need to:
Add more margin to your account, or close some positions to release margin.
When placing new orders, ensure your account has sufficient balance before the next settlement.
If you are on the new mechanism but your orders are still being canceled, contact OKX customer support to verify whether your account is still operating under the old deduction logic.
Completion criteria: Your account margin balance is sufficient to cover the next funding fee, and your pending orders remain intact after settlement.
Common Misdiagnosis
Mistaking a triggered stop-loss/take-profit order for a "funding fee cancellation"
When a stop-loss or take-profit order is triggered, the original conditional order disappears from the open orders list and becomes a market or limit order entering the matching engine, which may appear as if it was "canceled." This has nothing to do with funding fee deductions—it is a normal stop-loss/take-profit workflow. Confirm whether the removed order was an open order or a conditional stop-loss/take-profit order. If a stop-loss/take-profit order was triggered, check your [Order History] for the fill record; this is not a funding fee issue.
Risk Reminders
Under the new mechanism, funding fees can directly trigger liquidation: After the June 2024 update, if your position margin is insufficient to cover the funding fee, the system will directly initiate partial or full liquidation rather than simply canceling pending orders.
Settlement window timing: The actual funding fee collection may last approximately 20 seconds to 1 minute. Positions opened within this window may also be included in the current funding fee calculation.
A leading global cryptocurrency platform,suitable for both beginners and experienced traders.
New user benefit: 20% off trading fees upon registration!!
How to Confirm the Process Is Complete
Go to [Open Orders] and verify that your pending orders remain after the funding fee settlement. If they were canceled, check your [Order History] for the cancellation reason. If it shows "Insufficient margin" or "Funding fee deduction," it was caused by the old deduction logic. If it shows "Filled" or "Triggered," it means your stop-loss/take-profit was executed normally and is not a funding fee issue.
Before the next settlement, keep sufficient margin in your account to prevent the system from clearing your orders. If this happens repeatedly, consider switching from a contract with a shorter funding interval to one with a longer interval, or migrate your account directly to the new deduction logic.
