---
title: "Get cost-basis lot timestamp bounds"
method: GET
path: "/v1/portfolios/{portfolioSlug}/cost-basis-lots/stats"
tags: ["Portfolios"]
deprecated: true
---

# Get cost-basis lot timestamp bounds

`GET /v1/portfolios/{portfolioSlug}/cost-basis-lots/stats`

## 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/stats`
- Auth: API key in header `x-api-key`

> **Deprecated.**

Deprecated. Use the portfolio-transaction-period filter-options provider, which reports one activity period covering transactions and journal entries. Returns the oldest and newest cost-basis lot ledger timestamps for a portfolio without loading ledger rows.

## Path parameters

- `portfolioSlug` string, required

## Response `200`

- CostBasisLotStatsResponseDto
  - `minTimestamp` string, date-time, nullable, required: Oldest lot ledger timestamp in the portfolio, if any
  - `maxTimestamp` string, date-time, nullable, required: Newest lot ledger timestamp in the portfolio, if any

---

[API](https://skmtc.dev/tokenbooks/apis/tokenbooks-public-api.md) · [All operations](https://skmtc.dev/tokenbooks/apis/tokenbooks-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tokenbooks/apis/tokenbooks-public-api/revisions/180622e6255e?raw)
