Long · A price rise helps
Open a 10-unit long at 100 yuan. At 103 yuan, before fees, the result is
10 ×(103 − 100) = +30 yuan
Quantity × (current price − entry price).
← Lesson 3 · Quotes, Orders, and Fills
When a price falls 5%, one account may lose 5%, another may lose 10%, and a third may profit. The result depends on your direction, your position size, and the equity supporting it.
Lesson 3 separated planned quantity from actual fills. Here we start with an existing position and look at how price changes affect equity and can force an exit.
The lesson uses a fictional Token A and a cash-settled linear perpetual contract. Prices are in yuan for the exercise, and each contract unit tracks the price change of one token. The examples use fictional rates and paths and are for teaching. The time estimate has yet to be tested with learners.
Calculate long and short P&L ↓Open a 10-unit long at 100 yuan. At 103 yuan, before fees, the result is
10 ×(103 − 100) = +30 yuan
Quantity × (current price − entry price).
Open a 10-unit short in a linear contract at 100 yuan. At 103 yuan, before fees, the result is
10 ×(100 − 103) = −30 yuan
Quantity × (entry price − current price).
At 97, the long loses 30 and the short gains 30. Here, a short is a position in a contract. Selling tokens you already own reduces your holdings. Shorting a security through borrowing is another mechanism. It means borrowing the security, selling it, buying it back to return, and paying applicable fees.
Use these formulas for the linear, same-currency setup described here. Inverse contracts, options, other contract multipliers, and different settlement currencies require different calculations. An unhedged short keeps losing money if the price keeps rising.
In this lesson, current notional value = quantity × current price. For example, 20 units × 100 yuan = 2,000 yuan. This is price exposure. Net assets and borrowing are separate measures.
Equity generally means assets minus liabilities. With no other cash flows in this contract account, equity = starting funds + position profit or loss. With 1,000 yuan contributed and an unrealized loss of 100 yuan, equity is 900 yuan. Unrealized P&L counts in the margin check.
Initial margin is the requirement to open a position. Maintenance margin is the ongoing minimum to keep the position open. Contract margin backs the position and stays part of your equity.CME explains initial and maintenance margin and how futures margin differs from securities margin.
In this example, you allocate 1,000 yuan to a contract position with an opening notional value of 2,000 yuan. An initial margin requirement of 20% calls for 400 yuan. Account equity stays at 1,000 yuan. The 400 yuan is part of that equity.
Opening notional ÷ starting equity = 2,000 ÷ 1,000 = 2×. This ratio measures the exposure relative to the equity allocated to the position.
If you buy a spot asset with borrowed money, track assets and debt separately. Suppose you put up 1,000 and borrow 1,000 to buy 2,000 yuan of assets. After a 5% price fall, assets are worth 1,900, debt stays at 1,000, and equity is 900.The SEC’s securities margin account guide explains how borrowing magnifies losses. A contract instead settles gains and losses according to its own terms.
Isolated margin typically allocates a separate pool of funds to one position. Cross margin typically lets eligible funds support several positions. This lesson simulates a single isolated position with no other positions and no automatic funding.
Check the actual account and contract terms for allocation, automatic margin additions, eligible collateral, negative balances, and handling of funds after liquidation. The margin requirement alone cannot tell you the maximum loss across products.This trading platform describes how it isolates margin for a position. Its terms apply to that platform’s products.
Each example starts with an entry price of 100 yuan and starting equity of 1,000 yuan. Choose the opening notional exposure and then move the price. Choosing a multiple here changes the opening quantity.
Position size
Unrealized P&L
Current equity
Equity change
Current notional
Current leverage
The calculator excludes trade fees, funding payments, and other cash flows. None of these price and position settings reach the teaching maintenance margin threshold. This is a snapshot. The next section follows a full path. Amounts display two decimal places, and calculations use the unrounded values.
In the default example, the price falls 5% and equity in the 2× long falls 10%. At that point notional is 1,900, equity is 900, and effective leverage is about 2.11×. The quantity stays the same, but the equity in the denominator falls.
Switch to a short and replay the same price decline. P&L turns positive. Leverage magnifies the effect of price moves on equity, so you gain more when the price moves in your favor and lose more when it moves against you.
Compare three independent accounts, each with 1,000 yuan in starting funds and an entry price of 100 yuan. Each takes a long position. The spot account buys 10 units. The two perpetual accounts take exposure to 20 and 50 units respectively and each allocate all 1,000 yuan.
A real perpetual contract may use a mark price for valuation and liquidation triggers. The mark is a risk reference calculated under the product’s rules and can differ from the last trade. This exercise uses one price path for valuation, triggers, and simulated fills to isolate the funding constraint. An actual fill can differ from the trigger price because of gaps, fees, and margin tiers.Binance explains the difference between the mark price and the liquidation process.
The dashed gray line shows the whole path. The solid line shows how far the demo has advanced. This path is predefined for the exercise.
Current notional and maintenance requirements use the position size still open. After an exit, the position goes to zero and the remaining equity stays in cash.
Call the price P. Equity for a 50-unit long = 1,000 + 50 × (P − 100). Maintenance margin = 50 × P × 5%. Setting them equal gives 47.5 × P = 4,000, so P = 84.210526…
At the theoretical threshold, about 210.53 yuan of equity remains. The simulation assumes an immediate exit at that price, leaving it in cash. Real liquidations can leave a different amount. The trigger uses the unrounded price. Under the same assumptions, the 2× account’s threshold would be about 52.63, below both simulated paths.
When you reach the end, change the path to “Rise straight away.” Both paths start with the same position and end at the same price. On the path with a drop, the 5× position closes before the recovery. In the demo, a price rebound leaves that account in cash.
Hold a fixed-size linear long while the price falls 4%. Calculate the unrealized result. Assume no funding constraints trigger, and there are no fees or other cash flows. Use these fixed inputs independently of the lab above.
Use a linear perpetual long on fictional Token A with 20 units, an entry price of 100, and 1,000 of starting equity isolated for the position. Use this lesson’s margin rules. Add data, order, exit, and cost terms. Flag anything you still need to verify.
A hypothetical long position in a linear perpetual contract holds 20 units at an entry price of 100 with initial equity of 1,000. Initial margin is 20% of entry notional. Maintenance margin at entry is 5% of current notional. Ignore fees.
Complete the questions below before trying the optional writing exercise. Use the fixed inputs here, even if you changed the experiment above. Enter numbers in the units shown and keep at least two decimal places where needed. Follow the specified precision for tables. You can check one answer at a time or all answers together.
Save your homework to export these results. Check again after changing an answer. Optional writing and self-assessment are ungraded. Save your work before refreshing.
Check the first field for a contract long, 20 units, 2,000 yuan opening notional, 1,000 yuan equity, initial margin of 400 yuan, and maintenance margin of 100 yuan at entry. Account for margin as a requirement and keep it in equity.
The remaining fields allow different choices. Use repeatable times and conditions. Use data available at the time, then document execution and fill records. Define the voluntary exit rule and how to handle unfilled orders. Continue accounting with the actual remaining position and equity. Record fees and funding payments, and verify valuation, margin mode, and liquidation terms for the real product.
You can choose a fee for the example if you label it as an assumption. If a cost is unknown, mark it as unresolved until you can check it.
0 / 4 self-checks. Written answers are for self-review.
You now have four questions for a trade. What is the rule? What do you hold? How did orders fill? Can the account support the position? Use the trade card to see whether you can apply all four on your own.
The next stage covers return and risk. Lesson 5 uses consecutive returns and a mid-period deposit to distinguish changes in account value from investment return.