Testnet. Tokens have no real value, the contracts are unaudited, and leverage can wipe out your margin.
xhade
Docs / Perps

Trading

Perps

Perps trade a stock's price without holding the token. You can go long or short with up to 2x leverage.

Opening a position

  • Choose long or short, a margin in USDG, and 1x, 1.5x or 2x leverage.
  • Position size is margin times leverage, converted at the oracle mark price.
  • The open fee is 0.10% of the position size, charged on top of your margin.
  • You can hold one position per market. Each position is isolated: it can only lose its own margin.

Profit and loss

For a long, profit is size times the change in price since entry. For a short it is the reverse. Closing returns your margin plus profit, or minus loss. A loss can never exceed your margin.

Liquidation

A position can be liquidated when margin plus unrealized profit falls below 5% of its current size in USDG. Anyone can trigger it. The liquidator receives 5% of the margin and the rest goes to the house pool.

Example

You open a 2x long on TSLA at 250 USDG with 1,000 USDG margin. Size is 8 TSLA and the fee is 2 USDG. At 275 your profit is 200 USDG. At 130 your loss is 960 USDG, which leaves 40 USDG against a 52 USDG requirement, so the position can be liquidated.

Parameters

ParameterValue
Leverage1x to 2x
Open fee0.10% of position size
Maintenance margin5% of current position size
Liquidation reward5% of margin
Mark priceOracle price, at most 24 hours old

Profits are paid from a house pool and are capped by what it holds. If the oracle price is older than 24 hours, perps pause until it updates.