Design a Perpetual Trading DApp System

Himanshu Singh
11 min read3 days ago

Hello everyone πŸ‘‹,
My name is Himanshu Singh. I am an Engineer. After working as a front-end engineer for over two years, I started doing full-stack.

Recently, I have been reading about system design, and as I work in the Web3 domain, it would be nice if I used my learning to write about how system design can be done in the Web3 domain.

In this blog, I have used my learning to write about, how you can design a Perpetual Trading DApp.

Let’s begin!

Contents:

Introduction
- What’s perpetual
- What’s a derivative future contract
- Common trading components
β€” 1. Price Chart
β€” β€” 1.1. Mark Price
β€” β€” 1.2. Open Interest
β€” β€” 1.3. 24h Volume
β€” 2. Order Book
β€” 3. Trades
β€” 4. Tables
β€” 5. Some common terms
β€” β€” 5.1. Margin
β€” β€” 5.2. Leverage
β€” β€” 5.3. Notional Value
β€” β€” 5.4. Liquidation
β€” β€” 5.5. Maintenance margin
β€” β€” 5.6. PnL
β€” β€” 5.7. Slippage
β€” β€” 5.8. Funding rate
Deep Dive
- Tables
- Order Book
- Trade
That’s all

--

--

Himanshu Singh
Himanshu Singh

Written by Himanshu Singh

I write blogs around React JS, JavaScript, Web Dev, and Programming. Follow to read blogs around them.

No responses yet