---
title: "Sync Historical Data"
method: POST
path: "/api/data-sync/sync-historical-data"
tags: ["data-sync"]
---

# Sync Historical Data

`POST /api/data-sync/sync-historical-data`

## Request

- Base URL: `https://marketcrew.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://marketcrew.ai/api/data-sync/sync-historical-data`
- Auth: HTTP bearer

Sync historical data from Yahoo Finance
If ticker is provided, sync only that ticker
If no ticker, sync all instruments with tickers

## Query parameters

- `ticker` string, nullable

## Response `200`

Successful Response

- APIResponse: Generic API response model
  - `success` boolean, required
  - `message` string, required
  - `data` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/marketcrew/apis/cappilot.md) · [All operations](https://skmtc.dev/marketcrew/apis/cappilot/llms.txt) · [OpenAPI document](https://skmtc.dev/marketcrew/apis/cappilot/revisions/7036e9c74d40?raw)
