using System;
using System.Collections.Generic;
using Muchinfo.MTPClient.Data.Enums;
namespace Muchinfo.MTPClient.Data.Model
{
public class OrderCompleteArg
{
public OrderCompleteType OrderCompleteType { get; set; }
///
/// 订单号(委托单号)
///
public long OrderId { get; set; }
///
/// 二级委托单号
///
public long SecEntrustId { get; set; }
///
/// 成交数量
///
public decimal TradeQuantity { get; set; }
///
/// 成交金额
///
public decimal Amount { get; set; }
///
/// 商品代码
///
public string GoodsCode { get; set; }
///
/// 激活数量,即剩余数量
///
public decimal ActiveQty { get; set; }
///
/// 订单状态
///
public OrderStatus OrderStatus { get; set; }
///
/// 成交ID
///
public long TradeID { get; set; }
///
/// 资金账号
///
public string AccountCode { get; set; }
///
/// 账号ID
///
public ulong AccountId { get; set; }
///
/// 成交价格
///
public decimal TradePrice { get; set; }
///
/// 买卖方向
///
public Direction Direction { get; set; }
///
/// 委托数量
///
public decimal EntrustQty { get; set; }
///
/// 订单类型
///
public eOrderType OrderType { get; set; }
///
/// 成交时间
///
public string TradeTime { get; set; }
///
/// 特别会员账号
///
public string SpecialAccount { get; set; }
///
/// 建仓成交手续费
///
public decimal TradeCharge { get; set; }
///
/// 仓单服务费
///
public decimal WareHouseCharge { get; set; }
///
/// 占用保证金
///
public decimal UsedMargin { get; set; }
///
/// 操作员代码
///
public string OperatorCode { get; set; }
///
/// 平仓单信息
///
public List CloseInfos { get; set; }
}
///
/// 平仓成交通知信息
///
public class TradeCloseInfos
{
///
/// 被平持仓单ID
///
public long ClosedOrderID { get; set; }
///
/// 平仓数量
///
public decimal ClosedQty { get; set; }
///
/// 平仓盈亏
///
public decimal ClosePL { get; set; }
///
/// 释放的占用保证金
///
public decimal RlsUsedMargin { get; set; }
///
/// 平仓手续费
///
public decimal TradeCharge { get; set; }
///
/// 仓单服务费
///
public decimal WareHouseCharge { get; set; }
///
/// 成交金额
///
public decimal TradeAmount { get; set; }
}
public enum OrderCompleteType
{
Open,
Close
}
}