POST
/
v0
/
uniswap
/
liquidity_provision
/
in_range
/
get
curl --request POST \
  --url https://api.compasslabs.ai/v0/uniswap/liquidity_provision/in_range/get \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "chain": "arbitrum:mainnet",
  "token_id": 4318185
}'
{
  "in_range": true
}

Authorizations

x-api-key
string
header
required

Your Compass API key. Get your key here.

Body

application/json

Endpoint parameters for checking if liquidity position is in active tick range on uniswap v3.

chain
enum<string>
required

The chain to use.

Available options:
base:mainnet,
ethereum:mainnet,
arbitrum:mainnet
token_id
integer
required

Token ID of the NFT representing the liquidity provisioned position.

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.

Was this page helpful?