get-twap
Calculate Time-Weighted Average Price for Osmosis liquidity pools to analyze asset price trends over specified time periods.
Instructions
Returns Time-Weighted Average Price for a pool
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| poolId | Yes | The pool ID | |
| baseAsset | Yes | Base asset denomination | |
| quoteAsset | Yes | Quote asset denomination | |
| startTime | Yes | Start time (RFC3339 format) | |
| endTime | No | Optional: End time (RFC3339 format, defaults to now) |