π What is a CFD?
A Contract for Difference (CFD) lets you trade the price movement of an asset without owning it.
If the price moves in your direction, you collect the difference. If it moves against you, you pay it.
You never hold the underlying asset β only the open contract.
π€ Why not just buy the asset?β
| Buying the asset | Trading a CFD |
|---|---|
| You must own the full value | You only post a fraction as collateral (margin) |
| You can only profit if it goes up | You can profit whether it goes up or down |
| Selling requires finding a buyer and settling | The contract closes automatically at the agreed terms |
| Buying currency requires a brokerage account | Available to anyone with a compatible wallet |
CFDs were invented in London in the early 1990s to allow institutional traders to hedge large equity positions without paying stamp duty on physical share purchases. They became available to retail traders in the late 1990s and are now widely used globally β particularly for Forex, indices, and commodities.
π Long and short β with a worked exampleβ
Every CFD position is either long (you profit if the price goes up) or short (you profit if the price goes down).
Example: EUR/USD CFDβ
Current price: 1.0852
:::info Parameters for this example 1 mini lot (10,000 units) Β· 50:1 leverage β notional value $10,000 Β· required margin $200. Pip value for EUR/USD at this lot size = $1.00 per pip. :::
Scenario A β You go LONG (you think EUR will rise)
- You deposit $200 as collateral (margin) β this controls $10,000 notional at 50:1
- You open a long position on EUR/USD at 1.0852
- The price rises to 1.0902 β a 50-pip move
- You close the position and collect the difference
Entry price: 1.0852
Exit price: 1.0902
Difference: +50 pips = +0.0050
Position size: $10,000 (notional)
Profit: 0.0050 Γ 10,000 = +$50
Scenario B β You go SHORT (you think EUR will fall)
- You deposit $200 as collateral
- You open a short position on EUR/USD at 1.0852
- The price falls to 1.0802 β a 50-pip move in your favor
- You close the position and collect the difference
Entry price: 1.0852
Exit price: 1.0802
Difference: β50 pips (price fell, but you are short) = +$50 profit
If in Scenario B the price had risen to 1.0902 instead, you would have lost $50.
β οΈ Leverage β the double-edged swordβ
CFDs are almost always traded with leverage. This means you can control a position many times larger than your collateral.
Leverage: 10:1
Collateral: $200
Position: $2,000 (notional)
If price moves +1%: profit = $20 (10% return on your $200)
If price moves -1%: loss = $20 (10% loss on your $200)
If price moves -10%: loss = $200 (entire collateral wiped)
Higher leverage multiplies both gains and losses proportionally. Position sizing and stop-losses are the primary tools for managing this.
:::warning Risk disclosure
CFDs are complex instruments. A significant percentage of retail accounts lose money when trading CFDs. Understand the risks fully before trading. The European Securities and Markets Authority (ESMA) requires CFD providers to display this warning prominently.
Source: ESMA CFD guidelines
:::
Try it β interactive leverage calculatorβ
Use the calculator below to see the real dollar impact of leverage on any EUR/USD position. Change the direction to "Against me" to understand the downside:
Illustrative only β EUR/USD major pair, pip = 0.0001. Actual P&L depends on pair, execution price, and any swap fees.
π Margin calls β what happens when you are wrongβ
Every leveraged position requires margin β collateral that backs the trade. As the price moves against you, your margin shrinks. Here is what happens at each stage:
The margin call sequenceβ
Worked example β EUR/USD, 50:1 leverage, $200 margin (1 mini lot = $10,000 notional):
:::note Illustrative thresholds The margin levels below (80%, 50%, 0%) are used for illustration only. HyperFX's actual warning and liquidation thresholds are set by the protocol and may differ. Always check the platform's risk settings before trading. :::
| Event | EUR/USD price | Position P&L | Remaining margin |
|---|---|---|---|
| Trade opened | 1.0852 | $0 | $200 |
| Market moves -20 pips | 1.0832 | -$20 | $180 |
| Market moves -80 pips | 1.0772 | -$80 | $120 |
| Warning level (illustrative) | 1.0692 | -$160 | $40 (20%) |
| Liquidation (illustrative) | 1.0652 | -$200 | $0 |
At liquidation, the position is closed by the protocol at the best available price. You do not owe more than your collateral β on HyperFX, your maximum loss is always bounded by the margin you posted.
:::info No negative balance on HyperFX
Unlike some traditional CFD brokers that can generate negative balances (where you owe the broker money beyond your deposit), HyperFX's smart contract architecture enforces a hard stop at zero. Your wallet is never at risk for more than your deposited margin.
:::
π CFD vs futures vs options β the comparisonβ
All three instruments let you gain exposure to price direction without owning the asset. Here is how they differ:
| Property | CFD | Futures | Options |
|---|---|---|---|
| Expiry date | None (or rollover) | Fixed settlement date | Fixed expiry date |
| Own the asset | Never | Must settle at expiry | Never (unless exercised) |
| Max loss | Your margin | Unlimited (for shorts) | Only premium paid |
| Leverage | High (broker sets) | Fixed contract size | Limited by premium cost |
| Complexity | Low-medium | Medium | High |
| Lot size | Flexible | Fixed contract | Flexible (within strikes) |
| Settlement | Cash only | Cash or physical | Cash or physical |
| Who uses it | Retail traders, hedgers | Institutions, commercial | Institutions, advanced retail |
| Available on HyperFX | β Yes | β No | β No |
Why HyperFX uses CFDs: CFDs offer the most flexibility for retail Forex traders β no expiry means you hold a position as long as you need, lot sizes are adjustable, and cash settlement is straightforward. The protocol settles everything in USDT.
π Rollover fees β the cost of holding overnightβ
Every CFD position that is held past the daily rollover time (typically 5pm New York time) incurs a swap fee β also called a "rollover" or "overnight financing" charge.
Why it exists: A Forex position is effectively borrowing one currency to buy another. The swap fee reflects the interest rate differential between the two currencies.
The formula:
Daily swap fee = Notional value Γ (Rate differential / 360) Γ Direction factor
Example β Long EUR/USD:
Assume EUR overnight rate = 3.75%, USD overnight rate = 5.25%
Rate differential = 3.75% - 5.25% = -1.50% (you pay because you are long the lower-rate currency)
Daily fee on $10,000 notional = $10,000 Γ 1.50% / 360 = ~$0.42 per day
For a $100,000 (standard lot) position = ~$4.17 per day
| Direction | When you pay | When you receive |
|---|---|---|
| Long EUR/USD | EUR rate < USD rate (currently) | EUR rate > USD rate |
| Short EUR/USD | USD rate > EUR rate (currently) | USD rate < EUR rate |
| Long AUD/USD | AUD rate < USD rate | AUD rate > USD rate |
:::tip On HyperFX
Rollover fees on HyperFX are calculated on-chain using oracle-fed interest rate data. They are transparent, auditable, and distributed to the liquidity pool β no hidden charges.
:::
π‘οΈ Risk controls β tools to protect your positionβ
Professional traders do not simply open a position and hope. They use risk control orders to limit downside and lock in gains automatically.
Stop-lossβ
A stop-loss is a price level at which your position closes automatically if the market moves against you.
Entry: EUR/USD long at 1.0852
Stop-loss set at: 1.0832 (20 pips below entry)
Maximum loss: 20 pips Γ $10/pip (standard lot) = $200
Once the stop-loss is hit, the position closes immediately, limiting your loss to the pre-defined amount.
Take-profitβ
A take-profit is a target price at which your position closes automatically with a profit.
Entry: EUR/USD long at 1.0852
Take-profit set at: 1.0902 (50 pips above entry)
Expected profit: 50 pips Γ $10/pip = $500
Risk/reward ratioβ
Professional traders think in terms of risk/reward ratio β how much they risk versus how much they stand to gain.
| Setup | Stop-loss | Take-profit | Risk/reward |
|---|---|---|---|
| Conservative | 20 pips | 40 pips | 1:2 |
| Moderate | 30 pips | 60 pips | 1:2 |
| Aggressive | 50 pips | 50 pips | 1:1 (break even ratio) |
A ratio of 1:2 means you need to be right only 34% of the time to be profitable over many trades β risk management matters more than win rate.
π’ How traditional CFD brokers operateβ
In traditional finance, to trade a CFD you need:
- A regulated broker account (KYC verification, sometimes weeks to approve)
- To deposit funds into the broker's bank account (they hold your money)
- To trust the broker's price feed (their internal "price" may differ from the real market)
- To wait 3β7 days for withdrawals to reach your bank
The broker is typically the market maker β meaning they take the other side of your trade. If you profit, they lose. This creates a conflict of interest: some brokers have been caught manipulating prices, widening spreads, or delaying execution against client interests.
:::info What changes with HyperFX?
On HyperFX, your CFD position is opened against other traders via a Central Limit Order Book (CLOB) β the same matching mechanism used by professional exchanges. There is no broker holding your money, no conflict of interest, and no opaque price feed. Every price comes from a public on-chain oracle, and your funds remain in a smart contract that only you can authorize withdrawals from.
:::
π Live order book β how CFDs match on HyperFXβ
Below is a simulation of what the order book looks like for an EUR/USD CFD on HyperFX. Buyers submit bid prices; sellers submit ask prices. When they overlap, the trade executes automatically on-chain:
The "MATCHING" indicator shows active trade matching happening in real time. The spread (0.5 pip in this example) is automatically collected as a fee and distributed to liquidity providers.
π Go deeper β study resourcesβ
π Official guidelines & definitionsβ
| Resource | Description |
|---|---|
| FCA β CFDs explained | UK Financial Conduct Authority guide for retail investors |
| ESMA β CFD decision | European regulator's product intervention measures |
| Investopedia β CFD | Comprehensive beginner explanation |
π₯ Educational videos (English)β
| Video | Channel | Duration |
|---|---|---|
| What is a CFD? | IG Group | 4 min |
| CFD Trading for Beginners | Trade Nation | 10 min |
| How CFD Trading Works | Investopedia | 5 min |
π Reading guidesβ
| Resource | Description |
|---|---|
| Investopedia β Long Position | What it means to be long an asset |
| Investopedia β Short Selling | What it means to be short an asset |
| Investopedia β Leverage | How leverage works in financial markets |
β‘οΈ What's next?β
- What is HyperFX? β β How HyperFX implements CFDs on-chain.
- Traditional Forex vs HyperFX β β How trading with a broker differs from trading with a smart contract.