{"data":{"billing":{"currency":"USD","mode":"fixed","priceMicroUsd":"0","rounding":null,"unit":"call","unitQuantity":null},"capabilityId":"d6b5344d-efd0-4cbd-acc1-1dd90a450e1e","catalogType":"api","categories":["data","finance","crypto-defi"],"dataPlatform":"DefiLlama","dataPlatformLogoUrl":"https://api-docs.defillama.com/icons/favicon-96x96.png","dataPlatformTranslations":{"ar":"DefiLlama","ja":"DefiLlama","zh":"DefiLlama"},"dataProduct":"stablecoins","description":"Get DefiLlama Stablecoin Prices data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, configure supported query parameters and filters, and retrieve structured data including prices, dai, usdc, and usdt to analyze depeg severity, feed risk models, and cross-check supply and price, ready for production pipelines and AI agent automation.","descriptionTranslations":{"ar":"احصل على لقطات الأسعار التاريخية لجميع العملات المستقرة عبر OpenAny REST لمراقبة استقرار الربط وتحليل أحداث فك الارتباط. يعيد هذا الطلب بدون معاملات مصفوفة JSON مؤرخة تربط رموز العملات بأسعارها التاريخية بالدولار.","ja":"OpenAny REST で全ステーブルコインの過去価格スナップショットを取得し、ペグ安定性の検証や過去のデペグ事象分析に活用できます。パラメータ不要の GET で日付ごとの各銘柄 USD 価格マップを配列で返します。","zh":"通过 OpenAny REST 获取全部稳定币的历史价格记录，用于审计锚定稳定性、分析历史脱锚事件并对比不同发行方的市场定价。该无参 GET 接口返回按日期排列的 JSON 数组，将各稳定币符号映射到对应的历史美元价格。"},"effectContentHtml":"","executionMode":"sync","id":"f5efcb9b-2ab4-476f-b776-9caeea42dea0","includedContentHtml":"","inputs":[],"logoUrl":"https://api-docs.defillama.com/icons/favicon-96x96.png","method":"GET","name":"DefiLlama — Get historical prices of all stablecoins","nameTranslations":{"ar":"DefiLlama — الحصول على الأسعار التاريخية لجميع العملات المستقرة","ja":"DefiLlama — すべてのステーブルコインの過去の価格を取得","zh":"DefiLlama — 获取所有稳定币的历史价格"},"overviewHtml":"\u003ch2\u003eDefiLlama Stablecoin Prices API\u003c/h2\u003e\n\u003cp\u003eCall this parameter-free GET endpoint to retrieve a time-series array of historical stablecoin prices. Each element pairs a UNIX \u003ccode\u003edate\u003c/code\u003e with a \u003ccode\u003eprices\u003c/code\u003e dictionary keyed by stablecoin symbol.\u003c/p\u003e\n\u003ch2\u003eQuick Facts\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eFact\u003c/th\u003e\n\u003cth\u003eValue\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eAccess\u003c/td\u003e\n\u003ctd\u003eOpenAny REST\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAuthentication\u003c/td\u003e\n\u003ctd\u003eOpenAny API key in the Authorization header\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCore inputs\u003c/td\u003e\n\u003ctd\u003eGET with no required path, query or body parameters.\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003edefillama · DefiLlama — Get historical prices of all stablecoins\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eBilling\u003c/td\u003e\n\u003ctd\u003eSee the pricing area for the selected implementation and request options\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eWhat You Can Build\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eAnalyze depeg severity\u003c/strong\u003e: Measure maximum deviation from $1.00 across USDT, USDC, DAI and smaller stablecoins.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eFeed risk models\u003c/strong\u003e: Supply historical stablecoin price series to collateral haircut and liquidation models.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eCross-check supply and price\u003c/strong\u003e: Correlate depeg windows with circulating supply shifts from Stablecoin Mcap History.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003eReturned Data\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eField\u003c/th\u003e\n\u003cth\u003eMeaning\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003e[]\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eTime-series array of historical stablecoin price snapshots\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003e[].date\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eUNIX timestamp of the price snapshot\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003e[].prices\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eMap of stablecoin symbols to historical USD prices\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003e[].prices.DAI\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eHistorical USD price of DAI at that timestamp\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003e[].prices.USDC\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eHistorical USD price of USDC at that timestamp\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003e[].prices.USDT\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eHistorical USD price of USDT at that timestamp\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eQuick Start\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eSet OPENANY_API_KEY to your OpenAny API key.\u003c/li\u003e\n\u003cli\u003eReview the selected implementation and pricing, then adapt the request below to your target.\u003c/li\u003e\n\u003cli\u003eCheck the HTTP response and business result before reading optional fields.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl --request GET --get \\\n  https://api.openany.si/v1/agent-apis/defillama/stablecoinprices \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34;\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch2\u003eRequest and Response Examples\u003c/h2\u003e\n\u003cp\u003eThe response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://openany.si/api/v1/agent-apis/f5efcb9b-2ab4-476f-b776-9caeea42dea0\"\u003ePublished DefiLlama Stablecoin Prices API implementation contract\u003c/a\u003e.\u003c/p\u003e\n\u003ch2\u003ePricing and Billing\u003c/h2\u003e\n\u003cp\u003eThe pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service\u0026#39;s public availability does not determine OpenAny billing.\u003c/p\u003e\n\u003ch2\u003eFrequently Asked Questions\u003c/h2\u003e\n\u003ch3\u003eAre any parameters required to call this endpoint?\u003c/h3\u003e\n\u003cp\u003eNo. Send a GET request with your OpenAny API key and no query or path parameters.\u003c/p\u003e\n\u003ch3\u003eHow are stablecoin prices keyed inside each snapshot?\u003c/h3\u003e\n\u003cp\u003eEach array item has a numeric UNIX date and a prices object keyed by stablecoin symbol such as DAI, USDC and USDT.\u003c/p\u003e\n\u003ch3\u003eCan I request only one stablecoin symbol in the query?\u003c/h3\u003e\n\u003cp\u003eNo filter parameter is defined in the contract; select the desired symbol keys from each snapshot’s prices map.\u003c/p\u003e\n\u003ch3\u003eDoes this endpoint include circulating market cap?\u003c/h3\u003e\n\u003cp\u003eNo. Use the DefiLlama Stablecoin Mcap History API or Stablecoins List API for supply figures.\u003c/p\u003e\n\u003ch3\u003eHow do I check current prices for non-stablecoin tokens?\u003c/h3\u003e\n\u003cp\u003eUse the DefiLlama Current Token Prices API with {chain}:{address} identifiers.\u003c/p\u003e\n\u003ch3\u003eWhat format is the date field?\u003c/h3\u003e\n\u003cp\u003eIn the reference example, date is a numeric UNIX timestamp in seconds.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/defillama/defillama-list-all-stablecoins-along-with-their-circulating-amounts\"\u003eDefiLlama Stablecoins List API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/defillama/defillama-get-historical-mcap-sum-of-all-stablecoins\"\u003eDefiLlama Stablecoin Mcap History API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/defillama/defillama-get-historical-mcap-and-historical-chain-distribution-of-a-stablecoin\"\u003eDefiLlama Stablecoin History API\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/defillama/defillama-get-historical-prices-of-all-stablecoins?offering=f5efcb9b-2ab4-476f-b776-9caeea42dea0","providerId":"defillama","publicPath":"/v1/agent-apis/defillama/stablecoinprices","requestContentType":"none","revision":5,"samples":[{"http_status":200,"name":"Official UI example (not runtime verified)","request":{"body":null,"headers":{},"path":{},"query":{}},"response_body":[{"date":1609459200,"prices":{"DAI":1.002,"USDC":0.999,"USDT":1.001}}]}],"seoDescription":"Get DefiLlama Stablecoin Prices data via REST or MCP powered by DeFiLlama. Pay per call, no subscription. Structured JSON output with one OpenAny API key.","updatedAt":"2026-12-03T02:39:12.176Z","usageInstructionsHtml":""}}