How CLOB DEX Perpetual Connectors Work
Decentralized perpetual exchanges bring derivatives trading on-chain:On-Chain Leverage
Trade perpetual contracts with leverage while maintaining custody of your assets
Transparent Settlement
All positions, liquidations, and funding rates are publicly verifiable on-chain
Non-Custodial Margin
Your margin and collateral remain in your wallet, controlled by smart contracts
Permissionless Access
Trade without KYC, geographical restrictions, or account approval
Key Features
- Decentralized Leverage
- On-Chain Funding
- Self-Custody
Access leveraged trading without custody risk:
- Leverage typically 5-50x (varies by exchange)
- Smart contract-managed margin
- Transparent liquidation logic
- No withdrawal restrictions
Connection Requirements
Prepare trading wallet
Set up a dedicated wallet for perpetual trading:
- Generate new wallet for trading only
- Fund with collateral tokens (USDC, USDT, etc.)
- Ensure sufficient native tokens for gas
Configure blockchain connection
Set up RPC endpoint for the DEX’s network:
- Choose reliable RPC provider
- Consider latency for liquidation protection
- Configure backup endpoints
Exchange Sponsors
These decentralized perpetual exchanges actively support Hummingbot:Derive Perpetual
Derive Perpetual
Connector ID:
derive_perpetualHigh-performance perpetual DEX on Lyra chain.Features:- On-chain perpetual order book
- Sub-second trade execution
- Multiple collateral types
- Up to 50x leverage
- Low gas fees on L2
- Integrated spot and perps
dYdX v4
dYdX v4
Connector ID:
dydx_v4_perpetualLeading decentralized perpetual exchange on dedicated chain.Features:- Fully decentralized L1 blockchain
- Professional trading interface
- Deep liquidity
- Up to 20x leverage
- Zero gas fees
- Fast finality (1-2 seconds)
- Cross-margined positions
Hyperliquid Perpetual
Hyperliquid Perpetual
Connector ID:
hyperliquid_perpetualNative perpetual DEX with on-chain order book.Features:- Purpose-built L1 for derivatives
- 100+ perpetual markets
- Up to 50x leverage
- Zero gas for makers
- Native oracle integration
- Sub-second execution
- Vault strategies
Other Supported Exchanges
The following CLOB DEX perpetual exchanges are maintained through governance:Injective Helix Perpetual
Connector ID:
injective_v2_perpetualFully decentralized perpetual exchange on Injective.Features:- Layer-1 blockchain optimized for DeFi
- Zero gas fees for trading
- Instant trade finality
- Cross-chain collateral
- MEV-resistant architecture
- Up to 20x leverage
Supported Features
CLOB DEX Perpetual connectors support advanced derivatives features:| Feature | Support |
|---|---|
| Limit orders | Yes |
| Market orders | Yes |
| Leverage adjustment | Yes |
| Position tracking | Yes |
| Funding rate data | Yes |
| Liquidation price | Yes |
| Cross margin | Yes (exchange dependent) |
| Isolated margin | Limited |
| Stop-loss orders | Some exchanges |
| Reduce-only orders | Yes |
| Gas estimation | Yes |
Leverage limits and margin modes vary by exchange. Most DEX perpetuals use cross-margin by default.
Understanding On-Chain Liquidations
Liquidations on DEX perpetuals differ from CEX:Gas Fees and Performance
Gas costs affect perpetual trading profitability:- Layer 1 DEXs
- Layer 2 DEXs
High-performance custom blockchains:Examples: dYdX Chain, Hyperliquid, InjectiveAdvantages:
- Zero or very low gas fees
- Fast finality (1-3 seconds)
- Optimized for trading
- No congestion issues
- Smaller ecosystems
- Bridge dependency
- Less battle-tested security
Funding Rates on DEX Perpetuals
Funding mechanics are transparent and on-chain:On-Chain Funding
- Calculated by smart contracts using oracle prices
- Typically settled every 8 hours
- Payments automatically debited/credited to positions
- Historical rates publicly queryable
- No exchange discretion or manipulation
Security Considerations
Configuration Example
Example configuration for a CLOB DEX perpetual connector:Comparison: CEX vs DEX Perpetuals
| Aspect | CEX Perpetual | DEX Perpetual |
|---|---|---|
| Custody | Custodial | Non-custodial |
| Leverage | Up to 125x | Up to 50x |
| Liquidity | Very high | Growing |
| Gas fees | None | Yes (varies) |
| Speed | Fastest | Fast (1-3s) |
| KYC | Required | Not required |
| Transparency | Limited | Full |
| Smart contract risk | No | Yes |
Next Steps
CLOB DEX Spot
Explore decentralized spot connectors
CLOB CEX Perpetual
Compare with centralized perpetuals
Wallet Setup
Configure wallets for DEX trading
Risk Management
Learn risk management strategies