| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206 |
- using System;
- namespace Muchinfo.MTPClient.Data.Model.QuoteItem
- {
- public class FuturesQuoteItem : QuoteItemBase2
- {
- #region Fields
- /// <summary>
- /// 日增仓
- /// </summary>
- private int _dayAddPositions;
- /// <summary>
- /// 交收日
- /// </summary>
- private DateTime _deliveryDate;
- /// <summary>
- /// 昨持仓量
- /// </summary>
- private long _lastPositions;
- /// <summary>
- /// 昨结算
- /// </summary>
- private decimal _lastSettlement;
- /// <summary>
- /// 持仓
- /// </summary>
- private long _positions;
- /// <summary>
- /// 报价单位
- /// </summary>
- private string _quoteUnit;
- /// <summary>
- /// 结算
- /// </summary>
- private decimal _settlement;
- /// <summary>
- /// 成交量
- /// </summary>
- private int _volume;
- #endregion Fields
- #region Properties
- #region Public Properties
- /// <summary>
- /// 日增仓
- /// </summary>
- public int DayAddPositions
- {
- get
- {
- return _dayAddPositions;
- }
- set
- {
- Set(() => DayAddPositions, ref _dayAddPositions, value);
- }
- }
- /// <summary>
- /// 交收日
- /// </summary>
- public DateTime DeliveryDate
- {
- get
- {
- return _deliveryDate;
- }
- set
- {
- Set(() => DeliveryDate, ref _deliveryDate, value);
- }
- }
- /// <summary>
- /// 昨持仓量
- /// </summary>
- public long LastPositions
- {
- get
- {
- return _lastPositions;
- }
- set
- {
- Set(() => LastPositions, ref _lastPositions, value);
- }
- }
- /// <summary>
- /// 昨结算
- /// </summary>
- public decimal LastSettlement
- {
- get
- {
- return _lastSettlement;
- }
- set
- {
- Set(() => LastSettlement, ref _lastSettlement, value);
- }
- }
- /// <summary>
- /// 持仓
- /// </summary>
- public long Positions
- {
- get
- {
- return _positions;
- }
- set
- {
- Set(() => Positions, ref _positions, value);
- }
- }
- /// <summary>
- /// 报价单位
- /// </summary>
- public string QuoteUnit
- {
- get
- {
- return _quoteUnit;
- }
- set
- {
- Set(() => QuoteUnit, ref _quoteUnit, value);
- }
- }
- /// <summary>
- /// 结算
- /// </summary>
- public decimal Settlement
- {
- get
- {
- return _settlement;
- }
- set
- {
- Set(() => Settlement, ref _settlement, value);
- }
- }
- /// <summary>
- /// 成交量
- /// </summary>
- public int Volume
- {
- get
- {
- return _volume;
- }
- set
- {
- Set(() => Volume, ref _volume, value);
- }
- }
- #endregion Public Properties
- #endregion Properties
- #region Methods
- #region Public Methods
- /// <summary>
- /// 更新对象属性值(只更新需要字段)
- /// </summary>
- /// <param name="item">The item.</param>
- public override void UpdateFrom(QuoteItemBase item)
- {
- base.UpdateFrom(item);
- var furturesItem = item as FuturesQuoteItem;
- if (furturesItem == null)
- {
- return;
- }
- this.DayAddPositions = furturesItem.DayAddPositions;
- ////this.DeliveryDate = furturesItem.DeliveryDate;
- this.Positions = furturesItem.Positions;
- this.Settlement = furturesItem.Settlement;
- this.Volume = furturesItem.Volume;
- }
- #endregion Public Methods
- #endregion Methods
- }
- }
|