Historical coin price
price_historyPast USD price of a coin from DefiLlama (keyless, no key): pass a CoinGecko id ("dogecoin") or a common ticker ("DOGE", "BTC", "ETH", "SOL") and a date, and get the spot price on that day. Add days for a daily trend series from that date forward. This is NOT the live price — use get_quote or token_info for the current price. Use it for questions like "what was DOGE last month". Result includes display markdown: show it to the user. How to combine this with the other tools: swapchan_playbook (workflows: find-money, best-swap, rebalance, revoke-approvals, bridge-stuck, token-safety, recover-old-wallet).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"coin": "<coin>",
"date": "<date>"
},
"name": "price_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin | Yes | CoinGecko id or ticker, e.g. "dogecoin" or "DOGE". | |
| date | Yes | The date as YYYY-MM-DD (or an ISO datetime). | |
| days | No | Days of daily trend from the date forward (0 or omit = just that day). |