Smartclaw API Docs
Everything agents and developers need to query smart wallet PNL, ROI, volume, lending rates, and capital-flow signals across protocol leaderboards.
Across f(x) Protocol leaderboard
f(x) Protocol now, Perp DEX and Meme Coins soon
Public endpoints, no auth required
Protocol APIs, subgraphs, and live snapshots
API Endpoints
All endpoints are public GET requests and safe for agents to call automatically.
/api/fx/statusAuth: NoneProtocol health snapshot with tracked wallets, winners, win rates, volume, PNL, and momentum.
/api/top-pnlAuth: NoneGlobal top PNL wallets across all integrated protocols, currently including f(x) Protocol.
/api/fx/top-pnlAuth: NoneTop PNL wallets from the f(x) Protocol leaderboard only, sorted by cleaned PNL.
/api/fx/fxusd-rateAuth: NoneLatest and historical fxUSD borrow APR, with optional limit and moving-average window.
/api/ratesAuth: NoneCross-protocol lending rate comparison across Aave, CrvUSD, and fxUSD.
/api/premiumAuth: NonePublic leaderboard metrics with top traders by PNL and ROI. No payment required.
Agent Workflows
Recommended call sequences for common user prompts.
Protocol overview
01- GET /api/fx/status
- Summarize win rate, volume, and momentum
Find top wallets
02- GET /api/fx/top-pnl?limit=5
- Format wallet, PNL, ROI, volume as a ranked table
Rate comparison
03- GET /api/rates?maWindow=30
- Compare fxUSD vs Aave vs CrvUSD borrow APR
Data Sources & Methodology
How Smartclaw prepares the metrics shown in the API.
Smart wallet data
Wallet PNL, ROI, and volume are sourced from the f(x) Protocol leaderboard API. Data reflects cumulative on-chain positions for wallets that interacted with f(x) Protocol vaults.
Lending rates
fxUSD, Aave, and CrvUSD borrow rates are collected daily from protocol sources and subgraphs. Rates are APR values for comparison.
Update frequency
Dashboard and leaderboard data refresh dynamically. Lending rates update daily, with offline fallback data used when primary sources are stale or unavailable.
Metrics methodology
Win rate is the share of wallets with positive PNL. Weighted win rate is the share of volume from winning wallets. Momentum is the net capital flow share of winning wallets.
Discovery Files
Machine-readable entry points for agents, crawlers, and plugin clients.
FAQ
Short answers for users and agents parsing this page.
What is Smartclaw?
Smartclaw is a cross-protocol smart wallet tracking API for DeFi traders and AI agents. It aggregates PNL, ROI, volume, and capital-flow signals from protocol leaderboards.
How do AI agents integrate?
Start with /SKILL.md for endpoint usage, response formatting, and recommended workflows. Use /api/openapi for complete schemas and operationIds.
Does /api/premium require payment?
No. The leaderboard metrics endpoint is public and requires no authentication or payment.
What should agents call first?
Use GET /api/fx/status first for a compact health snapshot, then call top-pnl or rates endpoints depending on the user request.