cost-basis

Cost basis for the caller’s active wallet: holdings valued at read time, realized disposals, unmatched disposals, and skipped legs

Changed on
get/users/{id}/cost-basis

Request

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.

method'fifo' | 'lifo' required

The lot method that produced this result.

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 from number to object for status

    • breaking

      the // response's property type changed from number to object for status

    • breaking

      the // response's property type changed from number to object for 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