quantlib.dataloading package

Submodules

quantlib.dataloading.db module

class quantlib.dataloading.db.AnalysisCacheDB(cache_dir: Path)

Bases: object

get_hash(bar_history: BarHistory, config: SimpleAnalyzerConfig) str
retrieve_analysis(bar_history: BarHistory, config: SimpleAnalyzerConfig) None | list[AnalysisResult]
save_analysis(bar_history: BarHistory, config: SimpleAnalyzerConfig, analysis_result: list[AnalysisResult])
class quantlib.dataloading.db.CacheIndex(filepath: Path)

Bases: object

get_pickle_path(hash_val: str) Path
has_hash(hash_val: str) bool
init() CacheIndex
load() dict
update_index(hash_val: str, path: Path)

quantlib.dataloading.loader module

class quantlib.dataloading.loader.AnalysisLoader(analysis_config: SimpleAnalyzerConfig, bar_history: BarHistory)

Bases: object

load() list[AnalysisResult]
run() Generator[AnalysisResult, None, None]

quantlib.dataloading.remote_loader module

class quantlib.dataloading.remote_loader.AnalysisLoader(analysis_config: SimpleAnalyzerConfig, bar_history: BarHistory, url: str = 'http://127.0.0.1:3000/load')

Bases: object

app_version = '0.1.3'
load() list[AnalysisResult]
reset_cache() AnalysisLoader
run() list[AnalysisResult]

Module contents