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
Request
- Base URLhttps://api.dre.app (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idnumber required
Reserve id
Request body
Example request
{
"amount": "1000000",
"paymentFromValue": "1000000"
}Response
Reserve with updated position
Reserve required
Changes
No recorded changes to this operation across all 3 revisions of this API.