Vincent 11 Report post Posted December 4, 2014 Hi, ApiOrderActionResponseDTO has a property call "OrderActionTypeId", could someone tell me where is lookup values for "OrderActionTypeId"? Thanks. Share this post Link to post
Physicsman 25 Report post Posted December 4, 2014 Hello Vincent, The OrderActionTypeId property is just the TypeId for an order. The lookup is in the "(Order) Type Codes" section of the following page: http://docs.labs.cityindex.com/#APICodesList.htm. I shall have additional notes added to the documentation for the OrderActionTypeId property to make this clear. As always, we appreciate your bringing this to our attention. Share this post Link to post
Vincent 11 Report post Posted December 5, 2014 Hi, I got a response with "OrderActionTypeId" = 4 which is not described in "(Order) Type Codes" section: http://docs.labs.cityindex.com/#APICodesList.htm How do you interpret it? Thanks. This is a response I received when I partially close an open position: { "Status": 1, "StatusReason": 1, "OrderId": 516622020, "Orders": [ { "OrderId": 516622020, "StatusReason": 1, "Status": 9, "OrderTypeId": 1, "Price": 17922.5, "Quantity": 0, "TriggerPrice": 0, "CommissionCharge": 0, "IfDone": [], "GuaranteedPremium": 0, "OCO": null } ], "Quote": null, "Actions": [ { "ActionedOrderId": 516621958, "ActioningOrderId": 516622020, "Quantity": 1, "ProfitAndLoss": -3, "ProfitAndLossCurrency": "GBP", "OrderActionTypeId": 3 }, { "ActionedOrderId": 516621960, "ActioningOrderId": 516622020, "Quantity": 1, "ProfitAndLoss": 0, "ProfitAndLossCurrency": null, "OrderActionTypeId": 4 }, { "ActionedOrderId": 516621959, "ActioningOrderId": 516622020, "Quantity": 1, "ProfitAndLoss": 0, "ProfitAndLossCurrency": null, "OrderActionTypeId": 4 } ], "ErrorMessage": null} Share this post Link to post
Physicsman 25 Report post Posted December 5, 2014 Hello Vincent, Apologies, when I looked through the source code I was led astray by a mapper code line! Bad mapper! Looking more closely into it, I've accessed the complete list of OrderActionTypeIds and have tabulated them below. I'll also add a new section into the API Documentation with the lookup values, and correct the reference for the OrderActionTypeId property. 1 = Opening Order 2 = Full Close 3 = Part Close 4 = Quantity Decrease 5 = Quantity Increase 6 = Add Order 7 = Rolled Order 8 = Cancelled Order Share this post Link to post