Portfolios

List selected cost-basis lot history

Returns one paginated history page for requested cost-basis lot IDs inside an asset. asOfTimestamp is required.

post/v1/portfolios/{portfolioSlug}/cost-basis-lots/history

Request

  • Base URL: https://api.tokenbooks.io (the document declares no server; this is the origin it was published from)
  • URL: https://api.tokenbooks.io/v1/portfolios/{portfolioSlug}/cost-basis-lots/history
  • Auth: API key in header x-api-key

Path parameters

portfolioSlugstring required

Workspace-scoped portfolio slug

Request body

pageinteger

Page number

pageSizeinteger

Items per page (max 100)

assetIdstring required

Asset ID that owns the requested lot IDs

lotIdsstring[] required

Contributing cost-basis lot IDs to include

asOfTimestampstring date-time required

Required inclusive timestamp boundary.

sortstring

Single sort field. Prefix with - for descending. Supported fields: timestamp, diff, value, price.

Response

Changes

No recorded changes to this operation across all 1 revision of this API.