using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Muchinfo.MTPClient.Data.Enums;
using Muchinfo.MTPClient.Data.Model.Delivery;
using Muchinfo.MTPClient.Data.Model.Listing;
namespace Muchinfo.MTPClient.Data.Model.Account
{
///
/// 交易缓存数据
///
public class TradeCacheData
{
///
/// 交易账号
///
public ulong AccountId { get; set; }
///
///持仓明细
///
public ObservableCollection OpenOrders { get; set; }
//public List HoldSummaries { get; set; }
///
/// 各市场持仓明细
///
public Dictionary> MarketHoldDetails { get; set; }
///
/// 各市场持仓汇总
///
public Dictionary> MarketHoldSummaries { get; set; }
///
/// 各市场平仓单
///
public Dictionary> MarketCloseOrders { get; set; }
///
/// 各市场委托单
///
public Dictionary> MarketOrderDetails { get; set; }
///
/// 各市场建仓明细
///
public Dictionary> MarketOpenCompletes { get; set; }
///
/// 各市场预埋单
///
public Dictionary> MarketOpenPrePostOrder { get; set; }
private Dictionary _marketOpenCompletesFlag = new Dictionary();
///
/// 按市场建仓明细查询单据否是需更新
///
public Dictionary MarketOpenCompletesFlag
{
get
{
return _marketOpenCompletesFlag;
}
}
private Dictionary _marketCloseOrderFlag = new Dictionary();
///
/// 按市场平仓查询单据否是需更新
///
public Dictionary MarketCloseOrderFlag
{
get
{
return _marketCloseOrderFlag;
}
}
private Dictionary _marketOrderDetailsFlag = new Dictionary();
///
/// 按市场委托单查询单据是需更新
///
public Dictionary MarketOrderDetailsFlag
{
get
{
return _marketOrderDetailsFlag;
}
}
public bool HoldOrderFlag { get; set; }
public bool HoldingSummaryFlag { get; set; }
public bool CloseOrderFlag { get; set; }
public bool LimitOrderFlag { get; set; }
public bool CompleteOrderFlag { get; set; }
public bool DryEntrustOrdersFlag { get; set; }
public bool DryHoldFlag { get; set; }
///
/// 摘牌标志
///
public bool DelistingOrderFlag { get; set; }
public bool DeliveryWarehouseFlag { get; set; }
public bool DeliveryMatchFlag { get; set; }
public bool TakaDeliveryGoodsFlag { get; set; }
public bool TakaDeliveryGoodsApplyFlag { get; set; }
public bool DeliveryGoodsConfigFlag { get; set; }
public bool DeliveryGoodsRuleFlag { get; set; }
///
/// 交割关系配置-标记
///
public bool RelationperformConfigFlag { get; set; }
public bool OpenCompleteFlag { get; set; }
public bool MessageNoticeOrderFlag { get; set; }
public bool MessageAnnouncementOrderFlag { get; set; }
public bool DeliveryOrderFlag { get; set; }
///
/// 查询预埋单
///
public bool OpenPrePostOrderFlag { get; set; }
///
///持仓汇总
///
public ObservableCollection HoldingSummaries { get; set; }
///
/// 平仓单
///
public ObservableCollection CloseOrders { get; set; }
///
/// 限价单(委托单)
///
public ObservableCollection LimitOrders { get; set; }
///
/// 限价单(委托单)
///
public ObservableCollection ComplateOrders { get; set; }
///
/// 交收申报(委托单)
///
public ObservableCollection DryEntrustOrders { get; set; }
///
/// 交收单
///
public ObservableCollection DryHoldOrders { get; set; }
///
/// 交割仓单
///
public ObservableCollection DeliveryWarehouseOrders { get; set; }
///
/// 交割仓单配对
///
public ObservableCollection DeliveryMatchOrders { get; set; }
///
/// 交割提货查询
///
public ObservableCollection TakaDeliveryGoodsOrder { get; set; }
///
/// 交割提货申请
///
public ObservableCollection TakaDeliveryGoodsApplyOrder { get; set; }
///
/// 交割商品关系配置
///
public ObservableCollection DeliveryConfigInfo { get; set; }
///
/// 交割商品交割规则
///
public ObservableCollection DeliveryGoodsRuleValue { get; set; }
///
/// 摘牌记录
///
public ObservableCollection DelistingOrders{ get; set; }
///
/// 交割关系配置
///
public ObservableCollection RelationperformConfig { get; set; }
///
/// 交收单
///
public ObservableCollection DeliveryDetail { get; set; }
private ObservableCollection _messageNoticeOrders = new ObservableCollection();
///
/// 消息中心-消息通知
///
public ObservableCollection MessageNoticeOrders
{
get { return _messageNoticeOrders; }
set { _messageNoticeOrders = value; }
}
private ObservableCollection _messageAnnouncementOrders = new ObservableCollection();
///
/// 消息中心-公告
///
public ObservableCollection MessageAnnouncementOrders
{
get { return _messageAnnouncementOrders; }
set { _messageAnnouncementOrders = value; }
}
///
/// 预警
///
public ObservableCollection WarningOrders { get; set; }
///
/// Initializes a new instance of the class.
///
/// The trade code.
public TradeCacheData(ulong accountId)
{
this.AccountId = accountId;
HoldOrderFlag = false;
HoldingSummaryFlag = false;
CloseOrderFlag = false;
LimitOrderFlag = false;
MessageAnnouncementOrderFlag = false;
MessageNoticeOrderFlag = false;
DeliveryOrderFlag = false;
DryEntrustOrdersFlag = false;
DryHoldFlag = false;
}
}
}