This repository was archived by the owner on Nov 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOrderModel.cs
More file actions
86 lines (75 loc) · 3.02 KB
/
OrderModel.cs
File metadata and controls
86 lines (75 loc) · 3.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
namespace ClientCsharp
{
using System;
using System.Reflection;
using Newtonsoft.Json;
/// <summary>
/// The order update
/// </summary>
[Obfuscation(Feature = "preserve-name-binding")]
[Obfuscation(Feature = "preserve-identity")]
public class OrderModel
{
/// <summary>
/// The number of the account
/// </summary>
[JsonProperty(PropertyName= "accountNumber", Required = Required.Always)]
public string AccountNumber { get; set; }
/// <summary>
/// Order sequence number for the account
/// </summary>
[JsonProperty(PropertyName = "number", Required = Required.Always)]
public long Number { get; set; }
/// <summary>
/// Instrument for which the order has been placed
/// </summary>
[JsonProperty(PropertyName = "instrument", Required = Required.Always)]
public InstrumentModel Instrument { get; set; }
/// <summary>
/// Order status
/// </summary>
[JsonProperty(PropertyName = "status", Required = Required.Always)]
public string Status { get; set; }
/// <summary>
/// [Optional] Limit price
/// </summary>
[JsonProperty(PropertyName = "limitPrice", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
public decimal? LimitPrice { get; set; }
/// <summary>
/// [Optional] Order (price condition) type
/// </summary>
[JsonProperty(PropertyName = "type", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
public string OrderType { get; set; }
/// <summary>
/// [Optional] Expiration date
/// </summary>
[JsonProperty(PropertyName = "expirationDate", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
public DateTime? ExpirationDate { get; set; }
/// <summary>
/// Date and time of update
/// </summary>
[JsonProperty(PropertyName = "dt", Required = Required.Always)]
public DateTime TransactionDateTime { get; set; }
/// <summary>
/// [Optional] Combination strategy. Pay or Receive
/// </summary>
[JsonProperty(PropertyName = "combinationCondition", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
public string Condition { get; set; }
/// <summary>
/// [Optional] Order reference id
/// </summary>
[JsonProperty(PropertyName = "referenceId", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
public string ReferenceId { get; set; }
}
/// <summary>
/// Instrument for which the order has been placed
/// </summary>
public class InstrumentModel
{
/// <summary>
/// Instrument id
/// </summary>
[JsonProperty(PropertyName = "id", Required = Required.Always)]
public string Id { get; set; }
}
}