')"
- }
- ]
- }
- },
- "/stablecoins/stablecoinchains": {
- "get": {
- "tags": ["stablecoins"],
- "summary": "Get current mcap sum of all stablecoins on each chain",
- "responses": {
- "200": {
- "description": "Current market cap of stablecoins by chain",
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "example": "Ethereum"
- },
- "totalCirculatingUSD": {
- "type": "object",
- "description": "Circulating supply in USD, by peg type",
- "additionalProperties": {
- "type": "number"
- },
- "example": {
- "peggedUSD": 75000000000
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-codeSamples": [
- {
- "lang": "javascript",
- "label": "JavaScript SDK",
- "source": "const result = await client.stablecoins.getChains()"
- },
- {
- "lang": "python",
- "label": "Python SDK",
- "source": "result = client.stablecoins.getChains()"
- }
- ]
- }
- },
- "/stablecoins/stablecoinprices": {
- "get": {
- "tags": ["stablecoins"],
- "summary": "Get historical prices of all stablecoins",
- "responses": {
- "200": {
- "description": "Historical prices for all stablecoins",
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "date": {
- "type": "number",
- "example": 1609459200
- },
- "prices": {
- "type": "object",
- "additionalProperties": {
- "type": "number"
- },
- "example": {
- "USDT": 1.001,
- "USDC": 0.999,
- "DAI": 1.002
- }
- }
- }
- }
- }
- }
- }
+ "description": "credits left"
}
},
+ "x-api-plan-only": true,
"x-codeSamples": [
{
"lang": "javascript",
"label": "JavaScript SDK",
- "source": "const result = await client.stablecoins.getPrices()"
+ "source": "const result = await proClient.account.getUsage()"
},
{
"lang": "python",
"label": "Python SDK",
- "source": "result = client.stablecoins.getPrices()"
+ "source": "result = pro_client.account.getUsage()"
}
]
}
diff --git a/examples/web/index.html b/examples/web/index.html
index b9441ed33af..a5712a751ee 100644
--- a/examples/web/index.html
+++ b/examples/web/index.html
@@ -66,8 +66,16 @@
DefiLlama API documentation
Explore free and Pro API endpoints for DeFi data.
- Free API endpoints ·
- Pro API endpoints
+ Have an API key? Send every request to
+ https://pro-api.llama.fi/YOUR_API_KEY/…, including
+ prices, TVL, stablecoins and yields. The free hosts (api.llama.fi,
+ coins.llama.fi, stablecoins.llama.fi, yields.llama.fi) never read a
+ key and are rate limited.
+
+
+ Overview for AI agents ·
+ API endpoints with a key ·
+ Free API endpoints (no key)
diff --git a/examples/web/src/components/ApiKeyInput.vue b/examples/web/src/components/ApiKeyInput.vue
index 789d2e63f70..a0118e9f071 100644
--- a/examples/web/src/components/ApiKeyInput.vue
+++ b/examples/web/src/components/ApiKeyInput.vue
@@ -94,7 +94,7 @@ const switchToFreeApi = () => {