From 8c8be1e54c4e399b900567b6f39c9d8937866ec4 Mon Sep 17 00:00:00 2001 From: Joe Date: Mon, 27 Jun 2022 22:37:54 +0800 Subject: [PATCH 1/2] Add createdDateUTC --- .../dto/endpoint/positions/get/otc/v2/OpenPositionData.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/IGWebApiClient/Model/dto/endpoint/positions/get/otc/v2/OpenPositionData.cs b/IGWebApiClient/Model/dto/endpoint/positions/get/otc/v2/OpenPositionData.cs index f46a944..f074126 100644 --- a/IGWebApiClient/Model/dto/endpoint/positions/get/otc/v2/OpenPositionData.cs +++ b/IGWebApiClient/Model/dto/endpoint/positions/get/otc/v2/OpenPositionData.cs @@ -14,6 +14,10 @@ public class OpenPositionData{ /// public string createdDate { get; set; } /// + ///UTC Date the position was opened + /// + public string createdDateUTC { get; set; } + /// ///Deal identifier /// public string dealId { get; set; } From 9ce0197d69636f29c9ebb9f11e253fc5ca53e323 Mon Sep 17 00:00:00 2001 From: Joe Date: Tue, 28 Jun 2022 01:40:11 +0800 Subject: [PATCH 2/2] Add dealReference to param --- .../endpoint/positions/create/otc/v2/CreatePositionRequest.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/IGWebApiClient/Model/dto/endpoint/positions/create/otc/v2/CreatePositionRequest.cs b/IGWebApiClient/Model/dto/endpoint/positions/create/otc/v2/CreatePositionRequest.cs index 2e695d2..f878976 100644 --- a/IGWebApiClient/Model/dto/endpoint/positions/create/otc/v2/CreatePositionRequest.cs +++ b/IGWebApiClient/Model/dto/endpoint/positions/create/otc/v2/CreatePositionRequest.cs @@ -69,5 +69,9 @@ public class CreatePositionRequest{ ///Currency. Restricted to available instrument currencies /// public string currencyCode { get; set; } + /// + /// A user-defined reference identifying the submission of the order [Constraint: Pattern(regexp="[A-Za-z0-9_\\-]{1,30}")] + /// + public string dealReference { get; set; } } }