<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Punit Pawar</title>
    <description>The latest articles on DEV Community by Punit Pawar (@punit363).</description>
    <link>https://dev.to/punit363</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4261495%2F069e6ff7-745e-404f-ab23-b9662173a2b7.png</url>
      <title>DEV Community: Punit Pawar</title>
      <link>https://dev.to/punit363</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/punit363"/>
    <language>en</language>
    <item>
      <title>What your money does in a perpetual futures exchange?</title>
      <dc:creator>Punit Pawar</dc:creator>
      <pubDate>Mon, 23 Nov 2026 23:06:40 +0000</pubDate>
      <link>https://dev.to/punit363/what-your-money-does-in-a-perpetual-futures-exchange-294</link>
      <guid>https://dev.to/punit363/what-your-money-does-in-a-perpetual-futures-exchange-294</guid>
      <description>&lt;p&gt;Imagine you think Bitcoin’s price will rise. You could buy Bitcoin and sell it later. Or you could trade a perpetual future, often called a perp. It is a type of contract whose value follows Bitcoin’s price. You can trade on the price change without owning the Bitcoin itself.&lt;/p&gt;

&lt;p&gt;A perp has no fixed end date. You can keep your trade open until you close it, as long as you have enough money backing it. That sounds simple, but the exchange has to keep track of your order, your gains or losses, regular funding payments, and the risk that you might lose more than you put up.&lt;/p&gt;

&lt;p&gt;Let’s follow one example from start to finish. The numbers are simplified, and each exchange has its own rules.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwzwawluynj9anhdratte.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwzwawluynj9anhdratte.png" alt=" " width="800" height="526"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Bring in your cash and compare your height
Before trading, you need money in your account to cover possible losses. Exchanges call this collateral. In our example, it is USDT, a cryptocurrency designed to stay close to the US dollar.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You also choose which way you think the price will move:&lt;/p&gt;

&lt;p&gt;Long means you expect the price to rise. You gain if it rises and lose if it falls.&lt;br&gt;
Short means you expect the price to fall. You gain if it falls and lose if it rises.&lt;br&gt;
Suppose Bitcoin is trading at $100,000. You choose a long equal to 0.01 BTC. The value of that trade is $1,000, although you are not buying 0.01 BTC to keep in a wallet.&lt;/p&gt;

&lt;p&gt;With 10× leverage, you may need to set aside about $100 to open this $1,000 trade, plus enough to cover fees. That set-aside money is called margin. Your gain or loss is still calculated on the full $1,000 trade, even though you put up only about $100.&lt;/p&gt;

&lt;p&gt;Say Bitcoin falls 5% after you open the long. Your $1,000 position loses about $50. If you had paid the full $1,000 to buy the Bitcoin, that would be a 5% loss on the money you spent. With 10× leverage, the same $50 loss is half of the $100 you set aside. A 5% rise would produce about a $50 gain before fees and funding. Leverage makes the percentage change in your own money much bigger in either direction. The exchange may close a losing position before all its margin is gone; we will see why in step 4.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Money can by anything (just not immediately)
Clicking Buy does not create a trade by itself. First, you send an order: a request to buy or sell a certain amount. The exchange looks for another order it can match with yours.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A limit order says, “Buy only at this price or better.” If no one is ready to sell at that price, the order can wait in the order book, the exchange’s list of waiting buy and sell orders. A market order tries to trade right away against the orders already there, so the final price can differ from the one you just saw on screen.&lt;/p&gt;

&lt;p&gt;Suppose your buy order is for 0.01 BTC and someone has offered to sell 0.02 BTC at a price you accept. Your order can fill completely, while half of their order remains. A fill is the part of an order that actually traded. Only a fill opens or changes a position; an order still waiting in the book does not.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Call your finance guru coz the real sh** is now
Here is the key difference from a spot trade: after a spot fill, money and Bitcoin are exchanged. After a perp fill, you do not receive Bitcoin. Instead, you hold an open position — an active contract tied to Bitcoin’s price. It stays open, gaining or losing value as the price moves, until you close it or the exchange liquidates it. The exchange records its direction, size, and entry price and keeps money aside to cover possible losses.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Say your 0.01 BTC long opened when Bitcoin was $100,000. If the price rises to $101,000, your position gains about $10: the $1,000 price change multiplied by 0.01 BTC. If the price falls to $99,000, it loses about $10 instead. Trading fees and funding payments can change the final amount.&lt;/p&gt;

&lt;p&gt;That $10 move is small compared with the $1,000 trade, but it is 10% of the roughly $100 you set aside. This is why leverage can make both gains and losses feel much larger.&lt;/p&gt;

&lt;p&gt;While the position is open, its gain or loss is unrealized: it can change again with the price. When you close some or all of it, the gain or loss on that closed part becomes realized.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Looser
The $100 you set aside to open the trade is your initial margin. As your position loses money, less is left to cover further losses. The exchange requires a smaller minimum, called maintenance margin, to keep the position open.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The exchange checks your remaining value, or equity, against that minimum using a reference called the mark price (explained next). If equity falls too low, the exchange takes over and tries to close your position by trading against orders in the market. This is liquidation. It can happen before you lose the entire $100, because closing the position may cost money too. The price the exchange actually gets determines your final loss.&lt;/p&gt;

&lt;p&gt;If a fast price move leaves a loss that your margin cannot cover, some exchanges use an insurance fund to absorb it. If that is not enough, they may use auto-deleveraging (ADL): the exchange automatically reduces or closes some profitable positions on the opposite side of the trade, even though those traders did not choose to exit. ADL is a last-resort safeguard, not what happens in every liquidation; every exchange has their own rules with this.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;So you are saying someone else tells how much it costs
The price of your latest trade is not the only price the exchange watches:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Last traded price is the price of the most recent perp trade on this exchange.&lt;br&gt;
Index price is a reference built from places where people buy and sell the actual asset, known as spot markets.&lt;br&gt;
Mark price is the price the exchange uses to estimate gains, losses, and liquidation risk. Exchanges calculate it in different ways.&lt;br&gt;
Suppose Bitcoin trades near $100,000 on several spot markets. On one perp exchange, there are very few sell orders near that price. Someone places a large buy order, buying through those offers until the latest perp trade happens at $101,000. A trader could even try to cause this spike on purpose. If the exchange used that single trade to decide whose positions to liquidate, a brief spike could wipe out short traders even though the wider market barely moved.&lt;/p&gt;

&lt;p&gt;That is why exchanges use an index based on spot markets and a mark price for risk checks. The mark price is calculated differently on different exchanges, but it does not simply copy the latest perp trade. It helps keep one unusual trade from deciding whether your position survives, although it cannot guarantee protection against manipulation.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Gotta pay to those loosers (the rich tax)
If buyers keep paying more for the perp, it might trade around $101,000 while Bitcoin trades around $100,000 on spot markets. That does not mean Bitcoin has one perfect, knowable “true value.” It means the perp is expensive compared with a spot-market reference. Because a perp never expires, there is no end date that forces those prices together.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;To counter this exchange use Funding that gives traders a reason to narrow that gap. When the perp stays above its reference price, longs usually pay shorts at regular intervals. That makes holding a long more expensive and holding a short more attractive, which can encourage selling and pull the perp price down. When the perp stays below its reference, shorts usually pay longs, encouraging the opposite. The exchange calculates a funding rate to decide the payment. It nudges traders; it does not directly set the perp price or guarantee the gap will disappear. You can pay or receive funding without placing another order.&lt;/p&gt;

&lt;p&gt;For example, 0.01% of your $1,000 position is $0.10 for one funding period. The amount depends on the exchange’s rate and rules. Repeated payments can add up if you keep a position open for a long time.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Chicken Out
If you want to leave before liquidation, you place an order in the opposite direction. To close a long, you sell. To close a short, you buy. When that order fills, the exchange calculates your final gain or loss, accounts for fees and funding already paid or received, and releases whatever collateral remains under its rules.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That is the full journey: put up money, place an order, wait for a match, watch the position, make or receive funding payments, and eventually close it — or have the exchange close it if the risk becomes too high.&lt;/p&gt;

</description>
      <category>bitcoin</category>
      <category>crypto</category>
      <category>cryptocurrency</category>
      <category>web3</category>
    </item>
  </channel>
</rss>
