Skip to main content
POST
/
dlmm
/
rebalance
Rebalance a DLMM position
curl --request POST \
  --url https://public-api.cleopetra.fun/dlmm/rebalance \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "user": "<string>",
  "position": "<string>",
  "strategy": "spot",
  "reinvest_fees": false,
  "min_price": "<string>",
  "max_price": "<string>",
  "slippage": 500
}'
{
  "transactions": [
    "<string>"
  ],
  "positions": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
user
string
required

User wallet address

position
string
required

Position address to rebalance

strategy
enum<string>
default:spot
required

Liquidity distribution strategy

Available options:
spot,
curve,
bid_ask
min_price
string
required

Minimum price range

max_price
string
required

Maximum price range

reinvest_fees
boolean
default:false

Reinvest fees into the new position

slippage
number
default:500

Slippage tolerance in basis points

Response

200 - application/json

Successful response with transaction data and positions

transactions
string[]
required

Array of base64 encoded transactions

positions
string[]
required

Array of position keypairs