📄️ Introduction
Perpetual contracts are a type of derivative product that allows users to trade assets with leverage, without any expiration date. In decentralized systems like Solana, perpetual contracts enable users to open long or short positions on assets, manage collateral, and leverage their positions for increased exposure to market movements.
📄️ Position Structure
In the perpetual contracts system, a Position represents a user's stake in the market, whether it's a long or short position. Each position holds critical data such as the side of the trade, collateral information, and market-specific details.
📄️ Managing Positions
In perpetual contracts, positions represent a user's leveraged stake in a market. The Processor in Solana handles the lifecycle of these positions through various instructions, such as opening, adding collateral, removing collateral, and ultimately closing or liquidating positions. Let's break down the key operations involved.
📄️ Collateral Management
Coming Soon
📄️ Liquidation
Coming Soon