Security time series
Get a security historical time series
Path Parameters
- Type: stringsecurityrequired
The security in the form of 'securitycode.exchange@datasource'.
Query Parameters
- Type: stringenumfrequency
The frequency of the time series.
valuesDailyWeeklyMonthlyQuarterlyYearly - Type: stringFormat: datedate
From requiredThe date to retrieve time series from. Must be on or after 1900-01-01 and before dateTo.
- Type: stringFormat: datedate
To requiredThe date to retrieve time series to. Must be after dateFrom.
Headers
- Type: stringX
- Request - I D The unique identifier of the request. It is used for identifying the request when using updates. It is recommended that this be set to a globally unique identifier (GUID).
Responses
- application/json
Request Example for get/pricing/timeseries/{security}/v2
curl 'https://test-market-data-api.openmarkets.com.au/pricing/timeseries/CBA.ASX@AUX/v2?frequency=Daily&dateFrom=2018-03-03&dateTo=2018-03-04' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
[
{
"openPrice": 7698,
"highPrice": 8184.999999999999,
"lowPrice": 7250,
"closePrice": 7595,
"totalVolume": 1523478,
"totalValue": 11593608746.4704,
"tradeCount": 164,
"timeSeriesDate": "2018-03-05T00:00:00",
"marketVwap": 7626.16270976353,
"adjustmentFactor": 0.7887
},
{
"openPrice": 7595,
"highPrice": 7710,
"lowPrice": 7540,
"closePrice": 7688,
"totalVolume": 1104223,
"totalValue": 8452113901.22,
"tradeCount": 151,
"timeSeriesDate": "2018-03-06T00:00:00",
"marketVwap": 7626.16270976353,
"adjustmentFactor": 0.7887
}
]
