Overview
Swift orders are pre-signed orders that can be executed by anyone who has the signature. They enable:- Fast execution - Orders are signed off-chain and submitted by fillers
- MEV protection - Orders can specify auction parameters to protect against front-running
- Deposit trades - Users can deposit collateral and trade in a single transaction
Swift Taker
Place swift taker orders with deposit trades
Swift Maker
Fill swift orders as a maker to earn fees
Swift Taker Example
The swift taker example shows how to place swift orders that can be filled by makers.Key Features
- Subscribe to swift order feed via WebSocket
- Place taker orders with deposit collateral
- Configure auction parameters for MEV protection
- Handle order sanitization
Basic Usage
Swift Maker Example
The swift maker example demonstrates how to fill swift orders as a liquidity provider.Key Features
- Subscribe to real-time swift order feed
- Evaluate order profitability
- Fill orders to earn maker fees
- Handle both regular and deposit+trade orders
Basic Usage
Order Verification
When working with swift orders, always verify:Security Checks
- Verify the order signature is valid
- Check the order hasn’t expired
- Validate auction parameters
- Ensure sufficient collateral for deposit trades
Auction Parameters
Swift orders can specify auction parameters to protect against MEV:Next Steps
Swift Taker Details
Complete swift taker implementation
Swift Maker Details
Complete swift maker implementation
Order API
Order struct reference
Swift Subscriber
Swift order subscriber API