get-historical-prices
Retrieve historical price data for token pairs on Osmosis by specifying pool ID, assets, time range, and resolution to analyze market trends.
Instructions
Returns historical price data for a token pair
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": {
"poolId": "<poolId>",
"baseAssetDenom": "<baseAssetDenom>",
"quoteAssetDenom": "<quoteAssetDenom>"
},
"name": "get-historical-prices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| poolId | Yes | The ID of the liquidity pool | |
| baseAssetDenom | Yes | The base asset denomination | |
| quoteAssetDenom | Yes | The quote asset denomination | |
| startTime | No | Start time for historical data (ISO 8601 format) | |
| endTime | No | End time for historical data (ISO 8601 format) | |
| resolution | No | Data resolution (1m, 5m, 15m, 1h, 4h, 1d) |