RequestHedgingPositions
Get a list of open positions of the specified hedge account
Request format
{
"RequestId": "2c4c0f71-c5d1-4bff-85f0-4e4147d655e4",
"AccountId": "602-1",
"RequestName": "RequestHedgingPositions"
}
Request parameters:
| Name | Description |
|---|---|
| RequestId | Unique request GUID |
| AccountId | Account string identifier |
| RequestName | Request type |
Master server response
{
"Positions": [{
"Platform": "Mt4",
"Type": "OrderRecord",
"TicketType": "OpenedPosition",
"TicketId": 0,
"Login": 0,
"Symbol": "[CAC40]",
"Digits": 0,
"Status": "Unrealized",
"Cmd": "Buy",
"State": "OpenNormal",
"Activation": "None",
"Reason": "Client",
"Volume": 1.0,
"VolumeInUsd": 0.0,
"OpenTime": "0001-01-01 00:00:00:000",
"OpenPrice": 5046.6,
"Commission": 0.0,
"CommissionAgent": 0.0,
"Swaps": 0.0,
"Profit": 0.0,
"ProfitWithTaxesUsd": 0.0,
"Taxes": 0.0,
"Timestamp": "2020-04-12 02:30:45:000",
"OpenPriceFromMarketInPoints": 0,
"ABook": 0,
"IsReal": false
}],
"RequestId": "692a05b8-d060-4536-b433-a1ab5c9893e0",
"Errors": [],
"ResponseMaster": "ResponseHedgingPositions"
}
Currently, only the following fields are used:
Timestamp
Symbol
Cmd
OpenPrice
Volume