POST
/
v0
/
leverage
/
{marketAddress}
/
withdraw
Leverage Withdraw
curl --request POST \
  --url https://kamino.dial.to/api/v0/leverage/{marketAddress}/withdraw \
  --header 'Content-Type: application/json' \
  --data '{
  "type": "transaction",
  "account": "6JpNV6DK88auwzKVizdeT4Bw3D44sam5GqjcPCJ7y176"
}'
{
  "type": "<any>",
  "transaction": "<string>"
}

Path Parameters

marketAddress
string
default:7u3HeHxYDLhnCoErrtycNokbQYbWGzLs6JSDqGAv5PfF
required

Market public key

Examples:

"7u3HeHxYDLhnCoErrtycNokbQYbWGzLs6JSDqGAv5PfF"

Query Parameters

collTokenMint
string
default:So11111111111111111111111111111111111111112
required

Collateral token mint address

Examples:

"So11111111111111111111111111111111111111112"

debtTokenMint
string
default:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
required

Debt token mint address

Examples:

"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"

percentage
integer
default:50
required

The percentage of position to withdraw

Required range: 1 <= x <= 100
Examples:

50

slippage
number
default:3

Slippage tolerance in percentage (0.1-10%)

Required range: 0.1 <= x <= 10
Examples:

3

Body

application/json

Response

200 - application/json

OK

The response is of type object.