|
1 | 1 | namespace dto.endpoint.positions.create.otc.v2 |
2 | 2 | { |
3 | 3 |
|
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 | + } |
70 | 75 | } |
0 commit comments