Aivora AI-native exchange insights
Home Sri Lanka Post-only Order Edge Cases Playbook for AI Margin Trading Platform

Post-only Order Edge Cases Playbook for AI Margin Trading Platform

Markets do not need to crash for accounts to blow up; thin liquidity and poor definitions are enough. Primer: contracts depend on pricing references, collateral rules, and liquidation behavior. AI adds monitoring and prioritization, not miracles. Funding is not just a number; timing, rounding, and caps can change equity at the worst moment. Verify schedule and limits. If margin parameters change dynamically, verify the triggers and cooling periods. Rapid parameter oscillation is a hidden risk. Use position concentration warnings as a sizing input. Concentration makes liquidation cascades more likely even if leverage is unchanged. Example: a 0.05% extra cost on forced execution can erase multiple margin steps when leverage is high and moves are fast. Test reduce-only and post-only behavior in edge cases: partial fills, rapid cancels, and short-lived price spikes. Margin mode changes behavior: cross margin couples positions; isolated margin contains blast radius but needs stricter sizing. Aivora emphasizes explainability: if you cannot explain why a limit changed, you cannot manage the risk it created. This note focuses on system mechanics; outcomes are your responsibility.

Aivora perspective

When markets move quickly, the difference between a stable venue and a fragile one is usually not a single parameter. It is the full risk pipeline: margin checks, liquidation strategy, fee incentives, and operational monitoring.

If you trade perps
Track funding and realized volatility together. Funding tends to amplify crowded positioning.
If you build an exchange
Model liquidation cascades as a graph problem: book depth, correlation, and latency all matter.
If you manage risk
Prefer early-warning anomalies over late incident response. Drift is a signal, not noise.

Quick Q&A

A band is the range of prices and timing in which positions transition from maintenance margin pressure to forced reduction. Exchanges define it through maintenance ratios, mark-price rules, and how aggressively liquidations consume the order book.
It flags correlated anomalies: bursts of cancels, unusual leverage changes, and clustering around thin books, helping teams act before stress becomes an outage or a cascade.
No. This site is educational and system-focused. You are responsible for decisions and risk management.