getPredefinedPriceRanges · Get Predefined Ranges
may change things: you confirm before it runsGet the predefined price ranges for existing pool
Input schema
{
"type": "object",
"properties": {
"chainName": {
"type": "string",
"enum": [
"bsc",
"ethereum",
"arbitrum",
"base",
"optimism",
"polygon",
"avalanche",
"plasma",
"hyperevm",
"monad",
"robinhood"
],
"description": "The chain where the operation takes place"
},
"token0": {
"type": "string",
"description": "The address of the first token"
},
"token1": {
"type": "string",
"description": "The address of the second token"
},
"fee": {
"type": "number",
"description": "The fee percentage for the pool. 1000000 is 100%. Example user input - 1%, must be converted to 10000, 0.3% to 3000. Set to -1 if you want to use the default fee"
},
"shortcut": {
"type": "string",
"enum": [
"risky",
"wide",
"safe"
],
"description": "The shortcut for the predefined price ranges. For example \"risky\" for 1% deviation, \"wide\" for 5% deviation, \"safe\" for 10% deviation"
}
},
"required": [
"chainName",
"token0",
"token1",
"fee",
"shortcut"
],
"additionalProperties": false
}