Skip to content
Select products...

Quickstart

Terminal window
pip install -U volue-insight-timeseries

Import the library and connect using your authentication credentials:

import volue_insight_timeseries
session = volue_insight_timeseries.Session(
client_id='client id',
client_secret='client secret'
)

Get a curve object by name and fetch data. There are 4 main curve types: TIME_SERIES, TAGGED, INSTANCES, and TAGGED_INSTANCES. Each type has its own methods for fetching time series data, and each method returns a TS object containing the curve data.

curve = session.get_curve(name='tt de con °c cet min15 s')
ts = curve.get_data(data_from="2018-06-01", data_to="2018-06-08")
curve = session.get_curve(name='name of tagged curve')
# Get available tags with: tags = curve.get_tags()
ts = curve.get_data(tag='Avg', data_from="2018-01-01", data_to="2018-01-05")
curve = session.get_curve(name='tt de con ec00 °c cet min15 f')
# Search available instances:
# curve.search_instances(issue_date_from='2018-01-01', issue_date_to='2018-01-01')
ts = curve.get_instance(issue_date='2018-01-01T00:00')
curve = session.get_curve(name='tt de con ec00ens °c cet min15 f')
# A combination of TAGGED and INSTANCES curves
ts = curve.get_instance(issue_date='2018-01-01T00:00', tag='Avg')

Convert the TS object to a pandas.Series or pandas.DataFrame:

pd_s = ts.to_pandas() # TS → pandas.Series
pd_df = pd_s.to_frame() # pandas.Series → pandas.DataFrame