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)
| 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. |