Recent security trades

​

Retrieves a security's most recent trade information

Path Parameters

  • The security in the form of 'securitycode.exchange@datasource'.

Query Parameters

  • Indicates whether the returned trades will be limited to the current day.

Headers

  • 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/trades/latest/{security}/v1
curl 'https://test-market-data-api.openmarkets.com.au/pricing/trades/latest/CBA.ASX@AUX/v1?todayOnly=true' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
[
  {
    "securityCode": "CBA",
    "exchange": "ASX",
    "dataSource": "AUX",
    "tradeNumber": 200016970,
    "tradeGmtDateTime": "2018-05-03T00:55:59.99",
    "tradePrice": 7410,
    "tradeVolume": 140,
    "tradeValue": 10374,
    "tradeDateTime": "2018-05-03T10:55:59.99"
  },
  {
    "securityCode": "BHP",
    "exchange": "ASX",
    "dataSource": "AUX",
    "tradeNumber": 200016985,
    "tradeGmtDateTime": "2018-05-03T00:55:59.99",
    "tradePrice": 3121,
    "tradeVolume": 500,
    "tradeValue": 156050,
    "tradeDateTime": "2018-05-03T10:55:59.99"
  }
]