Positions

Decrease liquidity

post

Decrease liquidity

Removes liquidity from an existing position. Returns transaction for user to sign.

Body
amm_config_indexinteger · int32Required

AMM configuration index

Example: 6
liquidityintegerRequired

Liquidity amount

Example: 0
mint0stringRequired

First pool token address

Example: ATLASXmbPQxBUYbxPsV97usA3fPQYEqzQBUHgiFCUsXx
mint1stringRequired

Second pool token address

Example: Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
slippage_bpsinteger · int64Required

Slippage in basis points

Example: 50
tick_lower_indexinteger · int32Required

Lower tick index

Example: -112059
tick_upper_indexinteger · int32Required

Upper tick index

Example: -109986
user_walletstringRequired

User wallet address

Example: EQdJjaPwUL6X3GjUp3ZQ1T3QA4XL9g9v3Z6rSUMGALMt
Responses
200

Decrease liquidity

application/json
post
/api/decrease_liquidity/

Decrease liquidity for multiple positions

post

Decrease liquidity for multiple positions

Removes liquidity from multiple positions in a single batch operation. Returns transaction for user to sign.

Body
Responses
200

Decrease liquidity multiple

application/json
post
/api/decrease_liquidity_multiple/

Increase liquidity

post

Increase liquidity

Adds more liquidity to an existing position. Returns transaction for user to sign.

Body
amm_config_indexinteger · int32Required

AMM configuration index

Example: 6
input_amountinteger · int64Required

Input token amount

Example: 100
is_base_0booleanRequired

Whether token 0 is the base token

mint0stringRequired

First pool token address

Example: ATLASXmbPQxBUYbxPsV97usA3fPQYEqzQBUHgiFCUsXx
mint1stringRequired

Second pool token address

Example: Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
slippage_bpsinteger · int64Required

Slippage in basis points

Example: 50
tick_lower_indexinteger · int32Required

Lower tick index

Example: -112059
tick_upper_indexinteger · int32Required

Upper tick index

Example: -109986
user_walletstringRequired

User wallet address

Example: EQdJjaPwUL6X3GjUp3ZQ1T3QA4XL9g9v3Z6rSUMGALMt
Responses
200

Increase liquidity

application/json
post
/api/increase_liquidity/

Open liquidity position

post

Open liquidity position

Opens a new liquidity position in a pool within specified tick range. Returns transaction for user to sign.

Body
amm_config_indexinteger · int32Required

AMM configuration index

Example: 3
input_amountinteger · int64Required

Input token amount

Example: 1
is_base_0booleanRequired

Whether token 0 is the base token

mint0stringRequired

First pool token address

Example: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
mint1stringRequired

Second pool token address

Example: Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
slippage_bpsinteger · int64Required

Slippage in basis points

Example: 50
tick_lower_pricenumber · doubleRequired

Lower price boundary

Example: 0.8
tick_upper_pricenumber · doubleRequired

Upper price boundary

Example: 1.2
user_walletstringRequired

User wallet address

Example: EQdJjaPwUL6X3GjUp3ZQ1T3QA4XL9g9v3Z6rSUMGALMt
with_metadatabooleanRequired

Whether to include metadata

Responses
200

Open position

application/json
post
/api/open_position/

Get positions by owner

get

Get positions by owner

Returns all liquidity positions owned by the specified wallet address.

Path parameters
user_walletstringRequiredExample: EQdJjaPwUL6X3GjUp3ZQ1T3QA4XL9g9v3Z6rSUMGALMt
Responses
200

PPosition by owner

application/json
get
/api/pposition_by_owner/{user_wallet}/

Last updated