Data API
What Is a Social Trading Data API? How It Works in 2025
A social trading data API resolves social trader handles to their on-chain wallets and serves verified performance metrics, live holdings, and trade history through programmatic endpoints. Unlike self-reported platforms, it reads directly from blockchain transactions, making trader track records tamper-proof and trustworthy for building trading tools, bots, and analytics.
A social trading data API connects your application to verified on-chain trading records, letting you query trader performance, holdings, and transaction history by social handle or wallet address. Instead of scraping profiles or trusting self-reported stats, you pull real blockchain data through standard REST and WebSocket endpoints. In 2025, these APIs power leaderboards, copy-trading platforms, portfolio trackers, and analytics dashboards that need trustworthy trader metrics.
What Is a Social Trading Data API?
A social trading data API resolves social media handles (Twitter, Telegram, Discord usernames) to blockchain wallet addresses, then serves the full trading history and current positions tied to those wallets. The API aggregates data across multiple chains, typically Solana and EVM networks like Ethereum, Base, and BSC, so you get a unified view of a trader's activity without querying six different RPC nodes yourself.
The core value is identity resolution plus verification. A trader posts their handle, the API maps it to their wallets, and you retrieve trades that actually settled on-chain. No manual wallet linking, no honor system. The API continuously indexes blocks, decodes swap transactions, calculates profit and loss, and exposes that data through endpoints you can call with a single API key.
This is different from a pure wallet tracking API or a generic crypto trading API. Wallet trackers give you raw transaction logs but no social identity layer. Generic trading APIs might offer market data or exchange integration but not verified track records of individual traders. A social trading data API sits at the intersection: it knows who the trader is and what they have actually traded.
How Social Trading Data APIs Work
The pipeline starts with identity. A trader registers their social handle and proves wallet ownership, usually by signing a message with their private key. The API stores that mapping in a database. When you query /v2/users/{handle}, the backend looks up the associated wallet addresses and returns them along with metadata like follower count, verified status, and registration date.
Next, the indexer. The API runs indexing nodes for each supported blockchain. These nodes listen to new blocks, filter for DEX swap events (Uniswap, Raydium, Jupiter, PancakeSwap), and decode the transaction data to extract token pairs, amounts, prices, and timestamps. The indexer writes this to a time-series database optimized for trade queries.
Profit and loss calculation happens in real time. When a trader buys token X at price P1 and later sells at price P2, the API computes realized PnL. For open positions, it fetches current market prices from oracles or aggregators and calculates unrealized PnL. Aggregate stats like 7-day return, win rate, and total volume roll up from individual trade records.
The API layer exposes this data through REST endpoints and a WebSocket feed. REST is for batch queries: fetch a leaderboard, pull a trader's full history, get current holdings. WebSocket is for live updates: subscribe to a trader's feed and receive a message every time they open or close a position. Both use JSON and standard HTTP auth (API key in a header).
Rate limiting and caching sit in front. Free tiers get 100 requests per hour. Paid plans scale to thousands of requests per minute. Popular queries (top 100 leaderboard, trending tokens) are cached for 60 seconds to keep latency under 200ms. Heavy aggregations (30-day PnL across all traders) are precomputed in background jobs.
Verified vs. Self-Reported Trading Data
Self-reported data is what a trader tells you. They post a screenshot of gains, claim a 300% return, or manually log trades in a spreadsheet. There is no way to verify it. They can cherry-pick winners, ignore losses, or fabricate numbers entirely. Platforms that rely on self-reported stats become popularity contests, not skill rankings.
Verified on-chain trading data is immutable. Every swap is a blockchain transaction with a timestamp, token addresses, and amounts. The API reads these directly from the chain. If a trader bought 10 SOL of a memecoin and sold it at a loss, that loss is in the data. If they made 50 trades in a week, all 50 are indexed. The track record is complete and tamper-proof.
This matters for three reasons:
- Trust: Users and investors can rely on leaderboards and performance metrics. A trader ranked #1 has provably outperformed #2, not just better marketing.
- Compliance: Regulated platforms need auditable records. On-chain data provides a cryptographic paper trail.
- Alpha: Real track records reveal actual skill. You can filter for traders with consistent returns over six months, not just one lucky week.
The tradeoff is complexity. Verifying on-chain data requires indexing infrastructure, chain-specific decoders, and price oracles. A social trading data API abstracts this away. You get verified data without running your own nodes or writing Solana transaction parsers.
Core Endpoints and Data Types
A production-grade social trading data API typically offers five endpoint categories. Here is what each one does and when you would call it.
Leaderboard: GET /v2/leaderboard/{window} returns the top traders ranked by PnL over a time window (24h, 7d, 30d, all-time). Response includes handle, total PnL, win rate, trade count, and follower count. Use this to populate a homepage or discovery feed. You can view the live trader leaderboard to see ranking logic in action.
User profile: GET /v2/users/{handle} resolves a social handle to wallet addresses and returns aggregate stats. You get Solana and EVM addresses, total realized PnL, open position value, trade count, and registration timestamp. Call this when a user searches for a trader or lands on a profile page.
Trade history: GET /trades?user={id}&limit=100 returns the full trade log for a trader. Each record includes token pair, buy/sell, amount, price, PnL, and timestamp. Pagination is cursor-based. Use this to render a transaction table or calculate custom metrics like Sharpe ratio.
Holdings: GET /v2/users/{id}/balances returns current token balances across all chains. Each token includes contract address, symbol, quantity, current price, and unrealized PnL. This powers portfolio views and position tracking.
Token holders: GET /token/{address}/holders returns a list of traders holding a specific token, sorted by position size. This is the inverse lookup: given a token, who owns it? Use it for holder analysis, whale tracking, or building a social graph around a coin.
WebSocket feed: WSS /ws is a persistent connection that streams trade events in real time. You subscribe to a trader ID or token address and receive JSON messages as trades happen. Latency is under one second from on-chain settlement to your client. Use this for live dashboards, alerts, or copy-trading execution.
Most APIs also return metadata like chain ID, DEX name, transaction hash, and gas cost. You can explore available API endpoints to see full request and response schemas.
| Endpoint | Latency | Cache TTL | Rate Limit (Free) |
|---|---|---|---|
| Leaderboard | ~150ms | 60s | 10/hour |
| User profile | ~80ms | 300s | 50/hour |
| Trade history | ~200ms | 0s | 20/hour |
| Holdings | ~120ms | 60s | 30/hour |
| Token holders | ~300ms | 300s | 10/hour |
| WebSocket | <1s | N/A | 1 connection |
Use Cases: What Developers Build With It
Copy-trading platforms: Users browse a leaderboard, pick a trader, and auto-replicate their trades. The platform calls the user profile endpoint to show stats, subscribes to the WebSocket feed for live trades, and executes matching orders through a DEX aggregator. Verified data ensures users copy real winners, not marketing.
Portfolio trackers: A mobile app lets users follow multiple traders and see aggregated holdings. The app calls the holdings endpoint for each trader every 60 seconds, merges the results, and displays a combined portfolio with live PnL. Users set alerts when a followed trader opens a position in a new token.
Analytics dashboards: A research tool queries trade history for the top 500 traders, calculates correlation matrices, and identifies tokens that high-performers are accumulating. The dashboard refreshes hourly, pulling 50,000 trade records per run. Paid API tiers handle the volume without throttling.
Social discovery: A Twitter bot monitors the leaderboard endpoint and tweets when a new trader breaks into the top 10. Another bot watches token holders and posts when a known whale buys a low-cap coin. Both run on cron jobs, calling the API every five minutes.
Risk scoring: A DeFi protocol wants to offer undercollateralized loans to proven traders. The protocol queries trade history, calculates max drawdown and volatility, and assigns a credit score. Only traders with six months of verified profitability qualify for higher limits.
Educational content: A newsletter pulls the top trader each week, fetches their trade history, and writes a breakdown of their strategy. Readers see real transactions with timestamps and PnL, not generic advice.
Implementation Example: Fetching Trader Performance
Here is a real request to pull 7-day performance for a trader. You need an API key (get one at t.me/eulatxt) and the trader's handle or user ID.
curl -X GET "https://api.fomoapi.io/v2/users/example_trader" \
-H "Authorization: Bearer YOUR_API_KEY"
Response (simplified):
{
"id": "usr_abc123",
"handle": "example_trader",
"wallets": {
"solana": "9xQeW...",
"evm": ["0x742d...", "0x8f3a..."]
},
"stats": {
"total_pnl_usd": 45320.50,
"realized_pnl_7d": 8240.00,
"unrealized_pnl": 1205.30,
"trade_count": 127,
"win_rate": 0.62,
"avg_hold_time_hours": 18.4
},
"followers": 3421,
"verified": true
}
Now fetch the last 10 trades:
curl -X GET "https://api.fomoapi.io/trades?user=usr_abc123&limit=10" \
-H "Authorization: Bearer YOUR_API_KEY"
Response:
{
"trades": [
{
"id": "trd_xyz789",
"timestamp": "2025-01-15T14:32:00Z",
"chain": "solana",
"dex": "raydium",
"type": "sell",
"token_in": "SOL",
"token_out": "BONK",
"amount_in": 2.5,
"amount_out": 1250000,
"price_usd": 0.000002,
"pnl_usd": 340.20,
"tx_hash": "5Kj3..."
}
],
"next_cursor": "cur_page2"
}
You parse the JSON, store it in your database, and render it in your UI. If you want live updates, open a WebSocket connection:
const ws = new WebSocket('wss://api.fomoapi.io/ws');
ws.onopen = () => {
ws.send(JSON.stringify({
action: 'subscribe',
user_id: 'usr_abc123',
api_key: 'YOUR_API_KEY'
}));
};
ws.onmessage = (event) => {
const trade = JSON.parse(event.data);
console.log('New trade:', trade);
};
Every time the trader makes a swap, you receive a message within one second. You can trigger notifications, update a live chart, or execute a copy trade.
What to Look for in a Social Trading Data API
Chain coverage: Does it support the chains your users trade on? Solana and EVM are table stakes. Bonus points for Base, Arbitrum, and Polygon. If the API only indexes Ethereum, you miss 80% of degen activity.
Data freshness: How long from on-chain settlement to API availability? Sub-second for WebSocket, under five minutes for REST. Stale data kills copy-trading and real-time alerts.
Identity resolution: Can it map social handles to wallets automatically, or do you have to build that yourself? Manual wallet entry is friction. Seamless handle lookup is the product.
Verified track records: Is the data pulled from real wallets, or is it self-reported? If it is self-reported, you are building on quicksand. On-chain verification is non-negotiable.
Rate limits and pricing: Free tiers are fine for prototyping. Production apps need at least 1,000 requests per hour. Check if WebSocket connections count against your quota. You can compare API pricing tiers to see what scales with your user base.
Latency and uptime: Test the endpoints. If the leaderboard takes three seconds to load, users will bounce. If the API goes down during a market dump, your alerts fail. Look for SLAs and status pages.
Documentation and support: Are there code examples in your language? Is the error handling clear? Can you email a human when something breaks? APIs with Slack communities or Discord channels win here.
Extensibility: Can you query custom time windows, filter by token, or sort by different metrics? Rigid APIs force you to pull everything and filter client-side, wasting bandwidth and compute.
Closing
A social trading data API turns blockchain transactions into actionable trader intelligence. You get verified performance, live trade feeds, and identity resolution without running your own indexer. If you are building leaderboards, copy-trading tools, or analytics dashboards, this is the fastest path from idea to production. fomoapi.io offers all the endpoints covered here (Solana and EVM, REST and WebSocket, free and paid tiers) with sub-200ms latency and full documentation at https://fomoapi.io/.
Ship on verified trader data
Both-chain wallets, real PnL, and a realtime feed. One API.
Get an API key