Data Format

Crypto

Introduction

Crypto data has trade and quote data. The files store the actual prices. The data time zone is UTC.

Folder Structure

The following table shows the paths of the Crypto data files:

ResolutionZip FileCSV File
Tick, second, and minutecrypto / <market> / <resolution> / <ticker> / <date>_<tickType>.zip<date>_<ticker>_<resolution>_<tickType>.csv
Hour and dailycrypto / <market> / <resolution> / <ticker>_<tickType>.zip<ticker>.csv

Each zip file contains one CSV file. For example, crypto / coinbase / minute / btceur / 20180404_trade.zip contains 20180404_btceur_minute_trade.csv. The hour and daily zip file names include the tick type, but the CSV file names don't. For example, crypto / coinbase / daily / btcusd_trade.zip contains btcusd.csv.

Bar Data

The following table shows the bar data, with example rows from the BTCEUR minute files of the coinbase market on April 4, 2018:

Data TypeResolutionsExample
Trade barSecond, minute, hour, and daily0,6060,6060,6048.83,6049.68,6.72374365
Quote barSecond, minute, hour, and daily0,6049.68,6049.68,6049.68,6049.68,2.22525012,6049.69,6049.69,6049.69,6049.69,0.98912614

Tick Data

Tick files have trade ticks and quote ticks. The following table describes the columns of trade ticks:

ColumnDescription
TimeMilliseconds since midnight
PriceTrade price
QuantityQuantity traded
Suspicious1 if the tick is suspicious and 0 otherwise

The following table describes the columns of quote ticks:

ColumnDescription
TimeMilliseconds since midnight
Bid PriceBest bid price
Bid SizeSize of the best bid
Ask PriceBest ask price
Ask SizeSize of the best ask
Suspicious1 if the tick is suspicious and 0 otherwise

LEAN also reads tick files that don't have the Suspicious column.

You can also see our Videos. You can also get in touch with us via Discord.

Did you find this page helpful?

Contribute to the documentation: