Overview
The Trading SDK provides comprehensive access to on-chain trading data, statistics, and leaderboards. Track DEX activity, analyze trading patterns, and build trader reputation systems.Get Trading Stats
Retrieve comprehensive trading statistics for a wallet:Parameters
string
required
Ethereum address to query
object
Optional query parameters
Returns
string
Wallet address
number
Total number of trades executed
string
Total trading volume in USD
number
Number of unique tokens traded
number
Number of unique DEXs used
number
Percentage of profitable trades (0-1)
Get Trading History
Fetch detailed trading history with pagination:Parameters
string
required
Ethereum address to query
object
Query options
Get Trading Leaderboard
View top traders globally or filtered by specific criteria:Parameters
object
Leaderboard options
Get Token Trading Stats
Analyze trading activity for a specific token:Get DEX Statistics
View trading statistics per DEX:Advanced Examples
Build a Trading Dashboard
Track Trading Performance
Filter Profitable Trades
Compare Traders
Monitor Real-Time Trading
Calculate Trading Score
Error Handling
TypeScript Types
Rate Limits
Trading endpoints have the following rate limits:getStats: 100 requests/minutegetHistory: 60 requests/minutegetLeaderboard: 20 requests/minute
Next Steps
Trust Layer SDK
Work with attestations and trust
ZK Proofs SDK
Generate privacy-preserving proofs
Trading Use Cases
See trading integration examples
API Reference
Explore the Trading API