Retrieve portfolio positions.
Retrieve the portfolio positions by code.
Headers
- Type: stringX
- Request - I D max length:64The 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.
- Type: booleanUpdates
Whether to start watching for updates if the method supports updates. The default is false.
Body·
required
application/json
PortfolioPositionsRequestV2
- Type: array of string 1…1000portfolio
Codes requiredArray of portfolio codes. Note there is a maximum of 1000 portfolio codes.
- Type: booleaninclude
Portfolios With Same Cash Account Include portfolios that share the same cash account as the requested portfolio.
Responses
- application/json
Request Example for post/portfolios/positions/v2
curl https://test-oms-api.openmarkets.com.au/portfolios/positions/v2 \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"portfolioCodes": [
"12546546351",
"64654635141"
]
}'
[
{
"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
}
]
