---
title: "Btc Price History"
method: GET
path: "/api/v1/market-data/btc-price-history"
tags: ["Market Data"]
---

# Btc Price History

`GET /api/v1/market-data/btc-price-history`

## Request

- Base URL: `https://cryptodataapi.com`
- URL: `https://cryptodataapi.com/api/v1/market-data/btc-price-history`
- Auth: API key in header `X-API-Key`

BTC price history with 200D MA.

## Query parameters

- `days` integer

## Response `200`

Successful Response

- BtcPriceHistoryResponse: BTC price history with 200D MA.
  - `history` BtcPriceHistoryEntry[], required
    - `date` string, required
    - `price` number, required
    - `ma200` number, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/cryptodataapi/apis/crypto-data-api.md) · [All operations](https://skmtc.dev/cryptodataapi/apis/crypto-data-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cryptodataapi/apis/crypto-data-api/revisions/8628b754ca81?raw)
