---
title: "Get Database Trades"
method: GET
path: "/archived-bots/{db_path}/trades"
tags: ["Archived Bots"]
---

# Get Database Trades

`GET /archived-bots/{db_path}/trades`

Get paginated trade fill history from an archived bot database.

Retrieves trade execution records with details including price, amount, fees,
and timestamps. Supports pagination for handling large trade histories.

Use this endpoint to analyze individual trades, export trade data, or
build detailed trade history reports.

## Path parameters

- `db_path` string, required

## Query parameters

- `limit` integer — Maximum number of trades to return (1-1000)
- `offset` integer — Number of trades to skip for pagination

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

## Changes

- **2025-12-20** `1005bcd47280` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/hummingbot/apis/hummingbot-api/changes/archived-bots/:db_path/trades/get.md)

---

[API](https://skmtc.dev/hummingbot/apis/hummingbot-api.md) · [All operations](https://skmtc.dev/hummingbot/apis/hummingbot-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hummingbot/hummingbot-api/revisions/cb6b6935c8e2/schema)
