豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Latest commit

 

History

History
55 lines (28 loc) · 925 Bytes

File metadata and controls

55 lines (28 loc) · 925 Bytes

👋Check Site : www.futurespnl.com

📈Binance Futures PnL Calculator

A simple and intuitive Profit and Loss (PnL) Calculator for Binance USDT-M Futures, built with React and Ant Design (AntD).

🔧** Features**

-Supports Long and Short positions

-Input parameters:

Entry Price

Exit Price

Position Size (in USDT or contracts)

Leverage

Trading Fee Rate (customizable, default 0.04%)

Wallet Balance (optional, for rough liquidation price)

-Outputs:

✅ Gross PnL

✅ Trading Fees (entry + exit)

✅ Net PnL (after fees)

✅ ROE (%)

✅ Liquidation Price (approximate)

💰 Calculation Details

-Gross PnL = (Exit - Entry) × Size × Leverage

-Fees = (Entry + Exit Notional) × Fee Rate

-Net PnL = Gross PnL − Total Fees

-ROE (%) = Net PnL / Initial Margin × 100

-Liquidation Price: estimated using leverage only (simplified)

🚀 Tech Stack

⚛️ React

🎨 Ant Design

📏 JavaScript (ES6+)