There is a setting object which can be modified at runtime to customize the dynts environment. To access the object type:
from dynts.conf settings
The setting class contains configuration parameters used in dynts.
- backend¶
the default dynts.TimeSeries backend class, Default zoo.
- concat_operator¶
The operator for concatenating expressions. Default ,.
- default_loader¶
Default dynts.data.TimeSerieLoader class. Default None. If this is None the dynts.data.TimeSerieLoader class will be used as loder.
- default_provider¶
Default dynts.data.DataProvider code. Default "YAHOO".
- field_separator¶
Character used to separate tickers from fields and providers. Default :.
- months_history¶
the default number of months of history. Default: 12.
- proxies¶
dictionary of proxy servers. Default {}. If you need to use a proxy server to access the web:
from dynts.conf import settings settings.proxies['http'] = 'http://yourproxy.com:80'
To change settings:
from dynts.conf import settings
settings.default_provider = 'GOOGLE'