Security time series intra day
Get a security intra day time series
Path Parameters
- Type: stringsecurityrequired
The security in the form of 'securitycode.exchange@datasource'.
Query Parameters
- Type: "Minutes" or "Trades"enumfrequency
The frequency type. The following are the restrictions when filtering by a date range for the following consolidation intervals: Less than 10 minutes - 7 days, 10 to 30 minutes - 30 days, 30 to 60 minutes - 60 days. For a frequency of Trades the maximum number of days requested is equal to twice the consolidation interval to a maximum of 60 days.
- Type: integerFormat: int32consolidation
Interval requiredIf frequency is set to Trades this sets the number of trades that will be consolidated on each row. If frequency is set to Minutes this sets the number of minutes that will be consolidated on each row and must be one of the following numbers: 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60.
- Type: stringFormat: date-timedate
Time From requiredThe date and time to retrieve time series from. Must be before dateTimeTo.
- Type: stringFormat: date-timedate
Time To requiredThe date and time to retrieve time series to. Must be after dateTimeFrom.
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
curl 'https://test-market-data-api.openmarkets.com.au/pricing/timeseriesintraday/CBA.ASX@AUX/v1?frequency=Minutes&consolidationInterval=1&dateTimeFrom=2018-02-04T00%3A00%3A00&dateTimeTo=2018-03-04T00%3A00%3A00' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
[
{
"openPrice": 7433,
"highPrice": 7535,
"lowPrice": 7433,
"closePrice": 7535,
"totalVolume": 203,
"totalValue": 15092.05,
"tradeCount": 3,
"timeSeriesDateTime": "2018-04-02T12:16:00"
},
{
"openPrice": 7535,
"highPrice": 7540,
"lowPrice": 7521,
"closePrice": 7528,
"totalVolume": 486,
"totalValue": 36586.08,
"tradeCount": 7,
"timeSeriesDateTime": "2018-04-02T12:17:00"
}
]
