StockSharp

Форк
0
73 строки · 2.0 Кб
1
#region S# License
2
/******************************************************************************************
3
NOTICE!!!  This program and source code is owned and licensed by
4
StockSharp, LLC, www.stocksharp.com
5
Viewing or use of this code requires your acceptance of the license
6
agreement found at https://github.com/StockSharp/StockSharp/blob/master/LICENSE
7
Removal of this comment is a violation of the license agreement.
8

9
Project: StockSharp.BusinessEntities.BusinessEntities
10
File: OrderFail.cs
11
Created: 2015, 11, 11, 2:32 PM
12

13
Copyright 2010 by StockSharp, LLC
14
*******************************************************************************************/
15
#endregion S# License
16
namespace StockSharp.BusinessEntities
17
{
18
	using System;
19
	using System.Runtime.Serialization;
20

21
	using StockSharp.Messages;
22

23
	/// <summary>
24
	/// Description of the error that occurred during the registration or cancellation of the order.
25
	/// </summary>
26
	[Serializable]
27
	[DataContract]
28
	public class OrderFail : IErrorMessage, ILocalTimeMessage, IServerTimeMessage, ISeqNumMessage
29
	{
30
		/// <summary>
31
		/// Initializes a new instance of the <see cref="OrderFail"/>.
32
		/// </summary>
33
		public OrderFail()
34
		{
35
		}
36

37
		/// <summary>
38
		/// The order which was not registered or was canceled due to an error.
39
		/// </summary>
40
		[DataMember]
41
		public Order Order { get; set; }
42

43
		/// <summary>
44
		/// System information about error containing the reason for the refusal or cancel of registration.
45
		/// </summary>
46
		[DataMember]
47
		public Exception Error { get; set; }
48

49
		/// <summary>
50
		/// Server time.
51
		/// </summary>
52
		[DataMember]
53
		public DateTimeOffset ServerTime { get; set; }
54

55
		/// <summary>
56
		/// Local time, when the error has been received.
57
		/// </summary>
58
		public DateTimeOffset LocalTime { get; set; }
59

60
		/// <summary>
61
		/// Sequence number.
62
		/// </summary>
63
		/// <remarks>Zero means no information.</remarks>
64
		[DataMember]
65
		public long SeqNum { get; set; }
66

67
		/// <inheritdoc />
68
		public override string ToString()
69
		{
70
			return $"{Error?.Message}/{Order}";
71
		}
72
	}
73
}

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.