getCurrentPoolPrice · Get Pool Price
may change things: you confirm before it runsGet the current price of the 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"
}
},
"required": [
"chainName",
"token0",
"token1",
"fee"
],
"additionalProperties": false
}