DeFi API for Wallet Positions, Yield & Portfolio Data
Get any wallet’s DeFi positions across 10,000+ protocols and 120+ chains, priced in USD. Staking, lending, LP, and yield in one schema.
What a DeFi API Does
Pass a wallet address and get its DeFi positions back as JSON. Staking, lending, LP, and yield across protocols, priced in USD.
Demo data for illustration. Live responses return in ~100-200ms.
/wallet/transactionsGET/profit-lossPortfolio Analytics and P&L
Aggregate DeFi positions with token balances into one portfolio view: total value, allocation, performance, and realized and unrealized P&L.
DeFi Positions, Auto-Detected Across 10,000+ Protocols
Pass an address and positions surface automatically across 10,000+ protocols and 120+ chains. No protocol-by-protocol integration, resolved to USD values.
0x7a2…3f9Lending3.2%
ETH/USDC LP11.4%
Staking2.9%
SOL Staking6.8%
Lending3.2%
/portfolioGET/portfolio/chartsEvery Position Type, Resolved and Priced in USD
Staking, lending and borrowing, LP shares, and yield farming, each returned with principal, rewards, and current USD value from 100,000+ coins.
One DeFi API for AI Agents and MCP Clients
The CoinStats MCP server exposes wallet, DeFi, and portfolio tools to AI agents over one OAuth-protected URL.
- 1Paste the URL into your client's connector settings.
- 2Approve the consent screen in your browser.
- 3Ask your agent: “what DeFi positions does this wallet hold?”
Build Anything That Reads DeFi Positions
The Free DeFi API That Scales With You
Get an API key and make your first call in minutes. Free tier includes 20,000 credits a month, with commercial use.
DeFi API FAQ
What is a DeFi API?
A DeFi API lets you read decentralized-finance data programmatically. With CoinStats you pass a wallet address and get its DeFi positions back as JSON: staking, lending, LP, and yield across protocols, each resolved to a live USD value, without integrating each protocol yourself.
What is the difference between a DeFi positions API and a DeFi TVL API?
A positions API like CoinStats tells you what a specific wallet holds across DeFi. A TVL API reports protocol-level totals and rankings, not individual wallet positions. Use a positions API to build portfolio, tax, or dashboard features per user.
Does it execute swaps, bridges, or staking?
No. CoinStats is a DeFi data API: it reads and normalizes positions. It does not execute transactions, run swaps or bridges, or stake on your behalf. Pair it with an execution provider if you need to act on positions.
What are examples of DeFi protocols it covers?
10,000+ protocols across lending, DEX and LP, liquid staking, and yield, auto-detected per wallet. Lending and borrowing: Aave, Compound, Morpho, Spark, Venus, Benqi, JustLend. DEX and LP: Uniswap, Curve, PancakeSwap, Balancer, SushiSwap, Aerodrome, Velodrome, QuickSwap, Camelot, Orca, Raydium. Liquid staking: Lido, Rocket Pool, Jito, Marinade. Yield and vaults: Yearn, Convex, Pendle, Beefy. Plus thousands more across Ethereum and EVM chains, Solana, and 120+ networks.
Does it work with AI agents like Claude or ChatGPT?
Yes. The CoinStats MCP Server exposes wallet, DeFi, and portfolio tools over the Model Context Protocol. It works with Claude, Cursor, Claude Code, VS Code, and N8N. The same API key works for REST and MCP.
What DeFi positions can it return?
Staking, lending and borrowing, liquidity-pool (LP) shares, and yield-farming positions, each with principal, rewards owed, and current USD value, auto-detected per wallet across 10,000+ protocols.
How many DeFi protocols and chains does it cover?
10,000+ protocols across 120+ chains, including Ethereum and all major EVM chains plus Solana and other non-EVM networks, through one endpoint format.
Are DeFi positions priced in USD?
Yes. Every position is returned with a live USD value, drawn from price coverage of 100,000+ coins, so portfolio views and dashboards render without a separate pricing integration.
Can it calculate DeFi P&L?
Yes. Aggregate DeFi positions with token balances into a portfolio view with realized and unrealized P&L, calculated with average buy and sell prices, so trackers and tax tools show performance without their own accounting engine.
Does it work for Solana DeFi, not just EVM?
Yes. DeFi positions are covered across Ethereum and EVM chains, Solana, and 120+ networks in total, through one schema. One integration covers DeFi across chains.
How is the response structured?
Clean JSON over REST, with standard HTTP status codes and API-key auth. DeFi positions are pre-enriched with USD values and token metadata, so they map directly to UI components.
Is there a free DeFi API?
Yes. The CoinStats free tier includes 20,000 credits per month at 2 requests per second, no credit card required. It is the same data available on paid plans at a lower limit, enough to prototype and ship.
How does pricing work?
Credit-based. Each plan includes a monthly credit allowance and each endpoint costs credits by complexity, not a flat request cap. Start free with 20,000 credits per month and upgrade for higher limits.
Can I use it in a commercial product?
Yes. Paid plans include commercial use, and the API already powers portfolio apps, tax tools, and dashboards in production. There are no feature gates between tiers.
How do I get started?
Create a free account, generate an API key from the dashboard, and make your first DeFi positions request in minutes using the examples in the docs. The free tier is enough to build and test a full integration.