APX Finance
  • πŸš€What is APX Finance?
  • πŸŒ™Brand Logo & Guidelines
  • Welcome
    • πŸ“„$APX Token & Contracts
      • ⚑Allocation
      • πŸ”₯Token Burn
      • πŸ’²Tax
    • πŸ’ŽALP Liquidity Pool
      • πŸ’‘How to buy ALP?
      • πŸ’‘How to stake/unstake?
      • πŸ’‘How to sell?
      • πŸ’‘Fees for buying and selling ALP
      • ‼️Risk
    • ⛓️Trading on V2
      • ❓How does it work?
      • ⬇️How to interact directly with the contract
      • 🀝Powered by Pyth Oracle and Chainlink
      • 🐸Degen Trading Mode
        • πŸ’°Dynamic close fee for Degen Mode
      • 🎰V2 Fees & Slippage
      • πŸ’’MAD perpetual contracts
        • πŸ’’MADBTCUSD
          • Index Details
        • πŸ’’MADETHUSD
          • Index Details
        • πŸ’’MADCAKEUSD
          • Index Details
      • 😎Dumb Mode
        • How to place orders
      • πŸ“ƒDEGEN Inscriptions Airdrop
      • πŸ“ˆForex
      • πŸ‘₯APX V2 Referral
      • πŸ“–APX Testnet Walk through [Inactive]
      • πŸ’‘FAQ
        • πŸ’‘Connect wallet
        • πŸ’‘Opening a position
        • πŸ’‘How to place stop orders?
        • πŸ’‘Position management
        • πŸ’‘One click close all position feature
        • πŸ’‘Order Types
      • πŸ“ΉVideo Tutorials (V2)
    • πŸ‘‹Trading on V1
      • πŸ“‘Pre-Launch Markets
        • BLAST Pre-Launch Futures
      • πŸ’°Wallet Connection
      • πŸ’‘How to start trading on APX V1?
        • πŸ’ΈDeposit & Withdrawal
        • πŸͺœMargin Mode & Leverage
        • ⬆️Position Mode
        • πŸ’»Order Types
          • TP/SL orders (Strategy Order)
          • Trailing Stop Order
        • πŸ›‘Closing Positions
        • πŸ“ˆGrid Trading
          • πŸ‘ΎSet-up Your Grid Trading Strategy
          • πŸ‘ΎFutures Grid Trading Auto Parameters Guide
          • πŸ‘ΎLong/Short Grid Trading introduction
        • πŸ’‘Lite Mode
      • ❓FAQ
        • ❓Multi-Assets Mode
        • ❓How to Adjust the Margin Balance in Cross/Isolated Margin Modes
        • ❓How to Calculate the Cost of Opening a USDβ“ˆ-M Perpetual Futures Contract Position
        • ❓Mark Price in USDβ“ˆ-M Perpetual Futures Contracts
        • ❓Funding Rate
        • ❓Auto-Deleveraging (ADL)
        • ❓APX Futures Liquidation Protocol
        • ❓Delisting Process of A Futures Contract
        • ❓APX DEX Referral Guidelines
        • ❓How to Whitelist APX Emails?
      • πŸ“ΉVideo Tutorial (V1)
  • Features & Tutorials
    • ℹ️General
      • πŸ’‘What is Gas Fee?
      • πŸ’‘How to switch network?
      • πŸ’‘How to change language
      • πŸ’‘How to bind your social media account to receive notifications
    • πŸ–₯️All about APX Web
      • πŸ’‘How to Connect Your Wallet? (Web version)
      • πŸ’‘How to find your DEX UID? (Web)
    • ⛓️Permissionless DEX Engine
      • Features and benefits of permissionless solution
      • FAQs
    • πŸ‘ΎTrading
      • πŸ’‘How to Buy Crypto on APX DEX via BANXA
      • πŸ’‘How to check your balance (V1)
      • πŸ’‘How to use Multi-Assets Mode
      • πŸ’‘How-to Guide: Use BONUSUSD to trade crypto futures on APX V1
  • Programs
    • πŸ“žV2 ARB Incentive Season (Trading)
    • πŸ“£V2 ARB Incentive Season (Weekly Bonus, ALP Staking)
    • πŸ’°$100,000 Binance Web3 Wallet Trading Campaign Tutorial
    • πŸͺ‚Strategic Partnership with Lista DAO - Cosmic Adventure Challenge
    • πŸ“V2 Trading Rewards
    • ⛏️Retroactive Mining Rewards
  • APX DAO
    • πŸ‘¨β€πŸš€How To Participate?
    • πŸ“«DAO Staking
      • 🎫Get Voting Power
      • ⚑Staking Rewards & Repurchased Tokens
      • ⚑Trading Benefits
      • ⚑Penalty Fee
    • πŸ€Governance
      • 🌑️Temperature Check
      • 🀚Standards for raising DAO proposals
  • API
    • πŸ–±οΈCreate API
    • πŸ’ΎAPI Documentation
  • Community
    • πŸ”—Social Media & Communities
  • About Us
    • πŸ—ΊοΈRoadmap
      • 🍁2023 Roadmap
      • 🍁2022 Milestones
      • 🍁2021-2022 Roadmap
    • πŸ”–Audit Reports
    • APX Team
    • Privacy Policy
    • Terms of Use
    • Restriction
Powered by GitBook
On this page
  • Calculating the cost of opening a Limit Order:
  • Calculating the cost of opening a Market Order:
  1. Welcome
  2. Trading on V1
  3. FAQ

How to Calculate the Cost of Opening a USDβ“ˆ-M Perpetual Futures Contract Position

PreviousHow to Adjust the Margin Balance in Cross/Isolated Margin ModesNextMark Price in USDβ“ˆ-M Perpetual Futures Contracts

Last updated 1 year ago

Calculating the cost of opening a Limit Order:

1. Calculate the Initial Margin

Initial Margin

= Notional Value / Leverage Multiplier

=(49948.8*1 BTC)/20x

=2497.44

2. Calculate Open Loss

Open Loss = Number of Contracts Γ— Absolute Value {min [0, Order Direction Γ— (Mark Price β€” Order Price)]}

Direction of order: 1 for long orderοΌ›-1 for short order

  • Open Loss of long order

= Number of Contract * Absolute Value {min[0, Direction of order * (Mark price β€” Order Price)]}

= 1 * Absolute Value {min[0, 1 * (49822.1- 49948.8)]}

= 1 * Absolute Value {min[0, (-126.7)]}

= 1 * 126.7

= 126.7

Open loss occurs when you place a long order.

  • Open Loss of Short Order

= Number of Contract * Absolute Value {min[0, Direction of order * (Mark Price β€” Order Price)]}

= 1 * Absolute Value {min[0, -1 * (49822.1- 49948.8)]}

= 1 * Absolute Value {min[0, 126.7]}

= 1 * 0

= 0

Open loss does not occur when you place a Short order.

3. Calculate the cost of Opening a Position

Since there is no Open Loss when you place a Short order, the cost of opening a Short order is equal to the Initial Margin.

  • Cost of opening a Long Order

=2497.44 + 126.7

=2624.14

  • Cost of opening a Short Order =2497.44 + 0 =2497.44

Since an Open Loss occurs when you place a Long order, it costs more to place a Long order. In addition to the Initial Margin, you must also take into account the Open Loss.

Calculating the cost of opening a Market Order:

1. Calculate Estimated Entry Price

Long order estimated entry price = ask[0] * (1 + 0.05%); Short order estimated entry price = max(bid[0], mark price)

  • Estimated entry price of long order

=ask[0]*(1 + 0.05%)

=49939.9*(1 + 0.05%)

=49964.87

*[0]:Level 1 price

  • Assuming price of short order

= max(bid[0], mark price)

= max (49940, 49904.5)

= 49940

*[0]:Level 1 price

2. Calculate the Initial Margin

Initial Margin = Notional Value / Leverage Multiplier

  • Initial margin for long order

= Estimated entry price of long order * Number of Contracts / Leverage Multiplier

=49964.87 * 1 /20

=2498.2435

  • Initial margin for short order

= Estimated entry price of short order * Number of Contracts / Leverage Multiplier

=49940 * 1/20

=2497

3. Calculate the Open Loss

Open Loss = Number of Contract * Absolute Value {min[0, direction of order * (mark price β€” order price)]}

Direction of order: 1 for long orderοΌ›-1 for short order

  • Open loss for long order

= Number of Contract * Absolute Value {min[0, direction of order * (mark price β€” order price)]}

= 1 * Absolute Value {min[0, 1 * (49904.5–49964.87)]}

= 1 * Absolute Value {min[0, -60.37]}

= 1 * 60.37

= 60.37

An Open Loss occurs when you place a Long order.

  • Open loss for short order

= Number of Contract * Absolute Value {min[0, direction of order * (mark price β€” order price)]}

= 1 * Absolute Value {min[0, -1 * (49904.5–49940)]}

= 1 * Absolute Value {min[0, 35.5]}

= 1 * 0

= 0

An Open Loss does not occur when you place a Short order.

4. Calculating the cost of Opening a Position

Since Open Loss occurs when you place a Long order, it costs more to place a Long order. In addition to the Initial Margin, you must also take into account the Open Loss.

  • Cost of opening a Long Order

=2498.2435+60.37

=2558.6135

  • Cost of opening a Short Order

=2497+0

=2497

Since there is no Open Loss when you place a short order, the cost of opening a Short order is equal to the Initial Margin.

πŸ‘‹
❓
❓