{"x402Version":2,"service":{"id":"coinstats-public-api","name":"CoinStats Public API","description":"Crypto market data, coin details, tickers, news, market sentiment insights, wallet balances + DeFi positions across 30+ chains, and shared portfolio reads. Pay-per-request in USDC, no API key required.","homepage":"https://coinstats.app","docs":"https://docs.coinstats.app/ai-agents/x402","openapi":"https://x402.coinstats.app/openapi.json","categories":["data","crypto","market","defi","news","wallet","portfolio"]},"payments":{"protocol":"x402","protocolVersion":2,"network":"eip155:8453","currency":"USDC","payTo":"0x0750a9e669C37FE1A1847E4B8f9e16F07c16162f","facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"},"endpoints":[{"method":"GET","pattern":"/coins","url":"https://x402.coinstats.app/coins","description":"CoinStats list of all cryptocurrencies with live market data — price, volume, market cap, rank, % changes","pricing":{"amount":"0.001","currency":"USDC"},"discovery":{"input":{"type":"http","method":"GET","queryParams":{"page":"1","limit":"100","coinIds":"bitcoin,ethereum,solana","currency":"USD","name":"bitcoin","symbol":"BTC","contractAddresses":"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48,0xdac17f958d2ee523a2206206994597c13d831ec7","blockchains":"ethereum,solana,binance-smart-chain","includeRiskScore":"true","categories":"defi,memecoins,gaming","sortBy":"rank","sortDir":"asc","marketCap~greaterThan":"1000000000","marketCap~equals":"500000000","marketCap~lessThan":"100000000","fullyDilutedValuation~greaterThan":"2000000000","fullyDilutedValuation~equals":"1500000000","fullyDilutedValuation~lessThan":"500000000","volume~greaterThan":"10000000","volume~equals":"5000000","volume~lessThan":"1000000","priceChange1h~greaterThan":"5","priceChange1h~equals":"0","priceChange1h~lessThan":"-2","priceChange1d~greaterThan":"10","priceChange1d~equals":"0","priceChange1d~lessThan":"-5","priceChange7d~greaterThan":"20","priceChange7d~equals":"0","priceChange7d~lessThan":"-10","priceChange1m~greaterThan":"30","priceChange1m~equals":"0","priceChange1m~lessThan":"-20","availableSupply~greaterThan":"1000000","availableSupply~equals":"21000000","availableSupply~lessThan":"100000","totalSupply~greaterThan":"10000000","totalSupply~equals":"1000000000","totalSupply~lessThan":"500000","rank~greaterThan":"100","rank~equals":"10","rank~lessThan":"50","price~greaterThan":"100","price~equals":"1","price~lessThan":"0.01","riskScore~greaterThan":"70","riskScore~equals":"50","riskScore~lessThan":"30"}},"output":{"type":"json","example":{"meta":{"page":1,"limit":20,"itemCount":150,"pageCount":8,"hasPreviousPage":false,"hasNextPage":true},"result":[{"id":"ethereum","icon":"https://static.coinstats.app/coins/ethereum_32.png","name":"Ethereum","symbol":"ETH","rank":2,"price":2680.45,"priceBtc":0.062,"volume":8520000000,"marketCap":322100000000,"availableSupply":120280000,"totalSupply":120280000,"fullyDilutedValuation":322100000000,"priceChange1h":-0.25,"priceChange1d":1.85,"priceChange1w":3.42,"priceChange1m":7.21,"websiteUrl":"https://ethereum.org","redditUrl":"https://reddit.com/r/ethereum","twitterUrl":"https://twitter.com/ethereum","contractAddress":null,"contractAddresses":[],"decimals":18,"explorers":["https://etherscan.io"],"liquidityScore":88.7,"volatilityScore":38.9,"marketCapScore":92.1,"riskScore":18.5,"avgChange":2.14}]}}}},{"method":"GET","pattern":"/wallet/defi","url":"https://x402.coinstats.app/wallet/defi","description":"CoinStats DeFi positions for a wallet — staked, lent, borrowed, LP balances across protocols (Aave, Lido, Uniswap, Curve, etc.)","pricing":{"amount":"0.04","currency":"USDC"},"discovery":{"input":{"type":"http","method":"GET","queryParams":{"address":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045","connectionId":"all","blockchain":"ethereum"}},"output":{"type":"json","example":{"totalAssets":null,"protocols":[{"id":"pancakeswap-amm-v3","name":"PancakeSwap","logo":"https://icons.llama.fi/pancakeswap-amm-v3.jpg","url":"https://pancakeswap.finance/swap","totalValue":null,"blockchain":null,"chain":"solana","investments":[null]}]}}}},{"method":"GET","pattern":"/coins/{coinId}","url":"https://x402.coinstats.app/coins/{coinId}","description":"CoinStats detailed data for a single cryptocurrency — price, market cap, supply, rank, links","pricing":{"amount":"0.001","currency":"USDC"},"discovery":{"input":{"type":"http","method":"GET","queryParams":{"currency":"USD"}},"output":{"type":"json","example":{"id":"bitcoin","icon":"https://static.coinstats.app/coins/1650455588819.png","name":"Bitcoin","symbol":"BTC","rank":1,"price":43250.75,"priceBtc":1,"volume":15420000000}}}},{"method":"GET","pattern":"/wallet/balance","url":"https://x402.coinstats.app/wallet/balance","description":"CoinStats live balance for a wallet address on a single blockchain — coins and token amounts with USD values","pricing":{"amount":"0.004","currency":"USDC"},"discovery":{"input":{"type":"http","method":"GET","queryParams":{"address":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045","connectionId":"all","blockchain":"ethereum"}},"output":{"type":"json","example":[{"chain":"ethereum","coinId":"ethereum","amount":1.5,"name":"Ethereum","symbol":"ETH","price":2000.5,"priceBtc":0.05,"imgUrl":"https://static.coinstats.app/coins/1650455629727.png"}]}}},{"method":"GET","pattern":"/coins/price/avg","url":"https://x402.coinstats.app/coins/price/avg","description":"CoinStats historical average price for a cryptocurrency at a given timestamp","pricing":{"amount":"0.001","currency":"USDC"},"discovery":{"input":{"type":"http","method":"GET","queryParams":{"coinId":"bitcoin","timestamp":"1700000000"}},"output":{"type":"json","example":{"USD":45123.45,"BTC":1,"ETH":15.234}}}},{"method":"GET","pattern":"/coins/price/exchange","url":"https://x402.coinstats.app/coins/price/exchange","description":"CoinStats historical price on a specific exchange (Binance, Coinbase, Kraken, etc.) at a timestamp","pricing":{"amount":"0.001","currency":"USDC"},"discovery":{"input":{"type":"http","method":"GET","queryParams":{"exchange":"binance","from":"bitcoin","to":"usd","timestamp":"1700000000"}},"output":{"type":"json","example":{"price":15.7349}}}},{"method":"GET","pattern":"/coins/{coinId}/charts","url":"https://x402.coinstats.app/coins/{coinId}/charts","description":"CoinStats price chart for a single cryptocurrency — time series over 24h/1w/1m/1y/all","pricing":{"amount":"0.001","currency":"USDC"},"discovery":{"input":{"type":"http","method":"GET","queryParams":{"period":"24h"}},"output":{"type":"json","example":[[0]]}}},{"method":"GET","pattern":"/markets","url":"https://x402.coinstats.app/markets","description":"CoinStats global cryptocurrency market data — total market cap, 24h volume, BTC dominance, % changes","pricing":{"amount":"0.001","currency":"USDC"},"discovery":{"input":{"type":"http","method":"GET"},"output":{"type":"json","example":{"marketCap":4026535943695,"volume":98765432101,"btcDominance":42.5,"marketCapChange":-2.34,"volumeChange":5.67,"btcDominanceChange":0.89}}}},{"method":"GET","pattern":"/tickers/exchanges","url":"https://x402.coinstats.app/tickers/exchanges","description":"CoinStats list of supported cryptocurrency exchanges with metadata","pricing":{"amount":"0.001","currency":"USDC"},"discovery":{"input":{"type":"http","method":"GET"},"output":{"type":"json","example":[{"id":"binance","name":"Binance","icon":"https://static.coinstats.app/exchanges/binance.png","rank":1,"change24h":5.25,"url":"https://www.binance.com","volume24h":12500000000,"volume7d":85000000000}]}}},{"method":"GET","pattern":"/tickers/markets","url":"https://x402.coinstats.app/tickers/markets","description":"CoinStats ticker market data — live prices across exchanges for a trading pair","pricing":{"amount":"0.001","currency":"USDC"},"discovery":{"input":{"type":"http","method":"GET","queryParams":{"page":"1","limit":"100","exchange":"binance","fromCoin":"BTC","toCoin":"USDT","coinId":"bitcoin","onlyVerified":"False"}},"output":{"type":"json","example":[{"meta":{"page":1,"limit":20,"itemCount":57072,"pageCount":2854,"hasPreviousPage":false,"hasNextPage":true},"result":{"_created_at":"2023-04-13T07:34:24.442Z","_updated_at":"2025-08-27T10:56:44.779Z","exchange":"BinanceFutures","from":"BTC","to":"USD","pair":"BTC/USD","price":111014.4,"pairPrice":111014.4,"volume":1967687277427.2,"pairVolume":17724613}}]}}},{"method":"GET","pattern":"/fiats","url":"https://x402.coinstats.app/fiats","description":"CoinStats list of supported fiat currencies (USD, EUR, GBP, JPY, etc.) with conversion metadata","pricing":{"amount":"0.001","currency":"USDC"},"discovery":{"input":{"type":"http","method":"GET"},"output":{"type":"json","example":[{"name":"USD","rate":1,"symbol":"$","imageUrl":"https://static.coinstats.app/flags/USD_r.png"}]}}},{"method":"GET","pattern":"/currencies","url":"https://x402.coinstats.app/currencies","description":"CoinStats live currency exchange rates for supported fiat pairs","pricing":{"amount":"0.001","currency":"USDC"},"discovery":{"input":{"type":"http","method":"GET"},"output":{"type":"json","example":{"result":{"USD":1,"AUD":1.5454754068661494,"BGN":1.6841890498764196,"BRL":5.439300703523657,"CAD":1.385009899367217,"CHF":0.8062450125737061,"CNY":7.152897128536489,"CZK":21.155291093157576}}}}},{"method":"GET","pattern":"/news/sources","url":"https://x402.coinstats.app/news/sources","description":"CoinStats list of crypto news sources aggregated across the industry","pricing":{"amount":"0.001","currency":"USDC"},"discovery":{"input":{"type":"http","method":"GET"},"output":{"type":"json","example":[{"sourcename":"Zycrypto","coinid":"bitcoin","logo":"zycrypto.png","sourceImg":"https://static.coinstats.app/news/source/zycrypto_source.png","weburl":"https://zycrypto.com","feedurl":"https://zycrypto.com/feed/","_created_at":"2018-04-25T13:06:47.850Z","_updated_at":"2025-03-21T13:11:07.112Z"}]}}},{"method":"GET","pattern":"/news/type/{type}","url":"https://x402.coinstats.app/news/type/{type}","description":"CoinStats crypto news filtered by topic (handpicked, trending, latest, bullish, bearish)","pricing":{"amount":"0.001","currency":"USDC"},"discovery":{"input":{"type":"http","method":"GET","queryParams":{"page":"1","limit":"100"}},"output":{"type":"json","example":[{"id":"376f390df50a1d44cb5593c9bff6faafabed18ee90e0d4d737d3b6d3eea50c80","searchKeyWords":["xrp","XRP"],"feedDate":1756204736000,"source":"CoinGape","title":"Why is XRP Price Down Even After the Ripple Lawsuit End?","isFeatured":false,"description":"coingape.com.","link":"https://coingape.com/trending/why-is-xrp-price-down-even-after-the-ripple-lawsuit-end/?utm_medium=referral&utm_source=coinstats"}]}}},{"method":"GET","pattern":"/news/{id}","url":"https://x402.coinstats.app/news/{id}","description":"CoinStats crypto news article by id — title, body, source, sentiment","pricing":{"amount":"0.001","currency":"USDC"},"discovery":{"input":{"type":"http","method":"GET"},"output":{"type":"json","example":{"id":"376f390df50a1d44cb5593c9bff6faafabed18ee90e0d4d737d3b6d3eea50c80","searchKeyWords":["xrp","XRP"],"feedDate":1756204736000,"source":"CoinGape","title":"Why is XRP Price Down Even After the Ripple Lawsuit End?","isFeatured":false,"description":"coingape.com.","link":"https://coingape.com/trending/why-is-xrp-price-down-even-after-the-ripple-lawsuit-end/?utm_medium=referral&utm_source=coinstats"}}}},{"method":"GET","pattern":"/news","url":"https://x402.coinstats.app/news","description":"CoinStats latest crypto news feed — articles on Bitcoin, Ethereum, DeFi, NFTs, regulation","pricing":{"amount":"0.001","currency":"USDC"},"discovery":{"input":{"type":"http","method":"GET","queryParams":{"page":"1","limit":"100","from":"bitcoin","to":"usd"}},"output":{"type":"json","example":{"result":[{"id":"376f390df50a1d44cb5593c9bff6faafabed18ee90e0d4d737d3b6d3eea50c80","searchKeyWords":["xrp","XRP"],"feedDate":1756204736000,"source":"CoinGape","title":"Why is XRP Price Down Even After the Ripple Lawsuit End?","isFeatured":false,"description":"coingape.com.","link":"https://coingape.com/trending/why-is-xrp-price-down-even-after-the-ripple-lawsuit-end/?utm_medium=referral&utm_source=coinstats"}]}}}},{"method":"GET","pattern":"/insights/btc-dominance","url":"https://x402.coinstats.app/insights/btc-dominance","description":"CoinStats Bitcoin market dominance percentage over time — share of total crypto market cap","pricing":{"amount":"0.001","currency":"USDC"},"discovery":{"input":{"type":"http","method":"GET","queryParams":{"type":"24h"}},"output":{"type":"json","example":{"data":[[1746441300,61.59],[1746441400,62.1],[1746441500,61.85]]}}}},{"method":"GET","pattern":"/insights/fear-and-greed/chart","url":"https://x402.coinstats.app/insights/fear-and-greed/chart","description":"CoinStats Fear & Greed Index historical chart — market sentiment over time","pricing":{"amount":"0.001","currency":"USDC"},"discovery":{"input":{"type":"http","method":"GET"},"output":{"type":"json","example":{"name":"Fear and Greed Index","data":[{"timestamp":"1746921600","value":75,"value_classification":"Greed"}]}}}},{"method":"GET","pattern":"/insights/fear-and-greed","url":"https://x402.coinstats.app/insights/fear-and-greed","description":"CoinStats current Fear & Greed Index — sentiment score from Extreme Fear (0) to Extreme Greed (100)","pricing":{"amount":"0.001","currency":"USDC"},"discovery":{"input":{"type":"http","method":"GET"},"output":{"type":"json","example":{"name":"Fear and Greed Index","now":null,"yesterday":null,"lastWeek":null}}}},{"method":"GET","pattern":"/insights/rainbow-chart/{coinId}","url":"https://x402.coinstats.app/insights/rainbow-chart/{coinId}","description":"CoinStats rainbow chart for BTC/ETH — logarithmic valuation bands from cycle lows to bubble highs","pricing":{"amount":"0.001","currency":"USDC"},"discovery":{"input":{"type":"http","method":"GET"},"output":{"type":"json","example":[{"price":"0.9111","time":"2010-09-30"}]}}},{"method":"GET","pattern":"/wallet/blockchains","url":"https://x402.coinstats.app/wallet/blockchains","description":"CoinStats list of supported wallet blockchains and their connectionId identifiers","pricing":{"amount":"0.001","currency":"USDC"},"discovery":{"input":{"type":"http","method":"GET"},"output":{"type":"json","example":[{"name":"BNB Smart Chain","connectionId":"binancesmartchain","chain":"binance_smart","icon":"https://static.coinstats.app/portfolio_images/binancesmartchain.png"}]}}},{"method":"GET","pattern":"/wallet/balance/many","url":"https://x402.coinstats.app/wallet/balance/many","description":"CoinStats multi-chain wallet balances — aggregate holdings across multiple wallets + blockchains in one call","pricing":{"amount":"0.004","currency":"USDC"},"discovery":{"input":{"type":"http","method":"GET","queryParams":{"address":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045","blockchain":"ethereum","wallets":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"}},"output":{"type":"json","example":[{"blockchain":"ethereum","address":"0x742d35Cc6634C0532925a3b844Bc454e4438f44e","connectionId":"ethereum","balances":[{"chain":null,"coinId":null,"amount":null,"name":null,"symbol":null,"price":null,"priceBtc":null,"imgUrl":null}]}]}}},{"method":"GET","pattern":"/wallet/status","url":"https://x402.coinstats.app/wallet/status","description":"CoinStats wallet sync status — whether CoinStats has finished indexing transactions for the given wallet","pricing":{"amount":"0.001","currency":"USDC"},"discovery":{"input":{"type":"http","method":"GET","queryParams":{"address":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045","connectionId":"all","blockchain":"ethereum"}},"output":{"type":"json","example":{"status":"synced"}}}},{"method":"GET","pattern":"/wallet/transactions","url":"https://x402.coinstats.app/wallet/transactions","description":"CoinStats wallet transaction history — token transfers, swaps, buys, sells for a wallet address","pricing":{"amount":"0.003","currency":"USDC"},"discovery":{"input":{"type":"http","method":"GET","queryParams":{"page":"1","limit":"100","from":"bitcoin","to":"usd","currency":"USD","types":"","address":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045","connectionId":"all","blockchain":"ethereum","txId":"0xc969639a5c08179c32326b5d9e8bb73f34beeb5566b7e7a6a411d38ee4c77ba4","coinId":"bitcoin","wallets":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"}},"output":{"type":"json","example":{"meta":{"page":1,"limit":10},"result":[{"type":"Sent","date":"2025-06-07T11:58:11.000Z","mainContent":{"coinIcons":["https://static.coinstats.app/coins/1650455629727.png"],"coinAssets":[]},"coinData":{"count":-0.00636637,"symbol":"ETH","currentValue":29.21596436513665},"profitLoss":{"profit":-13.414468590167441,"profitPercent":-84.44241338814263,"currentValue":29.21596436513665},"transactions":[{"action":"Sent","items":[{"id":"publicApi_0_0x3f1A9B2c5E4C7d9F8E23bC19A8A6c77B10e62E5dGROUP436a0bddwithdraw","count":-0.00636637,"totalWorth":15.88593699768782,"coin":{"id":"ethereum","name":"Ethereum","symbol":"ETH","icon":"https://static.coinstats.app/coins/1650455629727.png"}}]}],"fee":{"coin":{"id":"ethereum","name":"Ethereum","symbol":"ETH","icon":"https://static.coinstats.app/coins/1650455629727.png"},"count":0.000033840249219,"totalWorth":0.08444122271861178},"hash":{"id":"0xc969639a5c08179c32326b5d9e8bb73f34beeb5566b7e7a6a411d38ee4c77ba4","explorerUrl":"https://etherscan.io/tx/0xc969639a5c08179c32326b5d9e8bb73f34beeb5566b7e7a6a411d38ee4c77ba4"}}]}}}},{"method":"GET","pattern":"/wallet/charts","url":"https://x402.coinstats.app/wallet/charts","description":"CoinStats portfolio value charts across multiple wallets — aggregated historical balance over time","pricing":{"amount":"0.004","currency":"USDC"},"discovery":{"input":{"type":"http","method":"GET","queryParams":{"type":"24h","wallets":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045","aggregated":"true"}},"output":{"type":"json","example":[{"data":[[1735038000000,8.3034,0.00008833,0.00244788],[1735041600000,8.3345,0.0000883,0.00244324]],"walletAddress":"0x1234567890abcdef1234567890abcdef12345678","connectionId":"base-wallet","blockchain":"base","message":"An error occurred while fetching data"}]}}},{"method":"GET","pattern":"/wallet/chart","url":"https://x402.coinstats.app/wallet/chart","description":"CoinStats portfolio value chart for a single wallet — historical USD value with PnL","pricing":{"amount":"0.004","currency":"USDC"},"discovery":{"input":{"type":"http","method":"GET","queryParams":{"type":"24h","address":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045","connectionId":"all","blockchain":"ethereum"}},"output":{"type":"json","example":{"result":[[1735038000000,8.3034,0.00008833,0.00244788],[1735041600000,8.3345,0.0000883,0.00244324]]}}}},{"method":"GET","pattern":"/exchange/support","url":"https://x402.coinstats.app/exchange/support","description":"CoinStats list of supported cryptocurrency exchanges for portfolio connection (Binance, Coinbase, Kraken, Bybit, OKX, etc.)","pricing":{"amount":"0.001","currency":"USDC"},"discovery":{"input":{"type":"http","method":"GET"},"output":{"type":"json","example":[{"connectionId":"binance","name":"Binance","icon":"https://static.coinstats.app/portfolio_images/binance_dark.png","connectionFields":[{"name":"API Key","key":"apiKey"},{"name":"API Secret","key":"apiSecret"}]}]}}},{"method":"GET","pattern":"/portfolio/snapshot/items","url":"https://x402.coinstats.app/portfolio/snapshot/items","description":"CoinStats portfolio snapshot — historical coin balances over time for a shared portfolio. Provide sharetoken header from a Degen-plan CoinStats user","pricing":{"amount":"0.05","currency":"USDC"},"discovery":{"input":{"type":"http","method":"GET","queryParams":{"page":"1","limit":"100","portfolioId":"abc123def456","from":"bitcoin","to":"usd","coinIds":"bitcoin,ethereum,solana"},"headerFields":{"sharetoken":"eyJhbGciOi... (obtain from CoinStats portfolio -> Share)","passcode":"optional-portfolio-passcode"}},"output":{"type":"json","example":{"result":[{"date":"2025-08-29T10:00:00.000Z","coinBalances":[null],"totalBalance":74.137019959,"totalBalanceChange":-0.43391738,"totalBalancePercentChange":-0.58188537}]}}}},{"method":"GET","pattern":"/portfolio/value","url":"https://x402.coinstats.app/portfolio/value","description":"CoinStats shared portfolio total value and PnL — total value, DeFi value, unrealized + realized profit/loss. Requires sharetoken header","pricing":{"amount":"0.001","currency":"USDC"},"discovery":{"input":{"type":"http","method":"GET","queryParams":{"currency":"USD","portfolioId":"abc123def456"},"headerFields":{"sharetoken":"eyJhbGciOi... (obtain from CoinStats portfolio -> Share)","passcode":"optional-portfolio-passcode"}},"output":{"type":"json","example":{"totalValue":12500.75,"defiValue":2500.25,"totalCost":10000.5,"unrealizedProfitLoss":1250.75,"unrealizedProfitLossPercent":12.5,"realizedProfitLoss":500.25,"realizedProfitLossPercent":5,"allTimeProfitLoss":1751}}}},{"method":"GET","pattern":"/portfolio/coins","url":"https://x402.coinstats.app/portfolio/coins","description":"CoinStats shared portfolio holdings — all coins with current value, PnL, performance metrics. Requires sharetoken header","pricing":{"amount":"0.001","currency":"USDC"},"discovery":{"input":{"type":"http","method":"GET","queryParams":{"page":"1","limit":"100","includeRiskScore":"true","portfolioId":"abc123def456"},"headerFields":{"sharetoken":"eyJhbGciOi... (obtain from CoinStats portfolio -> Share)","passcode":"optional-portfolio-passcode"}},"output":{"type":"json","example":{"result":[{"count":44.4987,"coin":null,"price":null,"profit":null,"averageBuy":null,"averageSell":null,"profitPercent":null,"liquidityScore":94.44676177373067}]}}}},{"method":"GET","pattern":"/portfolio/chart","url":"https://x402.coinstats.app/portfolio/chart","description":"CoinStats shared portfolio value chart — historical USD value over 24h/1w/1m/1y. Requires sharetoken header","pricing":{"amount":"0.001","currency":"USDC"},"discovery":{"input":{"type":"http","method":"GET","queryParams":{"type":"24h","portfolioId":"abc123def456"},"headerFields":{"sharetoken":"eyJhbGciOi... (obtain from CoinStats portfolio -> Share)","passcode":"optional-portfolio-passcode"}},"output":{"type":"json","example":{"result":[[1755864000000,297711.24614580005,2.65026183,69.53175117],[1755864000000,297711.24614580005,2.65026183,69.53175117]]}}}},{"method":"GET","pattern":"/portfolio/transactions","url":"https://x402.coinstats.app/portfolio/transactions","description":"CoinStats shared portfolio transaction history — all buys, sells, transfers with timestamps and prices. Requires sharetoken header","pricing":{"amount":"0.001","currency":"USDC"},"discovery":{"input":{"type":"http","method":"GET","queryParams":{"page":"1","limit":"100","currency":"USD","coinId":"bitcoin","portfolioId":"abc123def456"},"headerFields":{"sharetoken":"eyJhbGciOi... (obtain from CoinStats portfolio -> Share)","passcode":"optional-portfolio-passcode"}},"output":{"type":"json","example":{"data":[{"transactionType":"Roll In","date":"2025-08-28T08:35:50.384Z","coinData":null,"profitLoss":null,"fee":null,"transfers":[null],"portfolioInfo":null,"note":null}],"meta":null}}}},{"method":"GET","pattern":"/portfolio/defi","url":"https://x402.coinstats.app/portfolio/defi","description":"CoinStats shared portfolio DeFi positions — staking, lending, LP pools, yield farming across protocols. Requires sharetoken header","pricing":{"amount":"0.04","currency":"USDC"},"discovery":{"input":{"type":"http","method":"GET","queryParams":{"portfolioId":"abc123def456"},"headerFields":{"sharetoken":"eyJhbGciOi... (obtain from CoinStats portfolio -> Share)","passcode":"optional-portfolio-passcode"}},"output":{"type":"json","example":{"totalAssets":null,"protocols":[{"id":"pancakeswap-amm-v3","name":"PancakeSwap","logo":"https://icons.llama.fi/pancakeswap-amm-v3.jpg","url":"https://pancakeswap.finance/swap","totalValue":null,"blockchain":null,"chain":"solana","investments":[null]}]}}}}]}