MCPcopy Create free account
hub / github.com/FinancialComputingUCL/LOBFrame / process_stock_files

Function process_stock_files

loggers/analysis.py:65–76  ·  view source on GitHub ↗
(file_list)

Source from the content-addressed store, hash-verified

63 }
64
65def process_stock_files(file_list):
66 stock_data = {
67 'Mids': [], 'Spreads': [], 'Best_Ask_Volume': [], 'Best_Bid_Volume': [],
68 'Volatility_10': [], 'Volatility_50': [], 'Volatility_100': [],
69 'Levels_Ask_Side': [], 'Levels_Bid_Side': [], 'Seconds_Horizon_10': [],
70 'Seconds_Horizon_50': [], 'Seconds_Horizon_100': []
71 }
72 for f in file_list:
73 file_data = process_file(f)
74 for key in stock_data:
75 stock_data[key].extend(file_data[key])
76 return stock_data
77
78def process_stock(s):
79 files = sorted(glob.glob(f"../data/nasdaq/unscaled_data/{s}/*"))

Callers

nothing calls this directly

Calls 1

process_fileFunction · 0.70

Tested by

no test coverage detected