otp.modify_cache_config#
- modify_cache_config(cache_name, param_name, param_value, tick_type='ANY', symbol=None, db=None)#
Modify cache configuration via MODIFY_CACHE_CONFIG EP
- Parameters
cache_name (str) – Name of the cache to be deleted.
param_name (str) –
The name of the configuration parameter to be changed. Supported parameters:
inheritabilitytime_granularitytime_granularity_unitstimezoneallow_search_to_everyoneallow_delete_to_everyoneallow_update_to_everyone
param_value (Any) – New value of configuration parameter. Will be converted to string.
tick_type (str) – Tick type.
symbol (str, list of str, list of otq.Symbol,
onetick.py.Source, pd.DataFrame, optional) –symbolsparameter ofotp.run().db (str) – Database.
Examples
Simple cache config modification
>>> otp.modify_cache_config( ... cache_name="some_cache", ... param_name="time_granularity", ... param_value=3, ... tick_type="TRD", symbol="SYM", db="LOCAL", ... )
See also