Time Series Data

Time Series Data

Many of our Market Signal Platform Data endpoints access time series data--data that you can time-window via dates and times. These endpoints use our GET /data method with different key and subkey path parameters.

HTTP requests, like the following Dividends request, follow the GET /data request pattern.

Request Pattern:

BASE_URL/data/core/DATASET/:key/:subkey?token=YOUR_TOKEN&YOUR_QUERY_PARAMS

Example Request:

You can execute the following example request after applying a valid token in place of YOUR_TOKEN in the requests.

https://api.marketsignal.six-group.com/v1/data/CORE/SIX_1BBO/:ISIN?token=YOUR_TOKEN

Need a token? Start your Free Trial, and then apply a token to your API Reference session.

Request Components:

ComponentDescription
BASE_URLhttps://api.marketsignal.six-group.com/v1/
DATASETDataset ID as specified in the endpoint's reference page. For example, the 1BBO reference page specifies Dataset ID 1BBO.
:keyThe key is the primary index value to query on. For example, the symbol aapl is used as the key in method call /data/core/advanced_dividends/aapl. The reference page's Path Parameters section marks the key attribute. For example, the 1BBO endpoint's key attribute is symbol.
:subkeyOptional. A subkey is a secondary index value to query on, in addition to the key. For example, the reference ID 2733643 is used as the subkey in method call. If a dataset has a secondary index, the reference page's Path Parameters section marks the subkey attribute with the label subkey.
TOKENAn API Token authorized with read permissions for the dataset.
You can fetch multiple primary index (:key) of time series endpoint by specifiying a Comma separated lits, for example: [https://api.marketsignal.six-group.com/v1/data/CORE/SIX\_1BBO/ISIN](https://api.marketsignal.six-group.com/v1/data/CORE/SIX_1BBO/ISIN),ISIN2,ISIN3?token\=YOUR\_TOKEN
Need a token? Start your Free Trial

Query Parameters

You can use query parameters with time series endpoints to filter results based on supported criteria. In particular, date filtering is available through the Supported Ranges parameters.

Date Filtering

Some endpoints include a date-based index that allows you to filter data by a specific date or range of dates. The relevant date attribute is identified in the endpoint's Response Attributes section (look for the date label).

You can filter by:

ParameterTypeDetails
rangestringOptional.
Returns data for a given range. Supported ranges described below.
calendarbooleanOptional.
Boolean. Used in conjunction with range to return data in the future.
limitnumberOptional.
Limits the number of results returned. Defaults to 1 when no date or range {subkey} is specified
offsetnumberOptional.
Provides pagination.
Skip n rows (≥ 0).
subattributestringOptional.
Allows you to query time series by fields in the result set. All time series data is stored by ID, then key, then subkey. If you want to query by any other field in the data, you can use subattribute.
For example, news may be stored as /news/{symbol}/{newsId}, and the result data returns the keys id, symbol, date, sector, hasPaywall, lang
By default you can only query by symbol or id. Maybe you want to query all news where the language is English.

Your query would be: /time-series/news?subattribute=lang|en
The syntax is subattribute={keyName1}|{value1},{keyName2}|{value2}

Both the key name and the value are case sensitive. A pipe symbol (|) is used to represent "equal to", and a tilde symbol (~) is used to represent "not equal to".
dateFieldstringOptional.
All time series data is stored by a single date field, and that field is used for any range or date parameters. You may want to query time series data by a different date in the result set. To change the date field used by range queries, pass the case sensitive field name with this parameter.
For example, corporate buy back data may be stored by announce date, but also contains an end date which you'd rather query by. To query by end date you would use dateField=endDate&range=last-week
fromstringOptional.
Returns data on or after the given from date. Format YYYY-MM-DD
tostringOptional.
Returns data on or before the given to date. Format YYYY-MM-DD
onstringOptional.
Returns data on the given date. Format YYYY-MM-DD
lastnumberOptional.
Returns the latest n number of records in the series
nextnumberOptional.
Returns the next n number of records in the series
firstnumberOptional.
Returns the first n number of records in the series
filterstringOptional.
The standard filter parameter. Filters return data to the specified comma delimited list of keys (case-sensitive)
formatstringOptional.
The standard format parameter (json or csv). Returns data as JSON by default.
sortstringOptional.
Specify the order of results, either ASC or DESC. Historical queries, including queries that use last, will default to descending date order (e.g. first record returned is most recent record). Forward looking queries, including queries that use first or specify calendar, will default to ascending date order (e.g. first record returned is nearest record in the future or from the start).
intervalnumberOptional.
Return every nth record in the result

Supported Ranges

ParameterDetails
todayReturns data for today
yesterdayReturns data for yesterday
ytdReturns data for the current year
last-weekReturns data for Sunday-Saturday last week
last-monthReturns data for the last month
last-quarterReturns data for the last quarter
dUse the short hand d to return a number of days. Example: 2d returns 2 days.
If calendar=true, data is returned from today forward.
wUse the short hand w to return a number of weeks. Example: 2w returns 2 weeks.
If calendar=true, data is returned from today forward.
mUse the short hand m to return a number of months. Example: 2m returns 2 months.
If calendar=true, data is returned from today forward.
qUse the short hand q to return a number of quarters. Example: 2q returns 2 quarters.
If calendar=true, data is returned from today forward.
yUse the short hand y to return a number of years. Example: 2y returns 2 years.
If calendar=true, data is returned from today forward.
tomorrowCalendar data for tomorrow. Requires calendar=true
this-weekCalendar data for Sunday-Saturday this week. Requires calendar=true
this-monthCalendar data for current month. Requires calendar=true
this-quarterCalendar data for current quarter. Requires calendar=true
next-weekCalendar data for Sunday-Saturday next week. Requires calendar=true
next-monthCalendar data for next month. Requires calendar=true
next-quarterCalendar data for next quarter. Requires calendar=true
specific quarterUse the short hand Q[1-4]YYYY to return a specific quarter for a given year. Example: Q22020 returns from January 1, 2020 to March 31, 2020.
specific halfUse the short hand H[1-2]YYYY to return a specific half for a given year. Example: H12020 returns from January 1, 2020 to June 30, 2020.
specific yearUse the short hand YYYY to return a specific half for a given year. Example: 2020 returns from January 1, 2020 to December 31, 2020.
Query parameters may vary depending on the endpoint. For details on the parameters supported by a specific endpoint, refer to its reference page in the API documentation.