get-historical-prices
Retrieve historical price data for token pairs on Osmosis by specifying pool ID, asset denominations, and time range with desired resolution for analysis.
Instructions
Returns historical price data for a token pair
Input Schema
Name | Required | Description | Default |
---|---|---|---|
baseAssetDenom | Yes | The base asset denomination | |
endTime | No | End time for historical data (ISO 8601 format) | |
poolId | Yes | The ID of the liquidity pool | |
quoteAssetDenom | Yes | The quote asset denomination | |
resolution | No | Data resolution (1m, 5m, 15m, 1h, 4h, 1d) | |
startTime | No | Start time for historical data (ISO 8601 format) |
Input Schema (JSON Schema)
{
"properties": {
"baseAssetDenom": {
"description": "The base asset denomination",
"type": "string"
},
"endTime": {
"description": "End time for historical data (ISO 8601 format)",
"type": "string"
},
"poolId": {
"description": "The ID of the liquidity pool",
"type": "string"
},
"quoteAssetDenom": {
"description": "The quote asset denomination",
"type": "string"
},
"resolution": {
"description": "Data resolution (1m, 5m, 15m, 1h, 4h, 1d)",
"enum": [
"1m",
"5m",
"15m",
"1h",
"4h",
"1d"
],
"type": "string"
},
"startTime": {
"description": "Start time for historical data (ISO 8601 format)",
"type": "string"
}
},
"required": [
"poolId",
"baseAssetDenom",
"quoteAssetDenom"
],
"type": "object"
}