MCPcopy
hub / github.com/microsoft/qlib / _expression

Method _expression

qlib/data/cache.py:354–359  ·  view source on GitHub ↗

Get expression data using cache. Override this method to define how to get expression data corresponding to users' own cache mechanism.

(self, instrument, field, start_time, end_time, freq)

Source from the content-addressed store, hash-verified

352 raise NotImplementedError("Implement this function to match your own cache mechanism")
353
354 def _expression(self, instrument, field, start_time, end_time, freq):
355 """Get expression data using cache.
356
357 Override this method to define how to get expression data corresponding to users' own cache mechanism.
358 """
359 raise NotImplementedError("Implement this method if you want to use expression cache")
360
361 def update(self, cache_uri: Union[str, Path], freq: str = "day"):
362 """Update expression cache to latest calendar.

Callers 1

expressionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected