Utilities

Convert price to tick

get

Convert price to tick

Converts a price value to the nearest tick index.

Path parameters
pricenumber · doubleRequiredExample: 1
Responses
200

Price to tick

application/json
get
/api/price_to_tick/{price}/

Get tick state

post

Get tick state

Returns the state of a specific tick in a pool, including liquidity information.

Body
amm_config_indexinteger · int32Required

AMM configuration index

Example: 25
mint0stringRequired

First pool token address

Example: ammoK8AkX2wnebQb35cDAZtTkvsXQbi82cGeTnUvvfK
mint1stringRequired

Second pool token address

Example: ATLASXmbPQxBUYbxPsV97usA3fPQYEqzQBUHgiFCUsXx
tickinteger · int32Required

Tick index

Example: 123860
Responses
200

PTick state

application/json
post
/api/ptick_state/

Convert tick to price

get

Convert tick to price

Converts a tick index to the corresponding price value.

Path parameters
tickinteger · int32RequiredExample: 1
Responses
200

Tick to price

application/json
get
/api/tick_to_price/{tick}/

Last updated