get-twap
Calculate Time-Weighted Average Price (TWAP) for a specific pool on Osmosis by providing pool ID, asset denominations, and start time.
Instructions
Returns Time-Weighted Average Price for a pool
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| baseAsset | Yes | Base asset denomination | |
| endTime | No | Optional: End time (RFC3339 format, defaults to now) | |
| poolId | Yes | The pool ID | |
| quoteAsset | Yes | Quote asset denomination | |
| startTime | Yes | Start time (RFC3339 format) |