get_stablecoin_history
Retrieve historical market capitalization and chain distribution data for a specific stablecoin using asset ID. Ideal for analyzing stablecoin performance and blockchain usage trends.
Instructions
GET /stablecoins/stablecoin/{asset}
Get historical mcap and historical chain distribution of a stablecoin.
Parameters:
asset: stablecoin ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | Yes |
Implementation Reference
- defillama_server.py:196-206 (handler)Handler function for the 'get_stablecoin_history' tool. Decorated with @mcp.tool() for registration. Fetches historical market cap and chain distribution data for a specific stablecoin from the DefiLlama API using the shared make_request helper.@mcp.tool() async def get_stablecoin_history(asset: int) -> str: """GET /stablecoins/stablecoin/{asset} Get historical mcap and historical chain distribution of a stablecoin. Parameters: asset: stablecoin ID """ result = await make_request('GET', f'/stablecoins/stablecoin/{asset}') return str(result)