Security live depth
Get a security's live depth
Path Parameters
- Type: stringsecurityrequired
The security in the form of 'securitycode.exchange@datasource'.
Query Parameters
- Type: integerFormat: int32ask
Level Max min:1The maximum ask level to retrieve up to.
- Type: integerFormat: int32bid
Level Max min:1The maximum bid level to retrieve up to.
- Type: "Price" or "Order"enumgroup
By Group levels by price or order
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/depth/{security}/v1
curl 'https://test-market-data-api.openmarkets.com.au/pricing/depth/CBA.ASX@AUX/v1?askLevelMax=10&bidLevelMax=10&groupBy=Price' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
[
{
"askPrice": 8000,
"askVolume": 3,
"askOrderCount": 1,
"askDataSources": [
"TM"
],
"bidPrice": 6960,
"bidVolume": 2,
"bidOrderCount": 1,
"bidDataSources": [
"CXA"
]
},
{
"askPrice": 8010,
"askVolume": 12,
"askOrderCount": 2,
"askDataSources": [
"TM"
],
"bidPrice": 6950,
"bidVolume": 5,
"bidOrderCount": 3,
"bidDataSources": [
"CXA"
]
}
]
