αAlphaDEX Docs

How It Works

Lifecycle of a position

  1. You pick an asset, a leverage (2x up to the cap for that asset and duration), and a duration. You deposit USDC as collateral.
  2. The protocol borrows additional USDC from the LP pool so that position size = collateral × leverage. The total USDC is swapped into the underlying asset through Jupiter.
  3. The position sits. Price moves. Nothing closes you — there is no liquidation price. You can set an optional take-profit and stop-loss.
  4. At expiry (or when you manually close), the asset is swapped back into USDC via Jupiter.
  5. Proceeds are settled:
    • The LP’s share of the position is returned to the pool first.
    • If the trade was profitable, a profit share (see Fees) is paid to the LP; the remainder goes to you.
    • If the trade was unprofitable but the loss is within your collateral, the LP is made whole from your collateral and you receive what’s left.
    • If the loss exceeds your collateral, the LP absorbs the excess. You cannot lose more than your collateral + open fee.

Partial close

You can close any fraction of a position at any time. Closing 50% returns half the collateral, half the borrowed USDC, and half the asset to USDC — the other half continues until expiry (or another close).

Take-profit / stop-loss

Optional on any position. When the mark price crosses your trigger, a keeper submits a close on your behalf. Triggers are independent of expiry; the position still expires normally if neither trigger fires.

Expiry

Positions expire automatically at the chosen duration. Anyone (including a keeper) can call the expiry instruction once the clock is past the position’s expiry timestamp. The settlement math is identical to a manual close.

Limit orders

You can also open positions via limit order. Specify a target entry price and a side; when the oracle price crosses the limit, a keeper fills the order at market.