Retrieve portfolio cash details updates.

​

Retrieve the portfolio cash details by code updates. First call POST /portfolios/cash/by-portfolio/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/cash/by-portfolio/updates/v2
curl https://test-oms-api.openmarkets.com.au/portfolios/cash/by-portfolio/updates/v2 \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
[
  {
    "versionStamp": 1834,
    "createDateTime": "2018-03-27T16:35:39.99",
    "updateDateTime": "2018-05-03T04:00:00.4",
    "portfolioCashCode": "12546546351",
    "externalValue": "",
    "portfolioCashName": "SMITH J A",
    "currencyCode": "AUD",
    "uploadSource": "",
    "cashBalance": 2500000,
    "unsettledBuyValue": 351300,
    "unsettledBuyCharges": 4995,
    "unsettledSellValue": 0,
    "unsettledSellCharges": 0,
    "yesterdayEquitySellValue": 0,
    "yesterdayEquitySellCharges": 0,
    "inMarketBuyValue": 148000,
    "inMarketSellValue": 0,
    "netCash": 1995705,
    "optionUnsettledBuyValue": 0,
    "optionUnsettledBuyCharges": 0,
    "optionUnsettledSellValue": 0,
    "optionUnsettledSellCharges": 0,
    "clearingHouseMargin": 0,
    "netUnsettledBuyValueToday": 356295,
    "netUnsettledSellValueToday": 0,
    "netUnsettledValueToday": -356295,
    "glv": 6364300,
    "freeEquity": 1995705,
    "totalInitialMargin": 0,
    "totalCFDRealisedProfit": 0,
    "totalCFDUnrealisedProfit": 0,
    "totalCFDCollateralValue": 0,
    "totalNonCFDMarketValue": 3864300,
    "realizedLossStartOfDayValue": 0,
    "marginLenderTotalFinancedValue": 0,
    "trustBalance": 2500000
  }
]