Retrieve portfolio positions updates.

​

Retrieve the portfolio position details by code updates. First call POST /portfolios/positions/v2 with the Updates header set to true, then call this endpoint with the same X-Request-ID to receive the changes since the previous call.

Headers

  • The unique identifier of the request. This will be used for identifying the request using updates. It is recommended that this be set to a globally unique identifier (GUID), 64 characters maximum.

Responses

  • application/json
Request Example for get/portfolios/positions/updates/v2
curl https://test-oms-api.openmarkets.com.au/portfolios/positions/updates/v2 \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
[
  {
    "sharingCashAccount": false,
    "portfolioCode": "12546546351",
    "securityCode": "BHP",
    "exchange": "ASX",
    "underlyingSecurityCode": "",
    "underlyingExchange": "",
    "versionStamp": 8452,
    "updateReasonMask": 3,
    "createDateTime": "2018-03-27T16:35:39.99",
    "updateDateTime": "2018-05-03T04:00:00.4",
    "volumeStartOfDay": 1000,
    "averagePriceStartOfDay": 3050,
    "averagePrice": 3092,
    "buyVolume": 100,
    "buyValue": 351300,
    "buyCharges": 4995,
    "sellVolume": 0,
    "sellValue": 0,
    "sellCharges": 0,
    "cfdLodgedVolume": 0,
    "optionLodgedVolume": 0,
    "systemLockedVolume": 0,
    "userLockedVolume": 0,
    "pledgedTakeOverVolume": 0,
    "inMarketBuyVolume": 0,
    "inMarketBuyValue": 0,
    "inMarketSellVolume": 200,
    "inMarketSellValue": 702600,
    "availableVolume": 1000,
    "costValue": 3401300,
    "marketValue": 3864300,
    "totalProfit": 463000,
    "todayProfit": 46300,
    "closedProfit": 0,
    "exposure": 3864300,
    "sfcVariationMargin": 0,
    "averageBuyPrice": 3513,
    "averageSellPrice": 0,
    "actualVolume": 1100,
    "shortSellVolume": 0,
    "historicalPrice": 3050,
    "historicalProfit": 0,
    "hedgeExp": 0,
    "actualValue": 3864300,
    "unsponsoredBuyVolume": 0,
    "unsponsoredBuyValue": 0,
    "unsponsoredSellVolume": 0,
    "unsponsoredSellValue": 0,
    "unsponsoredInMarketBuyVolume": 0,
    "unsponsoredInMarketBuyValue": 0,
    "unsponsoredInMarketSellVolume": 0,
    "unsponsoredInMarketSellValue": 0,
    "unsponsoredStartOfDayVolume": 0,
    "historicalProfitStartOfDay": 0,
    "totalHistoricalProfit": 0,
    "totalDiffMktValProfitDay": 0,
    "realizedLossAccumulatedTodayValue": 0,
    "securityType": 100
  }
]