using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Security.Principal; using System.Text; using System.Threading.Tasks; namespace YLErp.DBModels { [Table("client_order")] public class ClientOrder { /// /// 主键 /// [Key] public long id { get; set; } /// /// 委托编号 /// public string order_sno { get; set; } /// /// 序号 /// public string num { get; set; } /// /// STC订单编号 /// public string stc_order_id { get; set; } /// /// 第三方订单编号 /// public string third_party_order_id { get; set; } /// /// 客户机构编码 /// public int? client_id { get; set; } /// /// 客户机构名称 /// public string client_name { get; set; } /// /// 客户编号 /// public long? client_user_id { get; set; } /// /// 客户名称 /// public string client_user_name { get; set; } /// /// 债券代码 /// public string security_id { get; set; } /// /// 债券简称 /// public string symbol { get; set; } /// /// 债券规模 /// public string bond_size { get; set; } /// /// 债券发行价格 /// public decimal? issue_price { get; set; } /// /// 合约期限(对应债券期限,例如:10Y) /// public string contract_period { get; set; } /// /// 结构类型(1:收益互换) /// public int? struct_type { get; set; } /// /// 当前操作(0:无操作,1:委托拒绝,2:合约成交,3:客户撤单,4:对冲撤单,5:确认对冲,6:自动撤单) /// public int? current_operation { get; set; } /// /// 订单状态(-2:意向成交,-1:待意向确认,0:已报,1:部分成交,2:全部成交,4:已撤单,6:撤单中,8:已拒绝,9:自动确认,10:下单失败) /// public int? status { get; set; } /// /// 操作前订单状态(-2:意向成交,-1:待意向确认,0:已报,1:部分成交,2:全部成交,4:已撤单,6:撤单中,8:已拒绝,9:自动确认,10:下单失败) /// public int? before_status { get; set; } /// /// 是否创建对冲(0:未创建,1:已创建) /// public int? is_create_hedge_order { get; set; } /// /// 对冲状态(0:已报,1:全部对冲,2:未完全对冲) /// public int? hedge_status { get; set; } /// /// 对冲单撤单状态(-1:未创建对冲单,1:未撤单,2:已撤单,3:已拒绝,4:下单失败) /// public int? hedge_cancel_status { get; set; } /// /// 交易方向(0:买入,1:卖出) /// public int? side { get; set; } /// /// 确认类型(0:自动确认,1:交易员手动确认) /// public int? confirm_type { get; set; } /// /// 委托收益率 /// public decimal? entrust_yield { get; set; } /// /// 委托净价 /// public decimal? price { get; set; } /// /// 委托净价(含费) /// public decimal? price_include_fee { get; set; } /// /// 委托全价 /// public decimal? full_price { get; set; } /// /// 委托全价(含费) /// public decimal? full_price_include_fee { get; set; } /// /// 委托数量类型:1:整量:,2:非整量 /// public int? order_qty_type { get; set; } /// /// 委托数量(万) /// public decimal? order_qty { get; set; } /// /// 成交数量(万) /// public decimal? last_shares { get; set; } /// /// 对冲成交数量(万) /// public decimal? hedge_deal_number { get; set; } /// /// 累计成交 /// public decimal? total_traded { get; set; } /// /// 成交收益率 /// public decimal? ytm { get; set; } /// /// 成交净价 /// public decimal? deal_price { get; set; } /// /// 成交净价(含费) /// public decimal? deal_price_include_fee { get; set; } /// /// 成交全价 /// public decimal? deal_full_price { get; set; } /// /// 成交全价(含费) /// public decimal? deal_full_price_include_fee { get; set; } /// /// 撤单数量(万) /// public decimal? cancel_qty { get; set; } /// /// 清算时间(0:T+0,1:T+1,2:T+2,远期:具体年月日) /// public string settl_type { get; set; } /// /// 清算日期 /// public string settl_date { get; set; } /// /// 剩余期限 /// public string remaining_term { get; set; } /// /// 债券票面利率类型(501001000:浮动利率,501002000:固定利率,501003000:累进利率) /// public string coupon_type { get; set; } /// /// 票面利率 /// public decimal? coupon_rate { get; set; } /// /// 开平标志 /// public int? open_close { get; set; } /// /// 币种 /// public string currency { get; set; } /// /// 交易费率类型(0:百分比,1:单价固定交易费) /// public int? commission_rate_type { get; set; } /// /// 交易费率 /// public decimal? commission_rate { get; set; } /// /// 交易费用 /// public decimal? commission { get; set; } /// /// 远期 /// public string future_date { get; set; } /// /// STC下单响应结果 /// public string stc_order_result { get; set; } /// /// 订单来源(0:TRS客户端,1:TRS交易端,2:第三方平台,3:成交补录) /// public byte? order_source { get; set; } /// /// 交易员ID /// public long? trader_id { get; set; } /// /// 委托时间 /// public DateTime? create_time { get; set; } /// /// 创建人 /// public long? create_user { get; set; } /// /// 更新时间 /// public DateTime? update_time { get; set; } /// /// 更新人 /// public long? update_user { get; set; } /// /// 限额告警成交备注 /// public string limit_alert_remark { get; set; } /// /// QT信息主键ID /// public long? qt_msg_primary_id { get; set; } /// /// 客户机构简称(客户简称) /// public string abbreviation { get; set; } } }