Skip to main content
POST
/
markets
/
creditbook
/
collateral
/
raydium
/
transfer_position
Transfer Raydium position
curl --request POST \
  --url https://tars.loopscale.com/v1/markets/creditbook/collateral/raydium/transfer_position \
  --header 'Content-Type: application/json' \
  --header 'user-wallet: <user-wallet>' \
  --data '
{
  "loan": "<string>",
  "positionMint": "<string>",
  "slippageDecimals": 123,
  "transferParams": {
    "liquidityAmount": 123,
    "collateralIndex": 123,
    "transferParams": {
      "Liquidity": {
        "slippageToleranceBps": 123
      }
    },
    "tickLowerIndex": 123,
    "tickUpperIndex": 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 Raydium position collateral

positionMint
string
required

Raydium position mint address

slippageDecimals
number
required

Slippage tolerance as a decimal percentage value

transferParams
object
required

Response

Serialized transaction message and signatures

message
string
required

Base64-encoded versioned transaction message

signatures
object[]
required