Skip to main content
POST
/
markets
/
creditbook
/
collateral
/
orca
/
update_liquidity
Update Orca liquidity
curl --request POST \
  --url https://tars.loopscale.com/v1/markets/creditbook/collateral/orca/update_liquidity \
  --header 'Content-Type: application/json' \
  --header 'user-wallet: <user-wallet>' \
  --data '
{
  "loan": "<string>",
  "positionMint": "<string>",
  "increase": true,
  "manageParams": {
    "collateralIndex": 123,
    "liquidityAmount": 123,
    "transferParams": {
      "Liquidity": {
        "slippageToleranceBps": 123
      }
    },
    "assetIndexGuidance": [
      123
    ]
  }
}
'
{
  "message": "<string>",
  "signatures": [
    {
      "publicKey": "<string>",
      "signature": "<string>"
    }
  ]
}

Headers

user-wallet
string
required

Wallet address of the requesting user

Body

application/json
loan
string
required

Loan address containing the Orca position collateral

positionMint
string
required

Orca position mint address

increase
boolean
required

Set true to add liquidity, false to remove liquidity

manageParams
object
required

Response

Serialized transaction message and signatures

message
string
required

Base64-encoded versioned transaction message

signatures
object[]
required