Skip to content

Executing Trades

Order TypeDescription
Market OrderExecutes at the current market price (from the oracle + potential slippage). It’s the fastest way to enter a position.
Limit OrderExecutes only if the market crosses a specific “better” price. Example: “Go long at 50k” (the price is 51k now, so if it dips to 50k, it triggers a buy).
Stop OrderExecutes if the market crosses a specific “worse” price. Example: “Go long at 70k” (the price is 60k now; you want to catch momentum going upward).
Trigger Order (Stop Loss / Take Profit)Separate from entry orders—these are conditions to close a position automatically if price hits a threshold. A network “keeper” must send the final transaction to trigger your order.

Tip: Market, Limit, and Stop are used for opening a position. A Stop Loss or Take Profit is used for closing a position once conditions are met.

  1. Choose Market & Collateral
    • E.g., BTC/USD with “USDC” as collateral.
  2. Select a side
    • E.g., long/short
  3. Select Leverage
    • Type your desired multiple. The allowed range depends on the market.
    • For scheduled markets, high leverage can be reduced later by the after-hours effective leverage cap if the position is carried through a market close.
  4. Enter Order Type
    • Market or set a limit/stop price.
  5. Confirm
    • The contract checks your collateral, calculates fees, and if valid, opens your position.

Step-by-Step Example (Market Order, Long)

  1. Collateral: 500 USDC (You deposit 500 tokens into the vault).
  2. Leverage: 5x => Position Notional = 2,500 UUSD.
  3. Click “Open Long”
    • The protocol takes your 500 collateral, checks everything, and opens a 2,500 notional BTC/USD position at the current price (minus any slippage).
  4. Fees: Suppose 0.1% open fee => 2.5 USDC is deducted from your margin.

You can fully or partially close.

  • Market Close: Sells (or buys back) instantly at the current price.
  • Partially Close: Close part of a position. Select it in your positions list, choose Partially Close, and choose the percentage to close.
  • Trigger Close (Stop Loss / Take Profit): If price crosses your chosen threshold, a keeper can finalize the close.

Closing Fees apply, so plan for that. If your trade was profitable, leftover profits are credited from the vault to your wallet. If the trade was a loss, your collateral will be reduced accordingly.

After opening a trade, you may set or update:

  • SL: The price to close if the market moves against you.
  • TP: The price to close if the market moves in your favor.

Once triggered, an external call to “TriggerTrade” finalizes it. If no one triggers it, the position remains open.

Sai does not merge positions. Each order that fills opens a new position with its own entry price, collateral, leverage, liquidation price, and Take Profit and Stop Loss. This holds even when you already have a position in the same market and direction. Your positions list shows each position on its own row, and you adjust and close each one separately.

Margin is isolated. A position’s collateral backs only that position, and its liquidation price depends only on its own collateral and leverage. A loss on one position does not draw on another position’s collateral or on your Sai balance. To give a position more room before liquidation, select it in your positions list and choose Edit Margin to add collateral.

A position can earn at most 900% of its collateral in profit. The cap is set in the Sai contract and applies to every market. It measures the price move times leverage, before fees. Fees then come out of the capped profit, including the 10% profit fee on a profitable close, so the net profit you receive is below 810% of collateral.

For example, 100 USDC of collateral at 10x leverage reaches the cap after a 90% price move in your favor, for a profit of 900 USDC before fees. A larger move does not add profit. After the position’s fees and the profit fee, you receive less than 810 USDC of profit.

Once a position reaches the cap, its PnL stops growing, and the positions list shows “Capped at 900% profit” when you hover over the PnL. If you set a Take Profit beyond the cap, Sai moves it to the cap price.