Skip to content

Commit 67d2956

Browse files
committed
Origin Pull Request IG-Group#23 Add missing parameters in request/response
1 parent 3620d36 commit 67d2956

File tree

2 files changed

+126
-116
lines changed

2 files changed

+126
-116
lines changed
Lines changed: 71 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,75 @@
11
namespace dto.endpoint.positions.create.otc.v2
22
{
33

4-
public class CreatePositionRequest{
5-
///<Summary>
6-
///Instrument epic identifier
7-
///</Summary>
8-
public string epic { get; set; }
9-
///<Summary>
10-
///Instrument expiry
11-
///</Summary>
12-
public string expiry { get; set; }
13-
///<Summary>
14-
///Deal direction
15-
///</Summary>
16-
public string direction { get; set; }
17-
///<Summary>
18-
///Deal size
19-
///</Summary>
20-
public decimal? size { get; set; }
21-
///<Summary>
22-
///Deal level
23-
///</Summary>
24-
public decimal? level { get; set; }
25-
///<Summary>
26-
///Order type
27-
///</Summary>
28-
public string orderType { get; set; }
29-
///<Summary>
30-
///True if a guaranteed stop is required
31-
///</Summary>
32-
public bool guaranteedStop { get; set; }
33-
///<Summary>
34-
///Stop level
35-
///</Summary>
36-
public decimal? stopLevel { get; set; }
37-
///<Summary>
38-
///Stop distance
39-
///</Summary>
40-
public decimal? stopDistance { get; set; }
41-
///<Summary>
42-
///Whether the stop has to be moved towards the current level in case of a favourable trade
43-
///</Summary>
44-
public bool trailingStop { get; set; }
45-
///<Summary>
46-
///increment step in pips for the trailing stop
47-
///</Summary>
48-
public decimal? trailingStopIncrement { get; set; }
49-
///<Summary>
50-
///True if force open is required
51-
///</Summary>
52-
public bool forceOpen { get; set; }
53-
///<Summary>
54-
///Limit level
55-
///</Summary>
56-
public decimal? limitLevel { get; set; }
57-
///<Summary>
58-
///Limit distance
59-
///</Summary>
60-
public decimal? limitDistance { get; set; }
61-
///<Summary>
62-
///Lightstreamer price quote identifier
63-
///</Summary>
64-
public string quoteId { get; set; }
65-
///<Summary>
66-
///Currency. Restricted to available instrument currencies
67-
///</Summary>
68-
public string currencyCode { get; set; }
69-
}
4+
public class CreatePositionRequest
5+
{
6+
///<Summary>
7+
///Instrument epic identifier
8+
///</Summary>
9+
public string epic { get; set; }
10+
///<Summary>
11+
///Instrument expiry
12+
///</Summary>
13+
public string expiry { get; set; }
14+
///<Summary>
15+
///Deal direction
16+
///</Summary>
17+
public string direction { get; set; }
18+
///<Summary>
19+
///Deal size
20+
///</Summary>
21+
public decimal? size { get; set; }
22+
///<Summary>
23+
///Deal level
24+
///</Summary>
25+
public decimal? level { get; set; }
26+
///<Summary>
27+
///Order type
28+
///</Summary>
29+
public string orderType { get; set; }
30+
///<Summary>
31+
///True if a guaranteed stop is required
32+
///</Summary>
33+
public bool guaranteedStop { get; set; }
34+
///<Summary>
35+
///Stop level
36+
///</Summary>
37+
public decimal? stopLevel { get; set; }
38+
///<Summary>
39+
///Stop distance
40+
///</Summary>
41+
public decimal? stopDistance { get; set; }
42+
///<Summary>
43+
///Whether the stop has to be moved towards the current level in case of a favourable trade
44+
///</Summary>
45+
public bool trailingStop { get; set; }
46+
///<Summary>
47+
///increment step in pips for the trailing stop
48+
///</Summary>
49+
public decimal? trailingStopIncrement { get; set; }
50+
///<Summary>
51+
///True if force open is required
52+
///</Summary>
53+
public bool forceOpen { get; set; }
54+
///<Summary>
55+
///Limit level
56+
///</Summary>
57+
public decimal? limitLevel { get; set; }
58+
///<Summary>
59+
///Limit distance
60+
///</Summary>
61+
public decimal? limitDistance { get; set; }
62+
///<Summary>
63+
///Lightstreamer price quote identifier
64+
///</Summary>
65+
public string quoteId { get; set; }
66+
///<Summary>
67+
///Currency. Restricted to available instrument currencies
68+
///</Summary>
69+
public string currencyCode { get; set; }
70+
/// <summary>
71+
/// A user-defined reference identifying the submission of the order [Constraint: Pattern(regexp="[A-Za-z0-9_\\-]{1,30}")]
72+
/// </summary>
73+
public string dealReference { get; set; }
74+
}
7075
}
Lines changed: 55 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,59 @@
11
namespace dto.endpoint.positions.get.otc.v2
22
{
33

4-
public class OpenPositionData{
5-
///<Summary>
6-
///Size of the contract
7-
///</Summary>
8-
public decimal? contractSize { get; set; }
9-
///<Summary>
10-
///Date the position was opened
11-
///</Summary>
12-
public string createdDate { get; set; }
13-
///<Summary>
14-
///Deal identifier
15-
///</Summary>
16-
public string dealId { get; set; }
17-
///<Summary>
18-
///Deal size
19-
///</Summary>
20-
public decimal? size { get; set; }
21-
///<Summary>
22-
///Deal direction
23-
///</Summary>
24-
public string direction { get; set; }
25-
///<Summary>
26-
///Limit level
27-
///</Summary>
28-
public decimal? limitLevel { get; set; }
29-
///<Summary>
30-
///Level at which the position was opened
31-
///</Summary>
32-
public decimal? level { get; set; }
33-
///<Summary>
34-
///Position currency ISO code
35-
///</Summary>
36-
public string currency { get; set; }
37-
///<Summary>
38-
///True if position is risk controlled
39-
///</Summary>
40-
public bool controlledRisk { get; set; }
41-
///<Summary>
42-
///Stop level
43-
///</Summary>
44-
public decimal? stopLevel { get; set; }
45-
///<Summary>
46-
///Trailing step size
47-
///</Summary>
48-
public decimal? trailingStep { get; set; }
49-
///<Summary>
50-
///Trailing stop distance
51-
///</Summary>
52-
public decimal? trailingStopDistance { get; set; }
53-
}
4+
public class OpenPositionData
5+
{
6+
///<Summary>
7+
///Size of the contract
8+
///</Summary>
9+
public decimal? contractSize { get; set; }
10+
///<Summary>
11+
///Date the position was opened
12+
///</Summary>
13+
public string createdDate { get; set; }
14+
///<Summary>
15+
///UTC Date the position was opened
16+
///</Summary>
17+
public string createdDateUTC { get; set; }
18+
///<Summary>
19+
///Deal identifier
20+
///</Summary>
21+
public string dealId { get; set; }
22+
///<Summary>
23+
///Deal size
24+
///</Summary>
25+
public decimal? size { get; set; }
26+
///<Summary>
27+
///Deal direction
28+
///</Summary>
29+
public string direction { get; set; }
30+
///<Summary>
31+
///Limit level
32+
///</Summary>
33+
public decimal? limitLevel { get; set; }
34+
///<Summary>
35+
///Level at which the position was opened
36+
///</Summary>
37+
public decimal? level { get; set; }
38+
///<Summary>
39+
///Position currency ISO code
40+
///</Summary>
41+
public string currency { get; set; }
42+
///<Summary>
43+
///True if position is risk controlled
44+
///</Summary>
45+
public bool controlledRisk { get; set; }
46+
///<Summary>
47+
///Stop level
48+
///</Summary>
49+
public decimal? stopLevel { get; set; }
50+
///<Summary>
51+
///Trailing step size
52+
///</Summary>
53+
public decimal? trailingStep { get; set; }
54+
///<Summary>
55+
///Trailing stop distance
56+
///</Summary>
57+
public decimal? trailingStopDistance { get; set; }
58+
}
5459
}

0 commit comments

Comments
 (0)