1 Star 0 Fork 0

知书僮/StockSharp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
PortfolioLookupResultMessage.cs 2.02 KB
一键复制 编辑 原始数据 按行查看 历史
#region S# License
/******************************************************************************************
NOTICE!!! This program and source code is owned and licensed by
StockSharp, LLC, www.stocksharp.com
Viewing or use of this code requires your acceptance of the license
agreement found at https://github.com/StockSharp/StockSharp/blob/master/LICENSE
Removal of this comment is a violation of the license agreement.
Project: StockSharp.Messages.Messages
File: PortfolioLookupResultMessage.cs
Created: 2015, 11, 11, 2:32 PM
Copyright 2010 by StockSharp, LLC
*******************************************************************************************/
#endregion S# License
namespace StockSharp.Messages
{
using System;
using System.Runtime.Serialization;
/// <summary>
/// Portfolio lookup result message.
/// </summary>
[DataContract]
[Serializable]
public class PortfolioLookupResultMessage : Message
{
/// <summary>
/// ID of the original message <see cref="PortfolioMessage.TransactionId"/> for which this message is a response.
/// </summary>
[DataMember]
public long OriginalTransactionId { get; set; }
/// <summary>
/// Portfolio lookup error info.
/// </summary>
[DataMember]
public Exception Error { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="PortfolioLookupResultMessage"/>.
/// </summary>
public PortfolioLookupResultMessage()
: base(MessageTypes.PortfolioLookupResult)
{
}
/// <summary>
/// Create a copy of <see cref="PortfolioLookupResultMessage"/>.
/// </summary>
/// <returns>Copy.</returns>
public override Message Clone()
{
return new PortfolioLookupResultMessage
{
OriginalTransactionId = OriginalTransactionId,
LocalTime = LocalTime,
Error = Error
};
}
/// <summary>
/// Returns a string that represents the current object.
/// </summary>
/// <returns>A string that represents the current object.</returns>
public override string ToString()
{
return base.ToString() + $",Orig={OriginalTransactionId}";
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhishutong_admin/StockSharp.git
git@gitee.com:zhishutong_admin/StockSharp.git
zhishutong_admin
StockSharp
StockSharp
master

搜索帮助