GET
/
v0
/
uniswap
/
liquidity_provision
/
in_range
/
get
from compassapisdk import CompassAPISDK, models


with CompassAPISDK(
    api_key_auth="<YOUR_API_KEY_HERE>",
) as compass_api_sdk:

    res = compass_api_sdk.uniswap_v3.liquidity_provision_in_range(chain=models.UniswapLiquidityProvisionInRangeChain.ARBITRUM_MAINNET, token_id=4318185)

    # Handle response
    print(res)
{
  "in_range": true
}

Authorizations

x-api-key
string
header
required

Your Compass API Key. Get your key here.

Query Parameters

chain
enum<string>
default:arbitrum:mainnet
required

The chain to use.

Available options:
base:mainnet,
ethereum:mainnet,
arbitrum:mainnet
token_id
integer
default:4318185
required
Required range: x >= 0

Response

200
application/json
Successful Response
in_range
boolean
required

Whether the position is in active tick range or not. If not in range, the position is not earning trading fees.