Skip to content

VolpiGiuliano/LOBSTER-data-labeler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

LOBSTER CSV

The function is useful if you want to use the CSV files from the LOBSTER website. The original files do not have any labels for the columns, this function labels the dataframe using Pandas. The message file is straightforward to label, but the order book can be problematic because we have different CSV files to choose from depending on the order book depth (level 10,50 and so on). The function can take care of that automatically.

Arguments

  • format_time: bool The format_time (defalult=False) if True adds a new column with time in HH:MM:SS.000000 format.
  • format_price: bool The format_price (defalult=False) if True shows all the prices in the "normal" format. For example, if a Bid price is $ 95.43 the LOBSTER file shows 9543000, with format_price=True the price becomes a numpy.float64 95.43.

Message type:

Columns names: 'Time', 'Type', 'Order_ID', 'Size', 'Price', 'Direction'

1707174637953


Order Book type:

'Ask_Price_1', 'Ask_Size_1', 'Bid_Price_1', 'Bid_Size_1'

  • How the CSV Order Book file is presented originally1707174082570

  • How the CSV Order Book file is presented after the function

    1707174149861


Contact me for any issue.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages