Bitget APIBitget API
UTAClassic
Legacy Doc
  • Overview
  • API Documentation
  • WebSocket
  • Agent Hub
  • SDK
  • Changelog
Copied to clipboard
Getting Started
Unified Trading AccountQuick StartBest Practices GuiderToken Trading GuideCFD Trading GuideElite Trading API Guide
Broker Integration Guide
Data Download Center
Demo Trading
Rate Limit
API Reference
API DocumentationEnumeration
Error Code
Overview

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.

MethodCoversJump to
🌐 Web: Market DataCandlestick / Trades / Depth↓ Section
🌐 Web: Funding RateHistorical funding rates↓ Section
🌐 Web: Personal Account DataClassic spot/futures/margin, earn orders, UTA orders↓ Section
🔌 API: Historical Market DataOpen interest, funding rate, candlesticks, liquidations, risk reserve, borrow rates, long/short ratios, etc.↓ Section

🌐 Web Download

📊 Market Data Download Center

Download entry point

bitget.com/data-download — historical candlestick, trades, and depth data.

💰 Spot

Data TypeDescription
🕯️ CandlestickOHLC and volume candlestick data for each trading pair, including historical data beyond the API's default query range
🔄 TradesPublic fills on the platform, including historical fills beyond the API's 90-day query window
📉 DepthA snapshot of bid/ask order book depth, including merged depth by price precision

📈 Futures

Data TypeDescription
🕯️ CandlestickOHLC and volume candlestick data for each contract (including index/mark price variants), including historical data beyond the API's default query range
🔄 TradesPublic fills on the platform, including historical fills beyond the API's 90-day query window
📉 DepthA bid/ask depth snapshot with price levels merged by precision

💸 Historical Funding Rate

Download entry point

bitget.com/trade-info/funding_rate — 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 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 Export Center offers broader download coverage, organized by account type and business category.

Download entry point

bitget.com/asset/export/downOrders

💰 Classic Spot

Data TypeDescription
📋 Order HistoryAll spot orders placed on the account, including filled, partially filled, and cancelled orders
🔄 Fill HistoryExecution details of spot orders, including price, quantity, and fees
💵 Financial RecordsSpot account balance changes, such as trade debits/credits, transfers, and promotional rewards
🏦 Deposit/Withdrawal RecordsCrypto deposit and withdrawal records on the spot account

📈 Classic Futures

Data TypeDescription
📋 Order HistoryFutures orders, including limit and market orders
📊 Positions HistoryClosed historical positions, including open/close price, PnL, and leverage
🔄 Fill HistoryExecution details of futures orders
💵 Financial RecordsFutures account balance changes, such as funding fees, realized PnL, and transfers

⚖️ Classic Margin

Data TypeDescription
📋 Order HistoryOrders placed on cross or isolated margin accounts
💵 Financial RecordsMargin account balance changes, including borrowing, repayment, and interest

💎 Earn Orders

Data TypeDescription
🪙 Simple EarnSubscription, redemption, and interest payout records for Simple Earn flexible/fixed products
⛓️ On-chain EarnOrders for on-chain earn products such as staking and liquidity mining
🔀 Dual InvestmentSubscription and settlement records for Dual Investment products
🦈 Shark FinSubscription and settlement records for Shark Fin structured products

🏦 UTA

Data TypeDescription
📋 Order HistoryOrder records across spot, futures, margin, and other business lines under a Unified Trading Account
📊 Positions HistoryClosed historical positions under a Unified Trading Account
💵 Financial RecordsBalance change records for a Unified Trading Account
🔀 Coin Conversion RecordsHistory of in-account coin-to-coin conversions

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.

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 TypeEndpointDescription
📊 Open Interest HistoryGet Open Interest HistoryHistorical futures open interest and value at 5m ~ 1d granularity
📊 Current Open InterestGet Open Interest (OI)Current futures open interest
💸 Funding Rate HistoryGet Funding Rate HistoryLast 90 days, paginated
💥 Liquidations HistoryGet Liquidations HistoryLast 3 days only, with some delay
🧮 Index Price ComponentsGet Index Price ComponentsConstituent exchanges and weights of the index price

🕯️ Candlesticks & Trades

Data TypeEndpointDescription
🕯️ Recent CandlesticksGet Kline/CandlestickLatest 1000 candles; market/mark/index/premium types
🕰️ Historical CandlesticksGet Kline/Candlestick HistoryCandles older than 90 days; max 90-day range per query
🔄 Recent TradesGet Recent Public FillsRecent public fills only; use web download for older data

📊 Long/Short Ratios & Fund Flow

Data TypeEndpointDescription
⚖️ Futures Long/Short RatioGet Futures Long Short Ratio Data5m ~ 1d granularity
🐋 Top Trader Position RatioGet Futures Active Long Short Position Data5m ~ 1d granularity
👥 Top Trader Account RatioGet Futures Active Long Short Account Data5m ~ 1d granularity
🔁 Futures Taker Buy/Sell VolumeGet Futures Active Buy Sell Volume Data5m ~ 1d granularity
💰 Spot Fund FlowGet Spot Fund Flow Data15m ~ 1d granularity
🐋 Spot Whale Net FlowGet Spot Whale Net Flow DataNet inflow of large spot traders
⚖️ Margin Long/Short RatioGet Margin Long Short Ratio Data24h / 30d periods

🛡️ Risk & Borrowing

Data TypeEndpointDescription
🛡️ Risk Reserve (Daily)Get Risk Reserve(Daily)Last 30 days
🛡️ Risk Reserve (Hourly)Get Risk Reserve(Hourly)Hourly risk reserve records
🏦 Borrow Interest Rate HistoryGet Interest Rate HistoryHourly granularity, last 1 month; requires UTA read-only permission
FastAPI Integration GuideREST API
On this page
  • 🌐 Web Download
    • 📊 Market Data Download Center
    • 💸 Historical Funding Rate
    • 📦 Personal Account Data
  • 🔌 Historical Market Data via API
    • 📈 Futures Market & Funding Rate
    • 🕯️ Candlesticks & Trades
    • 📊 Long/Short Ratios & Fund Flow
    • 🛡️ Risk & Borrowing