cost-basis
Cost basis for the caller’s active wallet: holdings valued at read time, realized disposals, unmatched disposals, and skipped legs
Changed onget/users/{id}/cost-basis
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
Query parameters
method'fifo' | 'lifo'
Which lot a disposal consumes first.
Response
Cost basis, derived per request. Every USD field is a decimal string or null; null means unknown and is never zero.
Example response
{
"holdings": [
{
"quantity": "4987438",
"costBasisUsd": "1234.56000000"
}
]
}Changes
- breaking
the response property
//became nullable for the status - breaking
the response property
//became nullable for the status - breaking
the response property
//became nullable for the status - breaking
the
//response's property type changed fromnumbertoobjectfor status - breaking
the
//response's property type changed fromnumbertoobjectfor status - breaking
the
//response's property type changed fromnumbertoobjectfor status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status
- breaking