Skip to main content
GET
/
v1
/
uniswap
/
liquidity_provision
/
in_range
Python (SDK)
from compass_api_sdk import CompassAPI, models


with CompassAPI(
    api_key_auth="<YOUR_API_KEY_HERE>",
) as compass_api:

    res = compass_api.uniswap_v3.uniswap_liquidity_provision_in_range(chain=models.V1UniswapLiquidityProvisionInRangeChain.ARBITRUM, 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
required
Available options:
arbitrum,
base,
ethereum
token_id
integer
default:4318185
required

Token ID of the NFT representing the liquidity provisioned position.

Required range: x >= 0

Response

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.