price-to-tick
Convert a price to a tick value for CL pools using specified tick spacing, base, and quote asset denominations. Essential for managing liquidity on the Osmosis blockchain.
Instructions
Converts a price to a tick value for CL pools
Input Schema
Name | Required | Description | Default |
---|---|---|---|
baseAssetDenom | Yes | The base asset denomination | |
price | Yes | The price to convert | |
quoteAssetDenom | Yes | The quote asset denomination | |
tickSpacing | Yes | The tick spacing of the pool |
Input Schema (JSON Schema)
{
"properties": {
"baseAssetDenom": {
"description": "The base asset denomination",
"type": "string"
},
"price": {
"description": "The price to convert",
"type": "string"
},
"quoteAssetDenom": {
"description": "The quote asset denomination",
"type": "string"
},
"tickSpacing": {
"description": "The tick spacing of the pool",
"type": "number"
}
},
"required": [
"price",
"tickSpacing",
"baseAssetDenom",
"quoteAssetDenom"
],
"type": "object"
}