Overview
purple.trade offers on-chain perpetual futures with up to 10x leverage. Every trade settles in a single Solana transaction — no off-chain matching, no sequencer delays.Getting Started
Connect your wallet
Visit purple.trade and connect your Solana wallet (Solflare supported).
Select a market
Choose from available perpetual markets on the home page. Each market shows live price, 24h volume, and open interest.
Inverted Perpetuals
purple.trade uses an inverted perpetual model. The token being traded is the collateral — no borrowing, no synthetics.| Action | What it means |
|---|---|
| Long token | You expect the token price to go up. In the inverted engine this maps to a short position. |
| Short token | You expect the token price to go down. In the inverted engine this maps to a long position. |
Margin & Leverage
| Parameter | Value |
|---|---|
| Max leverage | 10x |
| Initial margin | 10% (1000 bps) |
| Maintenance margin | 5% (500 bps) |
| Trading fee | 0.1% (10 bps) per trade |
Atomic Crank + Trade
Every trade transaction includes an atomic KeeperCrank instruction before the trade instruction. This ensures:- The oracle price is fresh (within
max_crank_staleness_slots) - Risk engine state is up to date
- No separate keeper infrastructure is needed
EngineUnauthorized (error 0xf) — this is a freshness check, not an authorization error.
Position Management
Once a position is open, you can:- Increase: Add more collateral or increase leverage
- Decrease: Reduce position size (partial close)
- Close: Exit the entire position
- Deposit collateral: Add margin without changing position size
- Withdraw collateral: Remove excess margin (must stay above initial margin)
Real-Time Data
purple.trade’s backend provides:- Price ticks: 10-second interval oracle price updates
- OHLCV candles: 1m, 5m, 15m, 1h, 4h, 1d timeframes
- Trade detection: Automatic detection of opens, closes, increases, decreases, and liquidations
- Position sync: On-chain position data with computed PnL, margin ratio, and liquidation price
Fees
| Fee type | Rate |
|---|---|
| Trading fee | 0.1% of notional |
| Funding rate | Continuous, based on mark vs index price divergence |
| Network fee | ~0.005 SOL per transaction |