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

Pramodya-Alahakoon/Futures-PNL-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

👋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+)

About

💲Binance Futures PnL Calculator – A React + Ant Design tool to calculate profit/loss for USDT-M futures. Supports long/short, leverage, position size, fees, ROE, and net PnL after Binance trading fees. Clean UI with instant results and optional liquidation price estimate.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors