Home / Blog / Data API

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

FAQ

What is a social trading data API?
A social trading data API connects a trader's social handle (Twitter, Telegram, Discord) to their on-chain wallets and returns verified performance metrics, live holdings, and full trade history. It aggregates data from real blockchain transactions across multiple chains, so developers can build leaderboards, copy-trading tools, or portfolio trackers without scraping wallets manually. The API resolves identity once, then serves PnL, win rate, token balances, and historical trades through standard REST and WebSocket endpoints.
How does a social trading API verify trader performance?
It reads transactions directly from the blockchain. Every buy, sell, swap, and transfer is recorded on-chain with timestamps, token amounts, and prices. The API indexes these events, calculates realized and unrealized PnL using actual execution prices, and attributes them to the correct wallet. Because the data comes from immutable ledger entries, not user input, performance metrics cannot be edited, deleted, or inflated. This makes track records auditable and trustworthy for followers or investors.
What's the difference between verified and self-reported trading data?
Self-reported data relies on traders manually entering their trades or uploading screenshots, which can be cherry-picked, edited, or fabricated. Verified data is pulled directly from blockchain transactions, so every trade is timestamped, priced, and recorded by the network itself. A trader cannot hide losses or inflate wins because the API reads the same public ledger anyone can audit. This distinction matters for copy-trading platforms, where users risk real capital based on someone else's track record.
Can a social trading API track trades across multiple blockchains?
Yes. Modern social trading APIs index transactions on both Solana and EVM chains (Ethereum, Base, BSC, Arbitrum, Polygon, Avalanche). A single trader often holds wallets on multiple networks, so the API resolves their handle to all linked addresses and aggregates trades into one unified view. This means you get total PnL, combined holdings, and cross-chain trade history through one endpoint, instead of querying six different block explorers and reconciling the data yourself.
What endpoints does a typical social trading API provide?
Core endpoints include GET /leaderboard for ranked traders by PnL or volume, GET /users/{handle} for profile and wallet links, GET /trades for full transaction history with filters, GET /balances for live token holdings, GET /token/{address}/holders to see who owns a specific asset, and WSS /ws for realtime trade notifications. Each endpoint returns structured JSON with timestamps, amounts, prices, and wallet addresses. Rate limits and authentication depend on your plan tier.
How do developers use social trading APIs?
Developers build leaderboards that rank traders by verified PnL, copy-trading bots that mirror top performers' buys and sells in realtime, portfolio dashboards that show live holdings and historical performance, and alpha discovery tools that alert users when influential wallets enter new positions. The API handles wallet resolution, transaction indexing, and PnL calculation, so developers focus on UI and logic instead of parsing raw blockchain data. Integration typically takes a few hours with REST or WebSocket clients.
Is there a free tier for social trading data APIs?
Yes. Most social trading APIs offer a keyless free tier with rate limits, suitable for testing or small projects. For example, fomoapi.io provides limited access without requiring a key. Paid plans start around $99/month for higher rate limits and full endpoint access, scaling to $399 or $1,200/month for production apps with heavy traffic. Free tiers let you prototype and validate your use case before committing to a subscription.
How does a social trading API resolve trader handles to wallets?
It maintains a database that maps social handles (Twitter usernames, Telegram IDs, Discord tags) to verified wallet addresses on Solana and EVM chains. This mapping is built through on-chain identity protocols, public wallet disclosures, and verified links in trader profiles. When you query a handle, the API returns all associated addresses, so you can fetch trades and balances across every chain the trader uses. This eliminates manual wallet hunting and ensures you track the right accounts.
What chains do social trading APIs support?
Leading APIs support Solana for meme coins and high-frequency trading, plus EVM chains like Ethereum (DeFi and NFTs), Base (consumer apps), BSC (low-fee trading), Arbitrum and Polygon (L2 scaling), and Avalanche (subnets). This covers the majority of on-chain trading volume. Some APIs index six or more chains, aggregating data into a single view so you do not need separate integrations for each network. Chain support expands as new ecosystems gain traction.
How accurate is on-chain trading data compared to exchange data?
On-chain data is perfectly accurate for DEX trades because every swap is a signed transaction with exact token amounts, prices, and timestamps recorded by validators. Centralized exchange data is not on-chain, so it cannot be verified the same way. CEX APIs show trades within that platform, but you must trust the exchange's reporting. On-chain APIs only see wallet-to-wallet and wallet-to-contract activity, so they miss CEX trades entirely unless the trader moves funds on-chain.