Retrieve portfolio cash details.

​

Retrieve the portfolio cash details by code.

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.

  • Whether to start watching for updates if the method supports updates. The default is false.

Body·

required
application/json

PortfolioCashDetailsRequestV2

  • Array of portfolio codes. Note there is a maximum of 1000 portfolio codes.

Responses

  • application/json
Request Example for post/portfolios/cash/by-portfolio/v2
curl https://test-oms-api.openmarkets.com.au/portfolios/cash/by-portfolio/v2 \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "portfolioCodes": [
    "12546546351",
    "64654635141"
  ]
}'
[
  {
    "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
  }
]