7

I have found out how to get historical price data from the cryptocompare API but the highest resolution is on a minute-base. Is there a (free) way to get historical tick-by-tick data (so on a second-resolution) for cryptocurrencies, ideally with a python API. I would like to train and backtest a model on that data. I can imagine that the high bandwith requirements of pulling so much data may be too much asked for a free API but maybe there is one...

Edit: I repeat, I am looking for free tick-by-tick (with a second-based timeframe) data. The question Cryptocurrency historical prices is not explicitly asking for this kind of data, and the only answer for tick-by-tick data regards to a paid service.

9
  • 1
    This is not a duplicate, as I am explicitly asking for tick-by-tick data, the other question you mentioned, is not referring to this kind of data Commented Jan 27, 2018 at 15:48
  • This 615MB file has 1-10 second resolution for bitcoin: api.bitcoincharts.com/v1/csv/krakenEUR.csv.gz, starts in 2014.
    – knb
    Commented Jan 27, 2018 at 18:11
  • Its a good start, would be nice to have also some data on other currencies as well. Commented Jan 28, 2018 at 17:23
  • I went through the data, as expected there are more values for the last year (meaning ticks in total), starting from 2017. For the gaps between the ticks, does it mean there was just no trades going on and therefore no price update, or was the price just not captured at all? Commented Jan 29, 2018 at 20:23
  • I don't know, sorry. I think every trading platform works a bit differently. Maybe have a look in the directory api.bitcoincharts.com/v1/csv - there are many other files from other platforms (and maybe even other cryptocurrencies, but I didn't look closely) Analysing this file was only a weekend project for me; I'm not really into cryptocurrencies.
    – knb
    Commented Jan 30, 2018 at 12:50

5 Answers 5

2

Tick data is available at cryptoarchive.com.au, for some pairs it's free.

2

You can use exchange's public APIs to get historical trade data, but look out for API rate limits as you can get IP based ban - been there.

If you're looking for order book tick by tick data or historical liquidations data, check out https://tardis.dev/ it's not free, but pricing is affordable and you can play around with data samples without API key (API access for first day of each month is free).

3
  • 1
    What use exchange's public APIs are you refering to? Please edit.
    – user4293
    Commented Jul 17, 2019 at 14:26
  • Depending on exchange you're interested in, but for example for bitmex check out bitmex.com/api/explorer especially /trade endpoint
    – Thad
    Commented Jul 17, 2019 at 17:22
  • 1
    first link is not open data. second one is behind a paywall and not 100% accessible to US users. please provide more information or this will be flagged as not open data.
    – albert
    Commented Jul 20, 2019 at 5:06
1

this seems old but I found this website: https://www.binance.com/en/landing/data#data-futures

Data from binance.

0

this api provides data since 2013 with 1 minute ticks https://rapidapi.com/lunarlabs/api/btc-ohlcv-history-api/pricing

-3

With exchange's public WebSocket API, you can get tick by tick level data. But I am aware that no data with that much detail are provided free.

edit: You can use exchange's API such as wss://api-pub.bitfinex.com/ws/2 to get data now and record it for sometime to get historical dataset. But this requires time.

In this case, we are providing historical raw WebSocket data. You can get free samples for every dataset at https://www.exchangedataset.cc .

3
  • This was flagged as spam. I won't delete it yet, but please edit the question to point to the free resources. I see no open data on the linked site.
    – philshem
    Commented Jan 7, 2020 at 7:42
  • I edited the original post. I wanted to let author know such an free data does not exist yet. Commented Jan 8, 2020 at 3:08
  • 1
    Link dead? Does not work for me right now. Commented Sep 27, 2022 at 21:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.