How to Download Historical Market Data on Binance | Binance Support (2024)

Binance provides historical market data that can be downloaded via the Binance website or API.

What data is available?

Binance supports different data types for different products.

Spot

Data Type

Start Date

Granularity

Generate Frequency

Candlestick

  • Daily generated files: 2021-02-28
  • Monthly generated files: 2017-08-15

1s/1m/3m/5m/15m/30m/1h/2h/4h/6h/8h/12h/1d/3d/1w/1M

Daily and monthly

Trades

  • Daily generated files: 2021-02-28
  • Monthly generated files: 2017-08-15

-

Daily and monthly

Aggregated Trades

  • Daily generated files: 2021-02-28
  • Monthly generated files: 2017-08-15

-

Daily and monthly

Futures

Data Type

Start Date

Granularity

Generate Frequency

Candlestick

  • USDⓈ-M: 2020-01-01
  • COIN-M: 2020-08-01

1m/3m/5m/15m/30m/1h/2h/4h/6h/8h/12h/1d/3d/1w/1M

Daily and monthly

Trades

  • USDⓈ-M: 2020-01-01
  • COIN-M: 2020-08-01

-

Daily and monthly

Aggregated Trades

  • USDⓈ-M: 2020-01-01
  • COIN-M: 2020-08-01

-

Daily and monthly

Book Ticker

2023-06-25

-

Daily and monthly

Trading Metrics

5m

Daily

Index Price K-Line

2020-01-01

1m/3m/5m/15m/30m/1h/2h/4h/6h/8h/12h/1d/3d/1w/1M

Daily and monthly

Mark Price Candlestick

2020-01-01

1m/3m/5m/15m/30m/1h/2h/4h/6h/8h/12h/1d/3d/1w/1M

Daily and monthly

Funding Rate

2020-01

-

Monthly

Premium Index Candlestick

2020-01-01

1m/3m/5m/15m/30m/1h/2h/4h/6h/8h/12h/1d/3d/1w/1M

Daily and monthly

Liquidation Snapshot

2023-06-25

-

Daily

Tick-Level Orderbook

Please refer to

Binance Futures Order Book Historical Data

-

Daily

Orderbook Snapshot

Please refer to Binance Futures Order Book Historical Data

1m

Daily

Options

Data Type

Start Date

Granularity

Generate Frequency

Option EOH Summary

2023-05-18

1h

Daily

BVOL Index

2023-06-20

1s

Daily

How frequently is the data updated?

Daily-generated data will be updated on the next day at around 10:00 (UTC). Monthly-generated data will be updated on the first day of the following month.

How to download the data from the Binance website?

Binance offers historical market data for all users to download directly via the Historical Market Data page. You can view all candlestick charts, trading, and aggregated trading data for Spot and Futures pairs.

1. Log in to your Binance account and go to [Institutional] - [Historical Market Data].

How to Download Historical Market Data on Binance | Binance Support (1)

2. You can use the filters on the side to view each category.

How to Download Historical Market Data on Binance | Binance Support (2)

3. Select the data you want to download.

How to Download Historical Market Data on Binance | Binance Support (3)

4. You may view the Field Information of the data before downloading. Please note that the Field Information section is collapsible.

How to Download Historical Market Data on Binance | Binance Support (4)

5. Fill in the download details and click [Confirm] to proceed.

  • You may select multiple symbols.
  • Interval includes Daily and Monthly.
  • You may select multiple granularity levels.
How to Download Historical Market Data on Binance | Binance Support (5)

6. After reviewing the files, click [Download].

Please note that downloading multiple files at once could result in a longer download time.

How to Download Historical Market Data on Binance | Binance Support (6)

How to download the data programmatically?

You can use your browser to view the raw data from this page. This repository hosts a collection of auxiliary scripts, available in both Python and Shell, located in their respective directories. Binance will support more downloading methods in the future, please stay tuned.

Example request:

# download a single file

curl -s "https://data.binance.vision/data/spot/monthly/klines/ADABKRW/1h/ADABKRW-1h-2020-08.zip" -o ADABKRW-1h-2020-08.zip

wget "https://data.binance.vision/data/spot/monthly/klines/ADABKRW/1h/ADABKRW-1h-2020-08.zip"

Please note:

  • Each compressed zip file is accompanied by a corresponding CHECKSUM file stored in the same folder, which can be used to verify data integrity.
  • You can check via the followings:
    • Linux:
      • sha256sum -c <zip_file_name.CHECKSUM>
      • sha256sum -c BNBUSDT-1m-2021-01.zip.CHECKSUM
    • MacOS:
      • shasum -a 256 -c BNBUSDT-1m-2021-01.zip.CHECKSUM

Please refer to this page for more details.

Futures order book data

Currently, Binance only provides Futures historical order book data. You need to have a Futures account to download it, and this data can only be accessed via API for Binance VIP 1 or above users.

Binance provides the following Futures historical order book data:

  • Orderbook Snapshot (S_Depth)

Since January 2020, only the BTC/USDT symbol.

  • Tick-Level Orderbook (T_Depth)

Since July 2020, all symbols and pairs.

Please refer to Binance Futures Order Book Historical Data for more details.

Why can’t I download multiple files at the same time from the website?

If you select “download multiple files”, but your browser only allows you to download them one at a time, here are some possible reasons and their solutions:

1. Check your browser’s settings

You need to enable multiple downloads in your browser. For example, choose to allow automatic downloads of multiple files on the download confirmation pop-up.

You can check the download settings of your browser:

  • If you’ve blocked downloading of multiple files, please adjust the browser settings. For example, on Chrome you can visit “chrome://settings/content/automaticDownloads”. Turn off the option “Ask where to save each file before downloading” from “chrome://settings/downloads”

Try using a different browser to see if the issue persists.

2. Check your internet connectivity

Your internet connection may be slow or unstable. Try verifying your internet connection's stability and speed. If possible, use a wired connection or switch to a more reliable network.

3. Interference from browser extensions/add-ons

Certain browser extensions or add-ons may interfere with the download process. You can temporarily disable browser extensions and try downloading the files again. If this solved the issue, try to re-enable the extensions one by one to identify the culprit.

4. Technical issues from the website

The website you are downloading from may be experiencing technical difficulties or server overload. You can check if other users report similar issues or if the website has put up notice regarding this issue. You could also try downloading the files at a different time.

If you have tried the above solutions and are still unable to download multiple files simultaneously, please reach out to the website's support team for assistance. Providing them with specific details about your issue will help them identify and resolve the problem more effectively.

Data disclaimer

Please note that all our data services strictly follow the Binance Terms of Use.

Without written consent from Binance, the following commercial uses of Binance data are prohibited:

  1. Trading services that make use of Binance quotes or market bulletin board information.
  2. Data feeding or streaming services that make use of any market data of Binance.
  3. Any other websites/apps/services that charge for or otherwise profit from (including through advertising or referral fees) market data obtained from Binance.

You hereby understand and agree that Binance will not be liable for any losses or damages arising out of or relating to: (a) any inaccuracy, defect, or omission of digital assets price data, (b) any error or delay in the transmission of such data, (c) interruption in any such data, (d) regular or unscheduled maintenance carried out by Binance and service interruption and change resulting from such maintenance, (e) any damages incurred by other users’ actions, omissions or violation of these terms, (f) any damage caused by illegal actions of other third parties or actions without authorized by Binance; and (g) other exemptions mentioned in disclaimers and platform rules issued by Binance.

How to Download Historical Market Data on Binance | Binance Support (2024)

FAQs

How to Download Historical Market Data on Binance | Binance Support? ›

Introducing Historical Market Data from Binance.US | Download for Free – Binance.US.

How to extract historical data from Binance? ›

USDⓈ-M Futures transaction history
  1. Choose "Futures Order" from the menu.
  2. From "Futures Orders", choose "Transaction History"
  3. Click "USDⓈ-M Futures", and click "Export Complete transaction history". Specify the trade period and download the file.
May 23, 2024

How to download Binance trade history? ›

On the web
  1. Log in to your Binance.US account. Then, hover over the User Profile button in the top-right corner and click 'Export Reports' from the drop-down menu. ...
  2. Click 'Generate Reports' to continue.
  3. To customize your report, select the Asset, Transaction Type, Date Range, and File Format, available as a . CSV or .
Aug 21, 2023

Is Binance historical data free? ›

Introducing Historical Market Data from Binance.US | Download for Free – Binance.US.

How do I download historical data from Crypto? ›

You can download historical Bitcoin data from various cryptocurrency exchanges, financial data providers, or use specialized platforms that offer such data. Popular sources include Coinbase, Binance, or financial data services like Yahoo Finance.

Can I download historical data from TradingView? ›

To export data from your account, click on the "Export data..." button in the broker's dropdown menu: The information from each tab is exported individually. If you click on the export button, the information will be downloaded from the selected tab in the dropdown list.

Does Binance keep records? ›

We hold your personal data to ensure you can keep using Binance services. This is necessary for the reasons outlined in our Privacy Notice, including meeting legal requirements related to taxation, accounting, Anti-Money Laundering, handling disputes and legal claims, or other reasons of which we might inform you.

Does Binance have trade history? ›

First, open Binance using the web version and sign in using your established credentials. Navigate to “Trade” on the top left corner and click on “Spot”. Scroll down to the bottom and on the left hand side you will see the “Trade History” button.

How do I get a CSV file from Binance? ›

Binance Statements CSV
  1. Click on 'Generate all statements' in the top-right corner.
  2. Select a custom time period (max range is 12 months)
  3. Select 'All' for both Account and Coin, and uncheck 'Hide transfer record'
  4. Click 'Generate' and download the file when ready.
Jun 18, 2023

How do I download a statement from Binance? ›

How To Download Your Binance P2P P&L Statement
  1. Click on the download icon on the right side of the page.
  2. A pop-up window will appear on the screen, asking you to select the period for the statement.
  3. Choose or select your desired period and click [Export].
  4. The status will be shown as “Exporting”.
Jan 9, 2023

Where can I find historical trading data? ›

Online brokerage sites such as eTrade and TD Ameritrade or apps like Robinhood will have both real-time and historical quote data for customers and usually limited access for non-customers as well. Financial websites like Motley Fool or Google Finance will also provide quote information for both stocks and indices.

What is the historical data limit for Binance API? ›

Another reason is because Binance has a very generous limit on its open API. This gives us a theoretical limit of retrieving 13 days worth of minute level price volume data from Binance for a trading pair. Which means we only need 27 seconds to retrieve each year's worth of price history.

Does Binance.US have an API? ›

API keys are 64-character randomized strings that effectively acts as a stand-in for your Binance.US email and password. API keys allow third-party platforms or entities to access your account and even perform actions–such as trades and withdrawals–on your behalf.

How to download historical market data on Binance? ›

How to download the data from the Binance website?
  1. Log in to your Binance account and scroll down to the footer. ...
  2. You can use the filters on the side to view each category.
  3. Select the data you want to download.
  4. You may view the field information of the data before downloading.

How do I download crypto transaction history? ›

In the left navigation panel, select the currency you're interested in (e.g. Bitcoin). If you have transaction history for that currency, there will be a Download button on the right next to the search bar. Click Download and select the wallet(s) for which you want to export transaction history from the drop-down menu.

Can I report crypto from previous years? ›

The best idea is to amend your tax return from whichever year(s) you didn't include your crypto trades. You have three years from the date that you filed your return to file an amended return.

How do I see my old history on Binance? ›

Log into your Binance account. Navigate to wallet. select Spot. Choose the coin and then view the transaction history.

How do I Export spot history from Binance? ›

The first step is to open your Binance dashboard and hover over Orders. Click Spot Order. Click Order History. Click Export.

Is Binance API free? ›

Hello Jordi, using the API is free and you do not need to pay any fees. Binance API Documentation Using the information in this article, you can write a bot and make purchases and sales in markets such as spot and futures via the API.

How to generate a tax report from Binance? ›

How to generate and download my tax report?
  1. Click [Tax Reports] at the top.
  2. You will see an overview of your tax reports, a summary of your capital gains and income gains, and your transaction history below. ...
  3. Read and agree to the disclaimer and click [Generate].
Feb 6, 2023

Top Articles
Latest Posts
Article information

Author: Foster Heidenreich CPA

Last Updated:

Views: 5849

Rating: 4.6 / 5 (56 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Foster Heidenreich CPA

Birthday: 1995-01-14

Address: 55021 Usha Garden, North Larisa, DE 19209

Phone: +6812240846623

Job: Corporate Healthcare Strategist

Hobby: Singing, Listening to music, Rafting, LARPing, Gardening, Quilting, Rappelling

Introduction: My name is Foster Heidenreich CPA, I am a delightful, quaint, glorious, quaint, faithful, enchanting, fine person who loves writing and wants to share my knowledge and understanding with you.