To calculate your pnl, all you have to do is:
PNL: position size * (sell price - buy price)
where position size is in number of coins. So if you buy 5 BTC futures at $10,000 and sell 5 BTC futures for $11,000, you made 5 * (11,000 - 10,000) = $5000.
If you haven't closed a trade yet, then:
PNL for open position: position size * (mark price - entry price) if you bought; position size * (entry price - mark price) if you sold. Mark price is the middle of bid, ask and last for the future.
If you traded perpetual futures you also have to add in any funding payments made or lost while the position was open.
Every thirty seconds (unless there are active liquidations), we automatically turn all unrealized pnl into realized pnl. Thus:
Unrealized PNL: position size * (mark price - mark price 30 seconds ago).
Realized PNL: PNL - unrealized PNL.
Details
Fills modify position sizes and cost. Fills only affect unrealized pnl, not realized pnl.
Position entry price = cost / size
Unrealized pnl: position size * mark price - cost
Every 30 seconds, all unrealized pnl turn into realized pnl if there are no account is being auto-closed
(specifically, account collateral is modified by unrealized pnl and entry price is set to mark price)
FTX uses standard futures rather than inverted futures. This means that ultimately you can calculate your final PnL from quarterly futures, assuming no liquidations, as: PnL = Number of Futures * (exit price - entry price). So for instance if you bought 15 BTC futures at $5,000 and sold all 15 at $6,000, your USD collateral will increase by $15,000. If you hold a position until expiration you can treat the expiration price of the contract as your exit price.
Note that if you put on a position in a perpetual future, your PnL will be increased/decreased by the total funding payments you pay while holding the position. Each hour, there is a funding payment from longs to shorts of position size * (TWAP of futures price - TWAP of index) / 24.
Non-USD Collateral
Balances of the following coins also count towards collateral.
Coin | Weight (total) | Weight (initial) |
Non-USD fiat | 0.99 | 0.98 |
USDT | 0.975 | 0.95 |
BTC | 0.975 | 0.95 |
ETH | 0.95 | 0.9 |
BNB | 0.95 | 0.9 |
PAXG | 0.95 | 0.9 |
XAUT | 0.95 | 0.9 |
KNC | 0.95 | 0.9 |
BCH | 0.9 | 0.85 |
LTC | 0.9 | 0.85 |
TRYB | 0.9 | 0.85 |
LINK | 0.9 | 0.85 |
TRX | 0.9 | 0.85 |
CUSDT | 0.9 | 0.85 |
XRP | 0.9 | 0.85 |
SOL | 0.9 | 0.85 |
BVOL | 0.85 | 0.8 |
IBVOL | 0.85 | 0.8 |
OKB | 0.85 | 0.8 |
HT | 0.85 | 0.8 |
MKR | 0.8 | 0.8 |
SUSHI | 0.8 | 0.8 |
SNX | 0.8 | 0.8 |
YFI | 0.8 | 0.8 |
SXP | 0.8 | 0.8 |
BTMX | 0.8 | 0.8 |
OMG | 0.8 | 0.8 |
TOMO | 0.8 | 0.8 |
AAVE | 0.8 | 0.8 |
OKB | 0.85 | 0.8 |
HT | 0.85 | 0.8 |
MATIC | 0.8 | 0.8 |
LEO | 0.85 | 0.8 |
Tokenized Stocks (e.g. AAPL, TSLA, etc.) | 0.85 | 0.8 |
SRM |
0.9 | 0.85 |
FTT (optional) |
0.95 | 0.95 |
You can choose whether to use FTT as collateral on the settings page. By default your account will use FTT as collateral. Note that Weight (total) is used to determine collateral for the purpose of liquidations, and Weight (free) is for the purpose of opening new positions.
In the event that your USD balance falls too far below zero (see below for details), some of your balances in the above coins may be automatically traded into to USD by sending market orders into the corresponding FTX spot markets.
Any positive PnL will be paid out in USD regardless of which type of collateral you use.
See here for more details.
________________________________________
FTX Crypto Derivatives Exchange: https://ftx.com
Email: support@ftx.com
FTX Telegram Communities
English - https://t.me/FTX_Official
Chinese - https://t.me/FTX_Chinese_Official
Vietnamese - https://t.me/FTX_Vietnam_Official
Russian - https://t.me/FTX_Russian_Official
Turkish - https://t.me/FTX_Turkey_official
Taiwanese - https://t.me/FTX_Taiwan_Official
French - https://t.me/FTX_France_Officiel
Korea - https://t.me/FTX_Korea_Official
India - https://t.me/FTX_India_Official
Spanish - https://t.me/Ftx_Spanish_Official
Portuguese - https://t.me/Ftx_Portugues_Oficial
Dutch - https://t.me/FTX_Dutch_Official
Africa - https://t.me/FTX_Africa
WeChat - FTX_Official
Blog: https://blog.ftx.com/
Medium:https://medium.com/@ftx
Facebook - https://www.facebook.com/ftx.official/
Twitter- https://twitter.com/FTX_Official
SBF Twitter - https://twitter.com/SBF_Alameda
YouTube - https://www.youtube.com/channel/UC3r0upC_xJ9SvtaCKNUtosA