reserve

Update cash-equivalent position amount

Sets data.valueUSDC to the given token amount (smallest units as a numeric string), stores paymentFromValue, and recalculates value in USD using the latest yield-source price. Only cash-equivalent reserves with a yield source and without deposit/investment diff are allowed.

patch/reserves/{id}/position

Path parameters

idnumber required

Reserve id

Request body

amountstring required

Token amount in smallest units (numeric string)

paymentFromValuestring

Payment from amount in smallest units (numeric string)

Example request

{
  "amount": "1000000",
  "paymentFromValue": "1000000"
}

Response

Reserve with updated position

Reserve required

Changes