Files
docs/execution.md
2022-11-17 11:32:43 +00:00

3.2 KiB

Trading

Trade up to 200X

We offer perpetual futures with up to 200X leverage on BTC, ETH, and many mainstream crypto assets.

Keep your assets safe

We do not custody your assets. Your assets stay with you and the margin posted are locked in a dedicated smart contract.

Margining

All positions are margined in USDC. Both isolated and portfolio margining will be supported.

You can add margins to ourstanding positions, but cannot withdraw partially posted margin. When margins are added to an outstanding position, the relevant liquidation price is adjusted.

Multiple stablecoins are accepted as eligible margins. These will be swapped automatically to USDC.

Order type supported

At uniwhale, you can trade either Market Order or Market Limit Order. Both order types can also have either Stop Loss, Profit Target or both.

Market Order

Market orders are filled at the best price offered by the Liquidity Pool.

Market Limit Order

Market limit orders are filled when the limit prices matches the best price offered by the Liquidity Pool.

Stop Loss

Stop Loss price can be added to Market Order or Market Limit Order, which will trigger an automatic close of the position if the condition is satisfied.

Profit Target

Profit Target price can be added to Market Order or Market Limit Order, which will trigger an automatic close of the position if the condition is satisfied.

Initiating a position

Initiating a position will transfer the required margin to a dedicated on-chain contract, whose sole purpose is to hold trader margins.

Liquidity Pool which acts as the central counterparty and clearinghouse to all positions.

The initial margin is calculated based on the matched prices ("Mark Price").

You can post margin in many stablecoins, which will then been automatically swapped into USDC.

Closing a position

Closing a position will calculate the PnL based on the best price offered by the Liquidity Pool and transfer to the trader, together with the margin posted.

A trader may request the PnL to be transferred in a stablecoin other than USDC, in which case the PnL (together with the margin) will be swapped into the requested stablecoin and transferred to the trader.

A trader can not lose more than the margin posted.

Liquidation

Outstanding positions are subject to liquidation if the relevant liquidation price is breached according to the price oracle ("Index Price").

Outstanding positions eligible for liquidation are liquidated at the earliest chance, to protect the users and the platform.

Liquidation closes the relevant position. It is subject to a liquidation penalty. In order to avoid liquidation penalty, traders are advised to close a position before liquidation is triggered.

Risk management

Trading at uniwhale is subject to the following constraints:

  • Leverage cannot exceed 200x.
  • A trader can carry at most [. ] open positions for each pair.
  • A trader can carry at most [. ] open positions across pairs.
  • A trader can carry at most $[. ] of margin across pairs.
  • Minimum position (after leverage) is $[. ].
  • A position has the maximum percentage PnL of [. ].