...
2025-05-03T07:15:45
An isolated margin trading position reflects the current state of a trade executed using a specific trading pair in isolated margin mode. Grasping how this position works aids in evaluating the profit and loss within your margin account, enabling more informed investment choices.
Positions arise from trades and encapsulate the overall data concerning these trades, while assets refer to the balance and liabilities of particular cryptocurrencies.
For instance, if a user holds 1 BTC and borrows 2 BTC to short, they sell 3 BTC in margin trading, resulting in earnings of 90,000 USDT. Ignoring interest, the isolated margin trading position for BTC/USDT is a short position of 3 BTC. Key details include the cost basis, position assets, and profit and loss (PnL). The total assets in the account are 90,000 USDT, with a debt of 2 BTC.
In isolated margin mode, buying increases the position, while selling decreases it. A positive final position value indicates a long position, zero means the position is closed, and a negative value indicates a short position.
For example:
Important Notes:
The position cost basis is the average price of all holdings in the position, calculated as follows:
For a long position:
For a short position:
Here, t0 represents the position before a new trade, and t1 is the new trade. The cost basis changes with trades in the same direction but resets when a position reverses.
Note: "Current price" refers to the current index price.
For a long position:
For a short position:
SorooshX can include leverage in ROI calculations, allowing users to select which type of ROI to display.
Unrealized PnL measures the potential profit or loss based on the current price against the position cost basis.
For a long position:
For a short position:
If a position is closed (buy volume equals sell volume), the unrealized PnL is zero.
Is that helpful?