Revenue Sharing
Earn Revenue from Every Trade
The LiquidSwap API isn't just about integrating swap functionality—it's about building a sustainable business. Every swap routed through your application can generate revenue for you.
🚀 Why Developers Love Our Revenue Model
✅ Earn up to 1% on every swap your users make ✅ Keep 97.5% of all fees collected (we keep just 2.5%) ✅ Automatic payments sent directly to your wallet ✅ Bonus revenue from positive slippage capture ✅ No setup fees - start earning immediately
How It Works
1. Set Your Fee
Add two parameters to your API calls:
feeBps
: Your fee percentage in basis points (100 = 1%, max 100)feeRecipient
: Your wallet address to receive payments
2. Collect Automatically
Fees are automatically deducted from the swap output and sent to your wallet. No manual collection needed.
3. Keep Most Revenue
You keep 97.5% of all fees collected. LiquidSwap keeps just 2.5%.
Quick Start Example
# Basic swap with 0.1% revenue sharing
curl "https://api.liqd.ag/v2/route?tokenIn=0x5555555555555555555555555555555555555555&tokenOut=0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb&amountIn=100&feeBps=10&feeRecipient=YOUR_WALLET_ADDRESS"
That's it! Every swap now generates revenue for you.
Revenue Streams
1. Base Fee Revenue
Your Fee: Set between 0.01% - 1% (
feeBps
1-100)Your Share: Keep 97.5% of collected fees
Payment: Automatic, immediate payment to your wallet
2. Positive Slippage Capture
When users get better prices than expected, we capture 50% of that extra profit:
With Fee Recipient: You and LiquidSwap split the captured amount 50/50
Without Fee Recipient: LiquidSwap keeps all captured amount
3. Volume Incentives
Higher Volume = Better Terms: Contact us for volume discounts
Preferred Partner Status: Special rates for high-volume integrators
Custom Arrangements: Negotiate better terms based on your needs
Perfect For
Trading Applications
dApps: Monetize your trading volume
Portfolio Tools: Earn from rebalancing features
DEX Aggregators: Add revenue to your existing platform
Development Tools
Trading Bots: High-frequency trading with built-in monetization
API Wrappers: Add value to your trading libraries
SaaS Platforms: Recurring revenue from user trading
Financial Services
Mobile Wallets: Generate revenue from swap features
DeFi Protocols: Monetize liquidity optimization
Investment Platforms: Earn from automated rebalancing
Revenue Optimization Tips
🎯 Starting Strategy
Begin with 0.1% (
feeBps=10
) to test integrationMonitor user behavior - ensure fees don't impact usage
Gradually optimize based on volume and user feedback
📈 Scaling Strategy
Volume Discounts: Higher volume = better revenue share terms
Feature Bundling: Combine swaps with other premium features
User Segmentation: Different fee structures for different user types
💡 Advanced Tactics
Positive Slippage: Extra revenue when users get better prices
LIQD Staking: Earn additional rewards by staking LIQD tokens
Partnership Programs: Special arrangements for strategic integrators
Real Examples
Trading dApp
// 0.25% fee on all swaps
const response = await fetch(`https://api.liqd.ag/v2/route?` +
`tokenIn=${tokenIn}&tokenOut=${tokenOut}&amountIn=${amount}&` +
`feeBps=25&feeRecipient=${YOUR_WALLET}`);
Portfolio Rebalancing
// 0.5% fee on portfolio rebalancing
const response = await fetch(`https://api.liqd.ag/v2/route?` +
`tokenIn=${fromToken}&tokenOut=${toToken}&amountIn=${amount}&` +
`feeBps=50&feeRecipient=${YOUR_WALLET}`);
High-Volume Trading Bot
// 0.1% fee for high-frequency trading
const response = await fetch(`https://api.liqd.ag/v2/route?` +
`tokenIn=${tokenIn}&tokenOut=${tokenOut}&amountIn=${amount}&` +
`feeBps=10&feeRecipient=${YOUR_WALLET}`);
Technical Implementation
API Integration
All LiquidSwap APIs support revenue sharing:
Route Finding: Core trading functionality
Smart Contract Integration: Direct on-chain execution
Find Pools: Liquidity analysis with fee potential
Fee Parameters
feeBps
number
Fee percentage in basis points (10 = 0.1%)
No
feeRecipient
address
Your wallet address for payments
Required if feeBps
> 0
Revenue Calculation
User pays: 1000 USDC
Your fee (0.1%): 1 USDC
You receive: 0.975 USDC (97.5% of fee)
LiquidSwap keeps: 0.025 USDC (2.5% of fee)
User gets: 999 USDC worth of tokens
Getting Started
1. Quick Test
Start with a simple integration using our Route Finding API:
curl "https://api.liqd.ag/v2/route?tokenIn=TOKEN_A&tokenOut=TOKEN_B&amountIn=100&feeBps=10&feeRecipient=YOUR_WALLET"
2. Full Integration
Follow our Smart Contract Integration guide to implement complete trading functionality.
3. Scale Up
Contact us for volume discounts and partnership opportunities once you're generating consistent revenue.
FAQ
How quickly do I receive payments?
Payments are sent immediately with each swap transaction. No waiting periods or minimum thresholds.
What's the minimum fee I can charge?
The minimum fee is 0.01% (1 basis point). The maximum is 1% (100 basis points).
Can I change my fee percentage?
Yes, you can adjust fees per API call. This allows for dynamic pricing based on user segments or market conditions.
Do I need to handle tax reporting?
Revenue sharing fees are regular cryptocurrency transactions. You're responsible for tax reporting in your jurisdiction.
What if a user complains about fees?
Fees are transparent and disclosed. Many successful integrators clearly communicate the value they provide alongside the fee structure.
Next Steps
Ready to start earning? Choose your integration path:
🚀 Quick Start: Route Finding API
🔧 Full Integration: Smart Contract Guide
📊 Analytics: API Overview
Questions? Contact us for personalized integration support and volume discount negotiations.
Last updated