Skip to main content
POST
/
dlmm
/
rebalance
cURL
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",
  "min_price": "<string>",
  "max_price": "<string>",
  "slippage": 500,
  "reinvest_fees": false,
  "liquidity_distribution": [
    123
  ],
  "platform_fee_account": "<string>",
  "platform_bps": 123
}
'
{
  "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
position
string
required
strategy
enum<string>
default:spot
required
Available options:
spot,
curve,
bid_ask
min_price
string
required
max_price
string
required
slippage
number
default:500
required
reinvest_fees
boolean
default:false
required
liquidity_distribution
number[]
Required array length: 2 elements
platform_fee_account
string
platform_bps
number

Response

200 - application/json

Successful response

transactions
string[]
required
positions
string[]
required