Spin
WebsiteTwitterTelegramDiscord
  • ๐Ÿ‘‹Welcome to Spin
  • Spin Products
    • ๐ŸŒ Spot Trading
    • โšกInstant Swaps
    • ๐Ÿ†Perpetual Futures
    • ๐Ÿช™DeFi Option Vaults
      • โ˜€๏ธCovered Call Strategy
      • ๐ŸŒ•Cash-Secured Put Strategy
    • โœจOther AIPs
  • Contracts specification
    • โšชNEAR-Perp
  • SPIN Token
    • ๐ŸŽ‡SPIN Utilities
    • ๐ŸฃPublic Token Sale
    • ๐Ÿ“Tokenomics
    • ๐Ÿ’ซMarket Maker Incentives
    • โ›ฒTrader Incentives
    • ๐Ÿ›ธSPIN Staking
    • โš“Insurance Fund
  • Freaky Elves
    • ๐Ÿ‘พFreaky Elves NFTs
    • ๐ŸฆšSecret Chat on DS
  • Tech Documentation
    • ๐ŸŒฑSC Methods & API
    • ๐Ÿ€Perpetuals
      • ๐ŸŒฟTrading Modules
      • ๐Ÿ”‹Collateral
      • ๐Ÿ’ธUnrealized PnL
      • ๐ŸงชFunding
      • ๐Ÿ›ฃ๏ธMargin ratio & Liquidation
  • User Guides
    • ๐Ÿ“ˆSpin Trading Strategies
    • โฒ๏ธUsing Ledger on Spin
  • Links
    • ๐Ÿ”—Useful links
Powered by GitBook
On this page

Was this helpful?

  1. Tech Documentation
  2. Perpetuals

Unrealized PnL

PreviousCollateralNextFunding

Last updated 2 years ago

Was this helpful?

Unrealized PnL (uPnL) is the unrealized amount of the user's profit or loss if closing a position with current prices:

Example: Alice has 10,000 USDC on her margin account, and Bob has 6,000 USDC on his margin account. The BTC price is 33,520 USDC. At 15:00 Alice sells 1 BTC futures and Bob buys 1 BTC futures. The collateral for a position in both cases is 10%, or 0.1 BTC or 3,352 USDC.

Suppose the BTC price rises by 5% to 35,200 USDC by 22:00. Alice's uPnL will be -1680 USDC, and Bob's uPnL will be 1,680 USDC. Collateral is still 10% of the price, or 3,520 USDC. uPnL is converted to the margin amount when the trade is closed.

๐Ÿ€
๐Ÿ’ธ