Simpfor.fun SDK Reference
Complete TypeScript SDK for the Simpfor.fun copy trading platform. Build copy trading apps, integrate trader analytics, and manage user wallets with ease.Quick Start
InstallAuthentication
Email Authentication (Recommended)
Send Verification CodeSocial Authentication
Privy IntegrationCopy Trading
Core Operations
Create Copy TradePerformance Tracking
Get PnL HistoryTrader Discovery
Top Traders
Fetch All Top TradersTrader Analytics
Trader SnapshotWallet Management
KMS Wallet Operations
Check Wallet AvailabilityBuilder Fee Management
Get Builder Fee InfoCross-Chain Deposits
Bridge Operations
Get/Create Bridge AddressUser Management
Watchlist
Manage Watched TradersReferrals
Get Referral InfoCoupons & Rewards
Get User CouponsSolana Integration
Get Solana Address StatusTypeScript Types
Core Interfaces
Request Types
Error Handling
Error Structure
All API errors follow this format:Common Error Codes
- 400: Bad Request - Invalid parameters
- 401: Unauthorized - Authentication required
- 404: Not Found - Resource doesn’t exist
- 429: Rate Limited - Too many requests
- 500: Server Error - Internal server issue
Error Handling Pattern
Rate Limits
- Authentication: 10 requests/minute
- Trading Operations: 60 requests/minute
- Analytics: 100 requests/minute
- General Endpoints: 200 requests/minute
Configuration
Environment Setup
Best Practices
Connection Management- Reuse SDK instances
- Implement proper error handling
- Use retry logic with exponential backoff
- Cache trader data locally when possible
- Use pagination for large datasets
- Implement reasonable polling intervals
- Never expose access tokens client-side
- Use environment variables for configuration
- Validate inputs before API calls
Support
Documentation CommunityReady to build? Check out our Integration Examples for complete implementation guides.