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.
- 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'
Order Book type:
'Ask_Price_1', 'Ask_Size_1', 'Bid_Price_1', 'Bid_Size_1'
-
How the CSV Order Book file is presented after the function
Contact me for any issue.