OpenAPI

Over the next months we are adding improvements to ENS position events.

The number, orders and meanings of these events will not change but for messages with PositionEvent=Deleted a few more fields are added.

An example is provided below:

Position Delete Event (Current)Position Delete Event (after upgrade)
{
	"AccountId": "95500/XXXXX",
	"AccountKey": "xrnhYHhZQQ-8p4o9RPIZXX==",
	"ActivityTime": "2023-01-12T01:39:03.176666Z",
	"ActivityType": "Positions",
	"BuySell": "Buy",
	"ClientId": "11968XXX",
	"ClientKey": "2WdTKtQL0qc0RMu0T662XX==",
	"ClientName": "Clientxxxxx",
	"ExternalReference": "",
	"OptionData": {},
	"PositionEvent": "Deleted",
	"PositionId": "63471312212",
	"PriceType": "Amount",
	"SequenceId": "1168625262"
}
{
    "AccountId": "95500/XXXXX",
    "AccountKey": "xrnhYHhZQQ-8p4o9RPIZ9A==",
    "ActivityTime": "2023-01-26T01:12:07.950000Z",
    "ActivityType": "Positions",
    "Amount": 1,
    "AssetType": "Stock",
    "BuySell": "Sell",
    "ClientId": "11968458",
    "ClientKey": "2WdTKtQL0qc0RMu0T662XX==",
    "ClientName": "Clientxxx",
    "Commission": 6,
    "ConversionRate": 0.91168865,
    "CorrelationKey": "0cb789c4-3a33-4521-b912-8928c1694266",
    "CurrencyCode": "USD",
    "Direction": 0,
    "ExchangeFee": 0.01,
    "ExecutionTime": "2023-01-25T18:48:11.556000Z",
    "ExternalReference": "",
    "OpenPrice": 29.85,
    "OptionData": {},
    "OriginatingToolId": 2001,
    "PositionEvent": "Deleted",
    "PositionId": "6358782782",
    "PriceType": "Amount",
    "SequenceId": "1184962073",
    "SourceOrderId": "5076110673",
    "Symbol": "INTC:xnas",
    "TotalCost": 6.01,
    "TradedValue": 29.85,
    "Uic": 247,
    "ValueDate": "2023-01-27"
}