namespace Muchinfo.MTPClient.Data.Model.QuoteItem
{
///
/// StockQuoteItem类
///
public class StockQuoteItem : QuoteItemBase2
{
#region Fields
///
/// 均价
///
private decimal _averagePrice;
///
/// 内盘
///
private int _inSize;
///
/// 每手单位
///
private string _lotUnit;
///
/// 流通市值
///
private decimal _marketCapitalizations;
///
/// 流通股
///
private long _negotiableShares;
///
/// 外盘
///
private int _outSize;
///
/// 市盈率
///
private decimal _priceEarningRatio;
///
/// 量比
///
private decimal _quantityRelativeRatio;
///
/// 总股本
///
private long _totalEquity;
///
/// 总额
///
private decimal _totalTurnover;
///
/// 成交额
///
private decimal _tradeTurnover;
///
/// 换手率
///
private decimal _turnoverRate;
///
/// 委比
///
private decimal _weiBi;
///
/// 委差
///
private int _weiCha;
#endregion Fields
#region Properties
#region Public Properties
///
/// 均价
///
public decimal AveragePrice
{
get
{
return _averagePrice;
}
set
{
Set(() => AveragePrice, ref _averagePrice, value);
}
}
///
/// 内盘
///
public int InSize
{
get
{
return _inSize;
}
set
{
Set(() => InSize, ref _inSize, value);
}
}
///
/// 每手单位
///
public string LotUnit
{
get
{
return _lotUnit;
}
set
{
Set(() => LotUnit, ref _lotUnit, value);
}
}
///
/// 流通市值
///
public decimal MarketCapitalizations
{
get
{
return _marketCapitalizations;
}
set
{
Set(() => MarketCapitalizations, ref _marketCapitalizations, value);
}
}
///
/// 流通股
///
public long NegotiableShares
{
get
{
return _negotiableShares;
}
set
{
Set(() => NegotiableShares, ref _negotiableShares, value);
}
}
///
/// 外盘
///
public int OutSize
{
get
{
return _outSize;
}
set
{
Set(() => OutSize, ref _outSize, value);
}
}
///
/// 市盈率
///
public decimal PriceEarningRatio
{
get
{
return _priceEarningRatio;
}
set
{
Set(() => PriceEarningRatio, ref _priceEarningRatio, value);
}
}
///
/// 量比
///
public decimal QuantityRelativeRatio
{
get
{
return _quantityRelativeRatio;
}
set
{
Set(() => QuantityRelativeRatio, ref _quantityRelativeRatio, value);
}
}
///
/// 总股本
///
public long TotalEquity
{
get
{
return _totalEquity;
}
set
{
Set(() => TotalEquity, ref _totalEquity, value);
}
}
///
/// 总额
///
public decimal TotalTurnover
{
get
{
return _totalTurnover;
}
set
{
Set(() => TotalTurnover, ref _totalTurnover, value);
}
}
///
/// 成交额
///
public decimal TradeTurnover
{
get
{
return _tradeTurnover;
}
set
{
Set(() => TradeTurnover, ref _tradeTurnover, value);
}
}
///
/// 换手率
///
public decimal TurnoverRate
{
get
{
return _turnoverRate;
}
set
{
Set(() => TurnoverRate, ref _turnoverRate, value);
}
}
///
/// 委比
///
public decimal WeiBi
{
get
{
return _weiBi;
}
set
{
Set(() => WeiBi, ref _weiBi, value);
}
}
///
/// 委差
///
public int WeiCha
{
get
{
return _weiCha;
}
set
{
Set(() => WeiCha, ref _weiCha, value);
}
}
#endregion Public Properties
#endregion Properties
#region Methods
#region Public Methods
///
/// 更新对象属性值(只更新需要字段)
///
/// The item.
public override void UpdateFrom(QuoteItemBase item)
{
base.UpdateFrom(item);
var stockItem = item as StockQuoteItem;
if (stockItem == null)
{
return;
}
this.AveragePrice = stockItem.AveragePrice;
this.InSize = stockItem.InSize;
this.OutSize = stockItem.OutSize;
this.QuantityRelativeRatio = this.QuantityRelativeRatio;
this.TotalTurnover = this.TotalTurnover;
this.TurnoverRate = this.TurnoverRate;
this.WeiBi = this.WeiBi;
this.WeiCha = this.WeiCha;
}
#endregion Public Methods
#endregion Methods
}
}