Security trades

​

Retrieves a security intraday trades information

Path Parameters

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

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).

Body·

required
application/json

TradeRequest

  • The date and time to retrieve trades from. This must be the same day as the dateTimeTo day and before dateTimeTo.

  • The date and time to retrieve trades to. This must be the same day as the dateTimeFrom day and after dateTimeFrom.

Responses

  • application/json
Request Example for post/pricing/trades/{security}/v2
curl https://test-market-data-api.openmarkets.com.au/pricing/trades/CBA.ASX@AUX/v2 \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "dateTimeFrom": "2018-05-03T10:00:00",
  "dateTimeTo": "2018-05-03T11:00:00"
}'
[
  {
    "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",
    "conditionCodes": "XT",
    "reason": "BID"
  },
  {
    "securityCode": "CBA",
    "exchange": "ASX",
    "dataSource": "AUX",
    "tradeNumber": 200016971,
    "tradeGmtDateTime": "2018-05-03T00:56:04.12",
    "tradePrice": 7412,
    "tradeVolume": 60,
    "tradeValue": 4447.2,
    "tradeDateTime": "2018-05-03T10:56:04.12",
    "conditionCodes": "XT",
    "reason": "ASK"
  }
]