# Data Download Center

There are two ways to get historical data:

1. **Web download**: Bitget's web download centers let you export the full history — in most cases as far back as **January 1, 2018**.
2. **API**: Some historical market data (e.g. open interest history) cannot be downloaded from the web and is available through API endpoints; many market data and account/trade history endpoints only return data within a recent time window (e.g. 90 days).

This page maps each type of historical data to where you can get it.

| Method | Covers | Jump to |
|:---|:---|:---|
| 🌐 Web: Market Data | Candlestick / Trades / Depth | [↓ Section](#-market-data-download-center) |
| 🌐 Web: Funding Rate | Historical funding rates | [↓ Section](#-historical-funding-rate) |
| 🌐 Web: Personal Account Data | Classic spot/futures/margin, earn orders, UTA orders | [↓ Section](#-personal-account-data) |
| 🔌 API: Historical Market Data | Open interest, funding rate, candlesticks, liquidations, risk reserve, borrow rates, long/short ratios, etc. | [↓ Section](#-historical-market-data-via-api) |

---

## 🌐 Web Download

### 📊 Market Data Download Center

:::info{title="Download entry point"}
<a href="https://www.bitget.com/data-download"><strong>bitget.com/data-download</strong></a> — historical candlestick, trades, and depth data.
:::

#### 💰 Spot

| Data Type | Description |
|:---|:---|
| 🕯️ Candlestick | OHLC and volume candlestick data for each trading pair, including historical data beyond the API's default query range |
| 🔄 Trades | Public fills on the platform, including historical fills beyond the API's 90-day query window |
| 📉 Depth | A snapshot of bid/ask order book depth, including merged depth by price precision |

#### 📈 Futures

| Data Type | Description |
|:---|:---|
| 🕯️ Candlestick | OHLC and volume candlestick data for each contract (including index/mark price variants), including historical data beyond the API's default query range |
| 🔄 Trades | Public fills on the platform, including historical fills beyond the API's 90-day query window |
| 📉 Depth | A bid/ask depth snapshot with price levels merged by precision |

---

### 💸 Historical Funding Rate

:::info{title="Download entry point"}
<a href="https://www.bitget.com/trade-info/funding_rate"><strong>bitget.com/trade-info/funding_rate</strong></a> — view and download historical funding rates for futures on the web.
:::

After opening the link, switch to the **Funding rate history** tab and a download button will appear.

To fetch them programmatically, use the [Get Funding Rate History](/docs/catalog/market/derivatives#get-funding-rate-history) endpoint (last 90 days).

---

### 📦 Personal Account Data

API endpoints are limited to a recent query window (typically 90 days). If you need older personal order, fill, or financial data, the web <a href="https://www.bitget.com/asset/export/downOrders">Export Center</a> offers broader download coverage, organized by account type and business category.

:::info{title="Download entry point"}
<a href="https://www.bitget.com/asset/export/downOrders"><strong>bitget.com/asset/export/downOrders</strong></a>
:::

#### 💰 Classic Spot

| Data Type | Description |
|:---|:---|
| 📋 Order History | All spot orders placed on the account, including filled, partially filled, and cancelled orders |
| 🔄 Fill History | Execution details of spot orders, including price, quantity, and fees |
| 💵 Financial Records | Spot account balance changes, such as trade debits/credits, transfers, and promotional rewards |
| 🏦 Deposit/Withdrawal Records | Crypto deposit and withdrawal records on the spot account |

#### 📈 Classic Futures

| Data Type | Description |
|:---|:---|
| 📋 Order History | Futures orders, including limit and market orders |
| 📊 Positions History | Closed historical positions, including open/close price, PnL, and leverage |
| 🔄 Fill History | Execution details of futures orders |
| 💵 Financial Records | Futures account balance changes, such as funding fees, realized PnL, and transfers |

#### ⚖️ Classic Margin

| Data Type | Description |
|:---|:---|
| 📋 Order History | Orders placed on cross or isolated margin accounts |
| 💵 Financial Records | Margin account balance changes, including borrowing, repayment, and interest |

#### 💎 Earn Orders

| Data Type | Description |
|:---|:---|
| 🪙 Simple Earn | Subscription, redemption, and interest payout records for Simple Earn flexible/fixed products |
| ⛓️ On-chain Earn | Orders for on-chain earn products such as staking and liquidity mining |
| 🔀 Dual Investment | Subscription and settlement records for Dual Investment products |
| 🦈 Shark Fin | Subscription and settlement records for Shark Fin structured products |

#### 🏦 UTA

| Data Type | Description |
|:---|:---|
| 📋 Order History | Order records across spot, futures, margin, and other business lines under a Unified Trading Account |
| 📊 Positions History | Closed historical positions under a Unified Trading Account |
| 💵 Financial Records | Balance change records for a Unified Trading Account |
| 🔀 Coin Conversion Records | History of in-account coin-to-coin conversions |

:::tip{title="Data range"}
Unless otherwise noted on the page, data is available as early as **January 1, 2018**.
:::

---

## 🔌 Historical Market Data via API

The following historical market data can be fetched directly through the API. Except where a permission is noted, the endpoints below are public and require no API key.

:::tip{title="Note"}
Query ranges, pagination, and rate limits differ per endpoint — refer to each endpoint's documentation. For candlestick, trade, and depth data beyond the API's range, use the web download above.
:::

#### 📈 Futures Market & Funding Rate

| Data Type | Endpoint | Description |
|:---|:---|:---|
| 📊 Open Interest History | [Get Open Interest History](/docs/catalog/market/derivatives#get-open-interest-history) | Historical futures open interest and value at `5m` ~ `1d` granularity |
| 📊 Current Open Interest | [Get Open Interest (OI)](/docs/catalog/market/derivatives) | Current futures open interest |
| 💸 Funding Rate History | [Get Funding Rate History](/docs/catalog/market/derivatives#get-funding-rate-history) | Last 90 days, paginated |
| 💥 Liquidations History | [Get Liquidations History](/docs/catalog/market/derivatives#get-liquidations-history) | Last 3 days only, with some delay |
| 🧮 Index Price Components | [Get Index Price Components](/docs/catalog/market/derivatives#get-index-price-components) | Constituent exchanges and weights of the index price |

#### 🕯️ Candlesticks & Trades

| Data Type | Endpoint | Description |
|:---|:---|:---|
| 🕯️ Recent Candlesticks | [Get Kline/Candlestick](/docs/catalog/market/market-data#get-kline-candlestick) | Latest 1000 candles; market/mark/index/premium types |
| 🕰️ Historical Candlesticks | [Get Kline/Candlestick History](/docs/catalog/market/market-data#get-kline-candlestick-history) | Candles older than 90 days; max 90-day range per query |
| 🔄 Recent Trades | [Get Recent Public Fills](/docs/catalog/market/market-data#get-recent-public-fills) | Recent public fills only; use web download for older data |

#### 📊 Long/Short Ratios & Fund Flow

| Data Type | Endpoint | Description |
|:---|:---|:---|
| ⚖️ Futures Long/Short Ratio | [Get Futures Long Short Ratio Data](/docs/catalog/market/trading-stats#get-futures-long-short-ratio-data) | `5m` ~ `1d` granularity |
| 🐋 Top Trader Position Ratio | [Get Futures Active Long Short Position Data](/docs/catalog/market/trading-stats#get-futures-active-long-short-position-data) | `5m` ~ `1d` granularity |
| 👥 Top Trader Account Ratio | [Get Futures Active Long Short Account Data](/docs/catalog/market/trading-stats#get-futures-active-long-short-account-data) | `5m` ~ `1d` granularity |
| 🔁 Futures Taker Buy/Sell Volume | [Get Futures Active Buy Sell Volume Data](/docs/catalog/market/trading-stats#get-futures-active-buy-sell-volume-data) | `5m` ~ `1d` granularity |
| 💰 Spot Fund Flow | [Get Spot Fund Flow Data](/docs/catalog/market/trading-stats#get-spot-fund-flow-data) | `15m` ~ `1d` granularity |
| 🐋 Spot Whale Net Flow | [Get Spot Whale Net Flow Data](/docs/catalog/market/trading-stats#get-spot-whale-net-flow-data) | Net inflow of large spot traders |
| ⚖️ Margin Long/Short Ratio | [Get Margin Long Short Ratio Data](/docs/catalog/market/trading-stats#get-margin-long-short-ratio-data) | `24h` / `30d` periods |

#### 🛡️ Risk & Borrowing

| Data Type | Endpoint | Description |
|:---|:---|:---|
| 🛡️ Risk Reserve (Daily) | [Get Risk Reserve(Daily)](/docs/catalog/market/trading-risk-rules) | Last 30 days |
| 🛡️ Risk Reserve (Hourly) | [Get Risk Reserve(Hourly)](/docs/catalog/market/trading-risk-rules) | Hourly risk reserve records |
| 🏦 Borrow Interest Rate History | [Get Interest Rate History](/docs/catalog/market/trading-risk-rules#get-interest-rate-history) | Hourly granularity, last 1 month; requires UTA read-only permission |
