Skip to main content
POST
/
dlmm
/
close
Close a DLMM position
curl --request POST \
  --url https://public-api.cleopetra.fun/dlmm/close \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "user": "<string>",
  "mode": "zap",
  "position": "<string>",
  "slippage": 500
}'
{
  "transactions": [
    "<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

mode
enum<string>
default:zap
required

Transaction mode

Available options:
zap,
normal
position
string
required

Position address to close

slippage
number
default:500

Slippage tolerance in basis points

Response

200 - application/json

Successful response with transaction data

transactions
string[]
required

Array of base64 encoded transactions