| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721 |
- using GalaSoft.MvvmLight.Messaging;
- using Muchinfo.MTPClient.Data.Enums;
- using Muchinfo.MTPClient.Resources;
- using System;
- using System.Windows.Media;
- using Newtonsoft.Json;
- using System.Collections.Generic;
- namespace Muchinfo.MTPClient.Data.Model
- {
- /// <summary>
- /// QuoteGoods类
- /// </summary>
- public partial class QuoteGoods : Goods, ICloneable
- {
- #region Fields
- /// <summary>
- /// 卖价
- /// </summary>
- private decimal _askPrice;
- /// <summary>
- /// 卖量
- /// </summary>
- private long _askVolume;
- /// <summary>
- /// 均价
- /// </summary>
- private decimal _averagePrice;
- /// <summary>
- /// 买价
- /// </summary>
- private decimal _bidPrice;
- /// <summary>
- /// 买量
- /// </summary>
- private long _bidVolume;
- ///// <summary>
- ///// 代码
- ///// </summary>
- //private int _code;
- /// <summary>
- /// 现价
- /// </summary>
- private decimal _currentPrice;
- /// <summary>
- /// 现量
- /// </summary>
- private long _currentVolume;
- /// <summary>
- /// 时间
- /// </summary>
- private DateTime _date;
- /// <summary>
- /// 日增仓
- /// </summary>
- private decimal _dayAddPositions;
- /// <summary>
- /// 交收日
- /// </summary>
- private DateTime _deliveryDate;
- /// <summary>
- /// 交易所名称
- /// </summary>
- private string _exchangeName;
- /// <summary>
- /// 最高
- /// </summary>
- private decimal _high;
- /// <summary>
- /// 内盘
- /// </summary>
- private int _inSize;
- /// <summary>
- /// 昨收
- /// </summary>
- private decimal _lastClose;
- /// <summary>
- /// 昨持仓量
- /// </summary>
- private long _lastPositions;
- /// <summary>
- /// 昨结算
- /// </summary>
- private decimal _lastSettlement;
- /// <summary>
- /// 最低
- /// </summary>
- private decimal _low;
- /// <summary>
- /// 流通市值
- /// </summary>
- private decimal _marketCapitalizations;
- /// <summary>
- /// 流通股本
- /// </summary>
- private long _negotiableShares;
- /// <summary>
- /// 今开
- /// </summary>
- private decimal _open;
- /// <summary>
- /// 外盘
- /// </summary>
- private int _outSize;
- /// <summary>
- /// 持仓
- /// </summary>
- private long _positions;
- /// <summary>
- /// 市盈率
- /// </summary>
- private decimal _priceEarningRatio;
- /// <summary>
- /// 量比
- /// </summary>
- private decimal _quantityRelativeRatio;
- /// <summary>
- /// 结算
- /// </summary>
- private decimal _settlement;
- /// <summary>
- /// 分类名称
- /// </summary>
- private string _sortName;
- /// <summary>
- /// 总股本
- /// </summary>
- private long _totalEquity;
- /// <summary>
- /// 总额
- /// </summary>
- private decimal _totalTurnover;
- /// <summary>
- /// 总量
- /// </summary>
- private long _totalVolume;
- /// <summary>
- /// 成交额
- /// </summary>
- private decimal _tradeTurnover;
- /// <summary>
- /// 换手率
- /// </summary>
- private decimal _turnoverRate;
- /// <summary>
- /// 成交量
- /// </summary>
- private long _volume;
- /// <summary>
- /// 委比
- /// </summary>
- private double _weiBi;
- /// <summary>
- /// 委差
- /// </summary>
- //private int _weiCha;
- private GoodsParameters _goodsParameters;
- #endregion Fields
- #region Constructors
- /// <summary>
- /// 实例化报价商品
- /// </summary>
- /// <param name="exchangeCode">交易所代码</param>
- /// <param name="goodsCode">商品代码</param>
- /// <param name="goodshqCode">报价分组</param>
- /// <param name="category">报价分组</param>
- public QuoteGoods(string exchangeCode, string goodsCode, string goodshqCode, QuoteCategoryType category)
- : base(exchangeCode, goodsCode, goodshqCode)
- {
- this.Category = category;
- //
- Messenger.Default.Register<bool>(this, MessengerTokens.NotifyQuoteGoodsColorChanged, (flag) =>
- {
- RaisePropertyChanged(() => IncreaseValue);
- RaisePropertyChanged(() => BidPriceColor);
- RaisePropertyChanged(() => AskPriceColor);
- RaisePropertyChanged(() => HighColor);
- RaisePropertyChanged(() => LowColor);
- RaisePropertyChanged(() => IncreaseValue);
- RaisePropertyChanged(() => IncreaseValueColor);
- RaisePropertyChanged(() => IncreasePercentColor);
- });
- }
- #endregion Constructors
- #region Properties
- #region Public Properties
- /// <summary>
- /// 振幅 ((最高-最低)/昨收)
- /// </summary>
- public decimal Amplitude
- {
- get
- {
- if (_lastClose != 0)
- {
- return (_high - _low) / _lastClose;
- }
- else
- {
- return (_high - _low);
- }
- }
- }
- /// <summary>
- /// 卖价
- /// </summary>
- public decimal AskPrice
- {
- get
- {
- return _askPrice;
- }
- set
- {
- Set(() => AskPrice, ref _askPrice, value);
- RaisePropertyChanged(() => AskPriceDisplay);
- RaisePropertyChanged(() => AskPriceColor);
- IsAskPriceBorder = !IsAskPriceBorder;
- }
- }
- /// <summary>
- /// 合约单位名称
- /// </summary>
- public string AgreeUnitDisplay { get; set; }
- /// <summary>
- /// <summary>
- /// 查询回来的商品参数
- /// </summary>
- public GoodsParameters GoodsParameters
- {
- get
- {
- return _goodsParameters;
- }
- set
- {
- _goodsParameters = value;
- }
- }
-
- /// <summary>
- /// 卖量
- /// </summary>
- public long AskVolume
- {
- get
- {
- return _askVolume;
- }
- set
- {
- Set(() => AskVolume, ref _askVolume, value);
- RaisePropertyChanged(() => AskVolumeDisplay);
- }
- }
- /// <summary>
- /// 均价
- /// </summary>
- public decimal AveragePrice
- {
- get
- {
- return _averagePrice;
- }
- set
- {
- Set(() => AveragePrice, ref _averagePrice, value);
- RaisePropertyChanged(() => AveragePriceDisplay);
- RaisePropertyChanged(() => AveragePriceColor);
- }
- }
- /// <summary>
- /// 买价
- /// </summary>
- public decimal BidPrice
- {
- get
- {
- return _bidPrice;
- }
- set
- {
- Set(() => BidPrice, ref _bidPrice, value);
- RaisePropertyChanged(() => BidPriceDisplay);
- RaisePropertyChanged(() => BidPriceColor);
- IsBidPriceBorder = !IsBidPriceBorder;
- }
- }
- /// <summary>
- /// 买量
- /// </summary>
- public long BidVolume
- {
- get
- {
- return _bidVolume;
- }
- set
- {
- Set(() => BidVolume, ref _bidVolume, value);
- RaisePropertyChanged(() => BidVolumeDisplay);
- }
- }
- /// <summary>
- /// 获取和设置报价商品分组
- /// </summary>
- public QuoteCategoryType Category
- {
- get;
- set;
- }
- /// <summary>
- /// 现价/最新价
- /// </summary>
- public decimal CurrentPrice
- {
- get
- {
- return _currentPrice;
- }
- set
- {
- Set(() => CurrentPrice, ref _currentPrice, value);
- RaisePropertyChanged(() => CurrentPriceDisplay);
- RaisePropertyChanged(() => IncreasePercentDisplay);
- RaisePropertyChanged(() => IncreaseValueDisplay);
- RaisePropertyChanged(() => IncreasePercentColor);
- RaisePropertyChanged(() => IncreaseValueColor);
- RaisePropertyChanged(() => CurrentPriceColor);
- RaisePropertyChanged(() => IncreaseValue);
- IsCurrentPriceBorder = !IsCurrentPriceBorder;
- }
- }
- /// <summary>
- /// 现量()
- /// </summary>
- public long CurrentVolume
- {
- get
- {
- return _currentVolume;
- }
- set
- {
- Set(() => CurrentVolume, ref _currentVolume, value);
- RaisePropertyChanged(() => CurrentVolumeDisplay);
- }
- }
- /// <summary>
- /// 时间
- /// </summary>
- public DateTime Date
- {
- get
- {
- return _date;
- }
- set
- {
- Set(() => Date, ref _date, value);
- RaisePropertyChanged(() => DateDisplay);
- }
- }
- /// <summary>
- /// 日增仓
- /// </summary>
- public decimal DayAddPositions
- {
- get
- {
- return _dayAddPositions;
- }
- set
- {
- Set(() => DayAddPositions, ref _dayAddPositions, value);
- RaisePropertyChanged(() => DayAddPositionsDisplay);
- }
- }
- /// <summary>
- /// 交收日
- /// </summary>
- public DateTime DeliveryDate
- {
- get
- {
- return _deliveryDate;
- }
- set
- {
- Set(() => DeliveryDate, ref _deliveryDate, value);
- RaisePropertyChanged(() => DeliveryDateDisplay);
- }
- }
- /// <summary>
- /// 交易所名称
- /// </summary>
- public string ExchangeName
- {
- get
- {
- return StringDisplay(_exchangeName);
- }
- set
- {
- Set(() => ExchangeName, ref _exchangeName, value);
- }
- }
- /// <summary>
- /// 最高
- /// </summary>
- public decimal High
- {
- get
- {
- return _high;
- }
- set
- {
- Set(() => High, ref _high, value);
- RaisePropertyChanged(() => AmplitudeDisplay);
- RaisePropertyChanged(() => HighDisplay);
- RaisePropertyChanged(() => HighColor);
- }
- }
- /// <summary>
- /// 涨幅%((现价-昨收)/昨收)
- /// </summary>
- public decimal IncreasePercent
- {
- get
- {
- if (_lastClose != 0)
- {
- return (_currentPrice - _lastClose) / _lastClose;
- }
- return (_currentPrice - _lastClose);
- }
- }
- /// <summary>
- /// 涨跌(现价-昨收)
- /// </summary>
- public decimal IncreaseValue
- {
- get
- {
- var value = (_currentPrice - _lastClose);
- return value;
- }
- }
- /// <summary>
- /// 内盘
- /// </summary>
- public int InSize
- {
- get
- {
- return _inSize;
- }
- set
- {
- Set(() => InSize, ref _inSize, value);
- RaisePropertyChanged(() => InSizeDisplay);
- }
- }
- /// <summary>
- /// 昨收
- /// </summary>
- public decimal LastClose
- {
- get
- {
- return _lastClose;
- }
- set
- {
- Set(() => LastClose, ref _lastClose, value);
- RaisePropertyChanged(() => LastCloseDisplay);
- RaisePropertyChanged(() => AmplitudeDisplay);
- RaisePropertyChanged(() => IncreasePercentDisplay);
- RaisePropertyChanged(() => IncreasePercentColor);
- RaisePropertyChanged(() => IncreaseValueDisplay);
- RaisePropertyChanged(() => IncreaseValueColor);
- }
- }
- /// <summary>
- /// 昨持仓量
- /// </summary>
- public long LastPositions
- {
- get
- {
- return _lastPositions;
- }
- set
- {
- Set(() => LastPositions, ref _lastPositions, value);
- RaisePropertyChanged(() => LastPositionsDisplay);
- RaisePropertyChanged(() => TurnoverRateDisplay);
- }
- }
- /// <summary>
- /// 昨结算
- /// </summary>
- public decimal LastSettlement
- {
- get
- {
- return _lastSettlement;
- }
- set
- {
- Set(() => LastSettlement, ref _lastSettlement, value);
- RaisePropertyChanged(() => LastSettlementDisplay);
- }
- }
- private decimal _deliveryPrice;
- /// <summary>
- /// 交收价格
- /// </summary>
- public decimal DeliveryPrice
- {
- get { return _deliveryPrice; }
- set
- {
- Set(() => DeliveryPrice, ref _deliveryPrice, value);
- RaisePropertyChanged(() => DeliveryPriceDisplay);
- }
- }
- /// <summary>
- /// 最低
- /// </summary>
- public decimal Low
- {
- get
- {
- return _low;
- }
- set
- {
- Set(() => Low, ref _low, value);
- RaisePropertyChanged(() => AmplitudeDisplay);
- RaisePropertyChanged(() => LowDisplay);
- RaisePropertyChanged(() => LowColor);
- }
- }
- /// <summary>
- /// 流通市值
- /// </summary>
- public decimal MarketCapitalizations
- {
- get
- {
- return _marketCapitalizations;
- }
- set
- {
- Set(() => MarketCapitalizations, ref _marketCapitalizations, value);
- RaisePropertyChanged(() => MarketCapitalizationsDisplay);
- }
- }
- /// <summary>
- /// 流通股本
- /// </summary>
- public long NegotiableShares
- {
- get
- {
- return _negotiableShares;
- }
- set
- {
- Set(() => NegotiableShares, ref _negotiableShares, value);
- RaisePropertyChanged(() => NegotiableSharesDisplay);
- }
- }
- /// <summary>
- /// 今开
- /// </summary>
- public decimal Open
- {
- get
- {
- return _open;
- }
- set
- {
- Set(() => Open, ref _open, value);
- RaisePropertyChanged(() => OpenDisplay);
- RaisePropertyChanged(() => OpenColor);
- }
- }
- /// <summary>
- /// 外盘
- /// </summary>
- public int OutSize
- {
- get
- {
- return _outSize;
- }
- set
- {
- Set(() => OutSize, ref _outSize, value);
- RaisePropertyChanged(() => OutSizeDisplay);
- }
- }
- /// <summary>
- /// 持仓量
- /// </summary>
- public long Positions
- {
- get
- {
- return _positions;
- }
- set
- {
- Set(() => Positions, ref _positions, value);
- RaisePropertyChanged(() => PositionsDisplay);
- }
- }
- /// <summary>
- /// 市盈率
- /// </summary>
- public decimal PriceEarningRatio
- {
- get
- {
- return _priceEarningRatio;
- }
- set
- {
- Set(() => PriceEarningRatio, ref _priceEarningRatio, value);
- RaisePropertyChanged(() => PriceEarningRatioDisplay);
- }
- }
- /// <summary>
- /// 量比
- /// </summary>
- public decimal QuantityRelativeRatio
- {
- get
- {
- return _quantityRelativeRatio;
- }
- set
- {
- Set(() => QuantityRelativeRatio, ref _quantityRelativeRatio, value);
- RaisePropertyChanged(() => QuantityRelativeRatioColor);
- }
- }
- /// <summary>
- /// 结算
- /// </summary>
- public decimal Settlement
- {
- get
- {
- return _settlement;
- }
- set
- {
- Set(() => Settlement, ref _settlement, value);
- RaisePropertyChanged(() => SettlementDisplay);
- }
- }
- /// <summary>
- /// 分类
- /// </summary>
- public string SortName
- {
- get
- {
- return StringDisplay(_sortName);
- }
- set
- {
- Set(() => SortName, ref _sortName, value);
- }
- }
- /// <summary>
- /// 总股本
- /// </summary>
- public long TotalEquity
- {
- get
- {
- return _totalEquity;
- }
- set
- {
- Set(() => TotalEquity, ref _totalEquity, value);
- RaisePropertyChanged(() => TotalEquityDisplay);
- }
- }
- /// <summary>
- /// 总额
- /// </summary>
- public decimal TotalTurnover
- {
- get
- {
- return _totalTurnover;
- }
- set
- {
- Set(() => TotalTurnover, ref _totalTurnover, value);
- RaisePropertyChanged(() => TotalTurnoverDisplay);
- }
- }
- /// <summary>
- /// 总量
- /// </summary>
- public long TotalVolume
- {
- get
- {
- return _totalVolume;
- }
- set
- {
- Set(() => TotalVolume, ref _totalVolume, value);
- RaisePropertyChanged(() => TotalVolumeDisplay);
- RaisePropertyChanged(() => TurnoverRateDisplay);
- }
- }
- /// <summary>
- /// 总量是否变化
- /// </summary>
- public bool IsChangedByTotalVolume { get; set; }
- /// <summary>
- /// 成交额
- /// </summary>
- public decimal TradeTurnover
- {
- get
- {
- return _tradeTurnover;
- }
- set
- {
- Set(() => TradeTurnover, ref _tradeTurnover, value);
- RaisePropertyChanged(() => TradeTurnoverDisplay);
- }
- }
- /// <summary>
- /// 换手率
- /// </summary>
- public decimal TurnoverRate
- {
- get
- {
- return _turnoverRate;
- }
- set
- {
- Set(() => TurnoverRate, ref _turnoverRate, value);
-
- }
- }
- /// <summary>
- /// 委比
- /// </summary>
- public double WeiBi
- {
- get
- {
- double total = 0;
- for (int i = 0; i < BidList.Length && i < AskList.Length; i++)
- {
- total += BidList[i].Volume + AskList[i].Volume;
- }
- if (total == 0)
- {
- return 100;
- }
- _weiBi = WeiCha / total * 100;
- return _weiBi;
- }
- }
- /// <summary>
- /// 委差
- /// </summary>
- public double WeiCha
- {
- get
- {
- double weiCha = 0d;
- for (int i = 0; i < BidList.Length && i < AskList.Length; i++)
- {
- weiCha += BidList[i].Volume - AskList[i].Volume;
- }
- return weiCha;
- }
- }
- #region yxw
- private Commission[] _bidList = new Commission[5] { new Commission(Direction.Bid), new Commission(Direction.Bid), new Commission(Direction.Bid), new Commission(Direction.Bid), new Commission(Direction.Bid) };
- /// <summary>
- /// 买
- /// </summary>
- [JsonIgnore]
- public Commission[] BidList
- {
- get
- {
- return _bidList;
- }
- set
- {
- _bidList = value;
- }
- }
- private Commission[] _askList = new Commission[5] { new Commission(Direction.Ask), new Commission(Direction.Ask), new Commission(Direction.Ask), new Commission(Direction.Ask), new Commission(Direction.Ask) };
-
- /// <summary>
- /// 卖
- /// </summary>
- [JsonIgnore]
- public Commission[] AskList
- {
- get
- {
- return _askList;
- }
- set
- {
- _askList = value;
- }
- }
- #endregion
- /// <summary>
- /// 商品来源(包含)类型之和
- /// </summary>
- public int ContainsGoodsSrc { get; set; }
- #endregion Public Properties
- #endregion Properties
- #region Methods
- #region Public Methods
- /// <summary>
- /// 获取买卖档
- /// </summary>
- /// <param name="isAsk">获取买档</param>
- /// <param name="level">买卖排名</param>
- /// <returns>Commission.</returns>
- public Commission GetBidOrAsk(bool isAsk, int level)
- {
- level--;
- if (level < 0)
- {
- return null;
- }
- if (isAsk)
- {
- if (level >= AskList.Length)
- {
- return null;
- }
- return AskList[level];
- }
- else
- {
- if (level >= BidList.Length)
- {
- return null;
- }
- return BidList[level];
- }
- }
-
- /// <summary>
- /// 交易模式
- /// </summary>
- public eTradeMode TradeMode { get; set; }
- /// <summary>
- /// 交易属性NEW 2.0
- /// </summary>
- public eTradeProperty TradeProperty { get; set; }
- /// <summary>
- /// Gets the abbreviated.
- /// </summary>
- /// <param name="aVal">A val.</param>
- /// <param name="formatString">The format string.</param>
- /// <returns>System.String.</returns>
- public string GetAbbreviated(double aVal, string formatString = "")
- {
- string result = string.Empty;
- if (aVal.Equals(0))
- {
- result = DefaultString;
- }
- var value = Math.Abs(aVal);
- if (value <= 999999)
- {
- result = value.ToString();
- }
- else if (value <= 9999999)
- {
- result = System.Math.Round(((decimal)value / 10000), 2).ToString() + Client_Resource.Domain_TenThousand;
- }
- else if (value <= 99999999)
- {
- result = System.Math.Round(((decimal)value / 10000), 0).ToString() + Client_Resource.Domain_TenThousand;
- }
- else if (value <= 99999999999)
- {
- result = System.Math.Round(((decimal)value / 100000000), 2).ToString() + Client_Resource.Domain_OneHundredmillion;
- }
- else
- {
- result = System.Math.Round(((decimal)value / 100000000), 0).ToString() + Client_Resource.Domain_OneHundredmillion;
- }
- return result;
- }
- public string GetAbbreviatedEx(long aVal,bool defaultzero=true)
- {
- if (aVal == 0)
- {
- return defaultzero ? "0" : "-";
- }
- else if (aVal <= 999999)
- {
- return aVal.ToString();
- }
- else if (aVal <= 9999999)
- {
- return System.Math.Round(((decimal)aVal / 10000), 2).ToString() + Client_Resource.Domain_TenThousand;
- }
- else if (aVal <= 99999999)
- {
- return System.Math.Round(((decimal)aVal / 10000), 0).ToString() + Client_Resource.Domain_TenThousand;
- }
- else if (aVal <= 99999999999)
- {
- return System.Math.Round(((decimal)aVal / 100000000), 2).ToString() + Client_Resource.Domain_OneHundredmillion;
- }
- else
- {
- return System.Math.Round(((decimal)aVal / 100000000), 0).ToString() + Client_Resource.Domain_OneHundredmillion;
- }
- }
- /// <summary>
- /// Gets the abbreviated.
- /// </summary>
- /// <param name="aVal">A val.</param>
- /// <param name="formatString">The format string.</param>
- /// <returns>System.String.</returns>
- public string GetAbbreviated(decimal aVal, string formatString = "")
- {
- return GetAbbreviated((double)aVal, formatString);
- }
- /// <summary>
- /// 更新对象属性值(只更新需要字段)
- /// </summary>
- /// <param name="item">The item.</param>
- public void UpdateFrom(QuoteGoods item, bool IsHistory)
- {
- double decimalPlace = (double)this.DecimalPlaces;
- item.CurrentPrice = decimal.Multiply(item.CurrentPrice, (decimal)Math.Pow(0.1, decimalPlace));
- item.BidPrice = decimal.Multiply(item.BidPrice, (decimal)Math.Pow(0.1, decimalPlace));
- item.AskPrice = decimal.Multiply(item.AskPrice, (decimal)Math.Pow(0.1, decimalPlace));
- item.BidList[0].Price = decimal.Multiply(item.BidList[0].Price, (decimal)Math.Pow(0.1, decimalPlace));
- item.BidList[1].Price = decimal.Multiply(item.BidList[1].Price, (decimal)Math.Pow(0.1, decimalPlace));
- item.BidList[2].Price = decimal.Multiply(item.BidList[2].Price, (decimal)Math.Pow(0.1, decimalPlace));
- item.BidList[3].Price = decimal.Multiply(item.BidList[3].Price, (decimal)Math.Pow(0.1, decimalPlace));
- item.BidList[4].Price = decimal.Multiply(item.BidList[4].Price, (decimal)Math.Pow(0.1, decimalPlace));
- item.AskList[0].Price = decimal.Multiply(item.AskList[0].Price, (decimal)Math.Pow(0.1, decimalPlace));
- item.AskList[1].Price = decimal.Multiply(item.AskList[1].Price, (decimal)Math.Pow(0.1, decimalPlace));
- item.AskList[2].Price = decimal.Multiply(item.AskList[2].Price, (decimal)Math.Pow(0.1, decimalPlace));
- item.AskList[3].Price = decimal.Multiply(item.AskList[3].Price, (decimal)Math.Pow(0.1, decimalPlace));
- item.AskList[4].Price = decimal.Multiply(item.AskList[4].Price, (decimal)Math.Pow(0.1, decimalPlace));
- item.LastClose = decimal.Multiply(item.LastClose, (decimal)Math.Pow(0.1, decimalPlace));
- item.DeliveryPrice = decimal.Multiply(item.DeliveryPrice, (decimal)Math.Pow(0.1, decimalPlace));
- item.High = decimal.Multiply(item.High, (decimal)Math.Pow(0.1, decimalPlace));
- item.Low = decimal.Multiply(item.Low, (decimal)Math.Pow(0.1, decimalPlace));
- item.Open = decimal.Multiply(item.Open, (decimal)Math.Pow(0.1, decimalPlace));
- item.TotalTurnover = decimal.Multiply(item.TotalTurnover, (decimal)Math.Pow(0.1, decimalPlace));
- item.TradeTurnover = decimal.Multiply(item.TradeTurnover, (decimal)Math.Pow(0.1, decimalPlace));
- item.FallsPrice = decimal.Multiply(item.FallsPrice, (decimal)Math.Pow(0.1, decimalPlace));
- item.RaisesPrice = decimal.Multiply(item.RaisesPrice, (decimal)Math.Pow(0.1, decimalPlace));
- item.Settlement = decimal.Multiply(item.Settlement, (decimal)Math.Pow(0.1, decimalPlace));
- item.LastSettlement = decimal.Multiply(item.LastSettlement, (decimal)Math.Pow(0.1, decimalPlace));
-
- ////最先赋值昨收,以便计算其它字段颜色,以名LastClose Setter里使用太多属性通知改变
- ////最先赋值昨收,以便计算其它字段颜色,以名LastClose Setter里使用太多属性通知改变
- int roundInt = this.GoodsParameters != null ? this.GoodsParameters.HqExchFigures : 0;
- if (item.LastClose != 0 && !this.LastClose.Equals(item.LastClose))
- {
- ///暂时注释昨收,使用昨结算与分析系统保持一致
- // this.LastClose = Math.Round(item.LastClose, roundInt, MidpointRounding.AwayFromZero);
- // this.LastSettlement = Math.Round(item.LastSettlement, roundInt, MidpointRounding.AwayFromZero);
-
- }
- if (item.LastSettlement != 0 && !this.LastSettlement.Equals(item.LastSettlement))
- {
- this.LastSettlement = Math.Round(item.LastSettlement, roundInt, MidpointRounding.AwayFromZero);
- this.LastClose = Math.Round(item.LastSettlement, roundInt, MidpointRounding.AwayFromZero); ///暂时注释昨收,使用昨结算与分析系统保持一致
- }
- if (item.LastPositions != 0 && !this.LastPositions.Equals(item.LastPositions))
- {
- this.LastPositions = item.LastPositions;
- }
- if (item.RaisesPrice != 0 && !this.RaisesPrice.Equals(item.RaisesPrice))
- {
- this.RaisesPrice = item.RaisesPrice;
- }
- if (item.FallsPrice != 0 && !this.FallsPrice.Equals(item.FallsPrice))
- {
- this.FallsPrice = item.FallsPrice;
- }
- if (item.Inventory != 0 && !this.Inventory.Equals(item.Inventory))
- {
- this.Inventory = item.Inventory;
- }
- if (item.CurrentPrice > 0 && DateTime.MinValue.Equals(item.Date))
- {
- //现价大于0 且日期为最小值 丢掉
- return;
- }
- ////只更新需要字段
- ////if (item.BidPrice != 0 && !this.BidPrice.Equals(item.BidPrice)) this.BidPrice = Math.Round(item.BidPrice, roundInt, MidpointRounding.AwayFromZero); //item.BidPrice;
- ////if (item.AskPrice != 0 && !this.AskPrice.Equals(item.AskPrice)) this.AskPrice = Math.Round(item.AskPrice, roundInt, MidpointRounding.AwayFromZero); //item.AskPrice;
- #region 显示最新的行情
- if (item.Date >= this.Date)
- {
- if (!this.BidPrice.Equals(item.BidPrice))
- {
- this.BidPrice = Math.Round(item.BidPrice, roundInt, MidpointRounding.AwayFromZero);
- }
- if (!this.AskPrice.Equals(item.AskPrice))
- {
- this.AskPrice = Math.Round(item.AskPrice, roundInt, MidpointRounding.AwayFromZero);
- }
- if (item.CurrentPrice != 0 && !this.CurrentPrice.Equals(item.CurrentPrice))
- {
- this.CurrentPrice = Math.Round(item.CurrentPrice, roundInt, MidpointRounding.AwayFromZero);
- }
- #region yxw 添加买卖档变更
- if (!item.BidList[0].Equals(this.BidList[0]))
- {
- this.BidList[0] = item.BidList[0];
- this.BidList[0].LastClose = this.LastClose;
- }
- if (!item.BidList[1].Equals(this.BidList[1]))
- {
- this.BidList[1] = item.BidList[1];
- this.BidList[1].LastClose = this.LastClose;
- }
- if (!item.BidList[2].Equals(this.BidList[2]))
- {
- this.BidList[2] = item.BidList[2];
- this.BidList[2].LastClose = this.LastClose;
- }
- if (!item.BidList[3].Equals(this.BidList[3]))
- {
- this.BidList[3] = item.BidList[3];
- this.BidList[3].LastClose = this.LastClose;
- }
- if (!item.BidList[4].Equals(this.BidList[4]))
- {
- this.BidList[4] = item.BidList[4];
- this.BidList[4].LastClose = this.LastClose;
- }
- if (!item.AskList[0].Equals(this.AskList[0]))
- {
- this.AskList[0] = item.AskList[0];
- this.AskList[0].LastClose = this.LastClose;
- }
- if (!item.AskList[1].Equals(this.AskList[1]))
- {
- this.AskList[1] = item.AskList[1];
- this.AskList[1].LastClose = this.LastClose;
- }
- if (!item.AskList[2].Equals(this.AskList[2]))
- {
- this.AskList[2] = item.AskList[2];
- this.AskList[2].LastClose = this.LastClose;
- }
- if (!item.AskList[3].Equals(this.AskList[3]))
- {
- this.AskList[3] = item.AskList[3];
- this.AskList[3].LastClose = this.LastClose;
- }
- if (!item.AskList[4].Equals(this.AskList[4]))
- {
- this.AskList[4] = item.AskList[4];
- this.AskList[4].LastClose = this.LastClose;
- }
- #endregion
- }
- #endregion
- this.Date = item.Date;
- if (item.Open != 0 && !this.Open.Equals(item.Open))
- {
- this.Open = Math.Round(item.Open, roundInt, MidpointRounding.AwayFromZero); //item.Open;
- }
- if (item.High != 0 && !this.High.Equals(item.High))
- {
- this.High = Math.Round(item.High, roundInt, MidpointRounding.AwayFromZero); //item.High;
- }
- if (item.Low != 0 && !this.Low.Equals(item.Low))
- {
- this.Low = Math.Round(item.Low, roundInt, MidpointRounding.AwayFromZero);// item.Low;
- }
- if (item.Positions != 0 && !this.Positions.Equals(item.Positions))
- {
- this.Positions = item.Positions;
- }
-
- if (item.TotalVolume != 0 && !this.TotalVolume.Equals(item.TotalVolume))
- {
- this.TotalVolume = item.TotalVolume;
- }
-
-
- if (item.TotalTurnover != 0 && !this.TotalTurnover.Equals(item.TotalTurnover))
- {
- this.TotalTurnover = item.TotalTurnover;
- }
- if ( !this.BidVolume.Equals(item.BidVolume))
- {
- this.BidVolume = item.BidVolume;
- }
- if ( !this.AskVolume.Equals(item.AskVolume))
- {
- this.AskVolume = item.AskVolume;
- }
- if (item.DayAddPositions != 0 && !this.DayAddPositions.Equals(item.DayAddPositions))
- {
- this.DayAddPositions = item.DayAddPositions;
- }
- if (item.TradeTurnover != 0 && !this.TradeTurnover.Equals(item.TradeTurnover))
- {
- this.TradeTurnover = item.TradeTurnover;
- }
- if (item.AveragePrice != 0 && !this.AveragePrice.Equals(item.AveragePrice))
- {
- this.AveragePrice = item.AveragePrice;
- }
- if (item.QuantityRelativeRatio != 0 && !this.QuantityRelativeRatio.Equals(item.QuantityRelativeRatio))
- {
- this.QuantityRelativeRatio = item.QuantityRelativeRatio;
- }
- if (item.TurnoverRate != 0 && !this.TurnoverRate.Equals(item.TurnoverRate))
- {
- this.TurnoverRate = item.TurnoverRate;
- }
- if (item.PriceEarningRatio != 0 && !this.PriceEarningRatio.Equals(item.PriceEarningRatio))
- {
- this.PriceEarningRatio = item.PriceEarningRatio;
- }
- //to confirm
- if (item.NegotiableShares != 0 && !this.NegotiableShares.Equals(item.NegotiableShares)) this.NegotiableShares = item.NegotiableShares;
- if (item.MarketCapitalizations != 0 && !this.MarketCapitalizations.Equals(item.MarketCapitalizations)) this.MarketCapitalizations = item.MarketCapitalizations;
- if (item.TotalEquity != 0 && !this.TotalEquity.Equals(item.TotalEquity)) this.TotalEquity = item.TotalEquity;
- if (item.InSize != 0 && !this.InSize.Equals(item.InSize))
- {
- this.InSize = item.InSize;
- }
- if (item.OutSize != 0 && !this.OutSize.Equals(item.OutSize))
- {
- this.OutSize = item.OutSize;
- }
- ////if (item.WeiBi != 0 && !this.WeiBi.Equals(item.WeiBi)) this.WeiBi = item.WeiBi;
- ////if (item.WeiCha != 0 && !this.WeiCha.Equals(item.WeiCha)) this.WeiCha = item.WeiCha;
- ////to confirm
- if (item.NegotiableShares != 0 && !this.NegotiableShares.Equals(item.NegotiableShares))
- {
- this.NegotiableShares = item.NegotiableShares;
- }
- if (item.MarketCapitalizations != 0 && !this.MarketCapitalizations.Equals(item.MarketCapitalizations))
- {
- this.MarketCapitalizations = item.MarketCapitalizations;
- }
- if (item.TotalEquity != 0 && !this.TotalEquity.Equals(item.TotalEquity))
- {
- this.TotalEquity = item.TotalEquity;
- }
- //if (item.AskQueueInfo != null && !this.AskQueueInfo.Equals(item.AskQueueInfo))
- //{
- this.AskQueueInfo = item.AskQueueInfo;
- //}
- //if (item.BidQueueInfo != null && !this.BidQueueInfo.Equals(item.BidQueueInfo))
- //{
- this.BidQueueInfo = item.BidQueueInfo;
- // }
- this.CurrentVolume = item.CurrentVolume; ////当前量
- //根据现价更新最高最低价
- if (CurrentPrice >= 0 && CurrentPrice > High)
- {
- High = CurrentPrice;
- }
- if (CurrentPrice >= 0 && (CurrentPrice < Low || Low <= 0))
- {
- Low = CurrentPrice;
- }
- if (this.Open == 0) //第一笔成交价为开盘价
- {
- this.Open = CurrentPrice;
- }
- }
- /// <summary>
- /// 更新除了最新价外的数据
- /// </summary>
- /// <param name="item"></param>
- public void UpdateWithoutCurPrice(QuoteGoods item)
- {
- //根据现价更新最高最低价
- if (CurrentPrice >= 0 && CurrentPrice > High)
- {
- High = CurrentPrice;
- }
- if (CurrentPrice >= 0 && (CurrentPrice < Low || Low <= 0))
- {
- Low = CurrentPrice;
- }
- }
- ///// <summary>
- ///// 从盘面数据更新
- ///// </summary>
- ///// <param name="dayQuote">The day quote.</param>
- //public void UpdateFromDayQuote(DayQuote dayQuote)
- //{
- // if (dayQuote == null)
- // {
- // return;
- // }
- // ////最先赋值昨收,以便计算其它字段颜色,以名LastClose Setter里使用太多属性通知改变
- // this.LastClose = dayQuote.PreClose;
- // if (dayQuote.LastTime >= this.Date) //比当前时间小的不更新当前价格
- // {
- // this.AskPrice = dayQuote.Ask;
- // this.AskVolume = dayQuote.AskVolume;
- // this.BidPrice = dayQuote.Bid;
- // this.BidVolume = dayQuote.BidVolume;
- // this.CurrentPrice = dayQuote.Last;
- // #region 买卖档 yxw
- // #region 买卖价格
- // this.BidList[0].Price = dayQuote.Bid;
- // this.BidList[1].Price = dayQuote.Bid2;
- // this.BidList[2].Price = dayQuote.Bid3;
- // this.BidList[3].Price = dayQuote.Bid4;
- // this.BidList[4].Price = dayQuote.Bid5;
- // this.AskList[0].Price = dayQuote.Ask;
- // this.AskList[1].Price = dayQuote.Ask2;
- // this.AskList[2].Price = dayQuote.Ask3;
- // this.AskList[3].Price = dayQuote.Ask4;
- // this.AskList[4].Price = dayQuote.Ask5;
- // #endregion
- // #region 买卖量
- // this.BidList[0].Volume = dayQuote.BidVolume;
- // this.BidList[1].Volume = dayQuote.BidVolume2;
- // this.BidList[2].Volume = dayQuote.BidVolume3;
- // this.BidList[3].Volume = dayQuote.BidVolume4;
- // this.BidList[4].Volume = dayQuote.BidVolume5;
- // this.AskList[0].Volume = dayQuote.AskVolume;
- // this.AskList[1].Volume = dayQuote.AskVolume2;
- // this.AskList[2].Volume = dayQuote.AskVolume3;
- // this.AskList[3].Volume = dayQuote.AskVolume4;
- // this.AskList[4].Volume = dayQuote.AskVolume5;
- // #endregion
- // #endregion
- // }
- // this.CurrentVolume = dayQuote.LastVolume;
- // this.Date = dayQuote.LastTime;
- // this.High = dayQuote.Highest;
- // this.LastSettlement = dayQuote.PreSettle;
- // this.Low = dayQuote.Lowest;
- // this.Open = dayQuote.Opened;
- // this.Positions = dayQuote.PreHoldVolume;
- // this.Settlement = dayQuote.Settle;
- // this.TotalTurnover = dayQuote.TotalTurnover;
- // this.TotalVolume = dayQuote.TotalVolume;
- //}
- /// <summary>
- /// 清盘面
- /// </summary>
- public void ClearQuote()
- {
- ////最先赋值昨收,以便计算其它字段颜色,以名LastClose Setter里使用太多属性通知改变
- this.LastClose = this.CurrentPrice;
- this.Date = DateTime.MinValue;
- this.AskPrice = 0;
- this.AskVolume = 0;
- this.BidPrice = 0;
- this.BidVolume = 0;
- this.CurrentPrice = 0;
- this.CurrentVolume = 0;
- this.High = 0;
- this.LastSettlement = Settlement;
- this.Low = 0;
- this.Open = 0;
- this.Settlement = 0;
- this.TotalTurnover = 0;
- this.TotalVolume = 0;
- LastPositions = this.Positions;
- this.Positions = 0;
- #region 买卖档 yxw
- #region 买卖价格
- this.BidList[0].Price = 0;
- this.BidList[1].Price = 0;
- this.BidList[2].Price = 0;
- this.BidList[3].Price = 0;
- this.BidList[4].Price = 0;
- this.AskList[0].Price = 0;
- this.AskList[1].Price = 0;
- this.AskList[2].Price = 0;
- this.AskList[3].Price = 0;
- this.AskList[4].Price = 0;
- #endregion
- #region 买卖量
- this.BidList[0].Volume = 0;
- this.BidList[1].Volume = 0;
- this.BidList[2].Volume = 0;
- this.BidList[3].Volume = 0;
- this.BidList[4].Volume = 0;
- this.AskList[0].Volume = 0;
- this.AskList[1].Volume = 0;
- this.AskList[2].Volume = 0;
- this.AskList[3].Volume = 0;
- this.AskList[4].Volume = 0;
- #endregion
- #endregion
- }
- #endregion Public Methods
- #region Private Methods
- /// <summary>
- /// Gets the brush.
- /// </summary>
- /// <param name="source">The source.</param>
- /// <param name="destination">The destination.</param>
- /// <returns>Brush.</returns>
- private Brush GetBrush(decimal source, decimal destination)
- {
- if (source == 0)
- {
- return DefaultBrush;
- }
- if (source > destination)
- {
- return AscBrush;
- }
- if (source < destination)
- {
- return DecBrush;
- }
- return DefaultBrush;
- }
- /// <summary>
- /// Gets the brush.
- /// </summary>
- /// <param name="source">The source.</param>
- /// <param name="destination">The destination.</param>
- /// <returns>Brush.</returns>
- private Brush GetBrush(double source, double destination)
- {
- if (source == 0)
- {
- return DefaultBrush;
- }
- if (source > destination)
- {
- return AscBrush;
- }
- if (source < destination)
- {
- return DecBrush;
- }
- return DefaultBrush;
- }
- /// <summary>
- /// 获取默认格式化字符串
- /// </summary>
- /// <returns>System.String.</returns>
- public string GetDefaultFormat()
- {
- if (this.Category == QuoteCategoryType.Forex)
- {
- return "#0.0000";
- }
- return "#0.00";
- }
- #endregion Private Methods
- #endregion Methods
- /// <summary>
- /// 克隆对象
- /// </summary>
- /// <returns></returns>
- public object Clone()
- {
- var temp = this.MemberwiseClone() as QuoteGoods;
- if (temp == null)
- {
- return null;
- }
- this.AskList.CopyTo(temp.AskList, 0);
- return temp;
- }
- /// <summary>
- /// 商品是否有行情
- /// </summary>
- public bool IsShowQuote
- {
- get
- {
- if (this.GoodsParameters == null)
- {
- return false;
- }
- ////todo:商品运行状态通知实现后再使用下面代码
- return true;
- //// return (this.GoodsParameters.RunStatus == MarketGoodsStatus.List || this.GoodsParameters.RunStatus == MarketGoodsStatus.MARKET_OPEN);
- }
- }
- /// <summary>
- /// 交割商品名称(关联交易商品 存放交割商品名称)
- /// </summary>
- public string DeliveryGoodsName { get; set; }
- /// <summary>
- /// 交割商品名称/代码
- /// </summary>
- public string DeliveryGoodsNameCode
- {
- get
- {
- return DeliveryGoodsName + " " + DeliveryGoodsCode;
- }
- }
- #region NEW FIELD MTP2.0
- /// <summary>
- /// 主辅商品比的主手数
- /// </summary>
- public uint XDeliveryRatio { get; set; }
- /// <summary>
- /// 主辅商品比的辅手数
- /// </summary>
- public uint PDeliveryRatio1 { get; set; }
- public uint PDeliveryRatio2 { get; set; }
- public uint P1Type { get; set; }
- public uint P2Type { get; set; }
- public uint P1value { get; set; }
- public uint P2value { get; set; }
- /// <summary>
- /// 下单类型。普通下单/摘牌下单
- /// </summary>
- public eOrderFormType formType { get; set; }
- /// <summary>
- /// 挂牌、摘牌属性=》委托单号
- /// </summary>
- public long OrderId_Listing { get; set; }
- /// <summary>
- /// 挂牌、摘牌属性=》委托价格
- /// </summary>
- public decimal OrderPrice_Listing { get; set; }
- /// <summary>
- /// 最后交易日期
- /// </summary>
- public string LastTradeDate { get; set; }
- /// <summary>
- /// 交割商品代码(关联交易商品 存放交割商品代码)
- /// </summary>
- public string DeliveryGoodsCode { get; set; }
- /// <summary>
- /// 交割商品ID(关联交易商品 存放交割商品ID)
- /// </summary>
- public uint DeliveryGoodsId { get; set; }
- /// <summary>
- /// 交割起始日期NEW
- /// </summary>
- public string BeginDate { get; set; }
- /// <summary>
- /// 交割结束日期NEW
- /// </summary>
- public string EndDate { get; set; }
- /// <summary>
- /// 辅助交易商品ID
- /// </summary>
- public uint PGoodsID1 { get; set; }
- /// <summary>
- /// 辅助商品2
- /// </summary>
- public uint PGoodsID2 { get; set; }
- /// <summary>
- /// 最小交割手数
- /// </summary>
- public uint MinDeliveryQty { get; set; }
- /// <summary>
- /// 商品单位式NEW
- /// </summary>
- public string GoodsUnit { get; set; }
- /// <summary>
- /// 合约单位NEW
- /// </summary>
- public uint AgreeUnit { get; set; }
- /// <summary>
- /// 报价货币NEW
- /// </summary>
- public string Currency { get; set; }
- /// <summary>
- /// 是否交割 0:不交割1:要交割
- /// </summary>
- public uint DeliveryFlag { get; set; }
- /// <summary>
- /// 交割商品单位 string
- /// </summary>
- public string DeliveryGoodsUnit { get; set; }
- /// <summary>
- /// 商品要素列表
- /// </summary>
- public List<PriceMoveModel> GoodsPMList { get; set; }
- #endregion
- private double _inventory;
- /// <summary>
- /// 总库存量
- /// </summary>
- public double Inventory
- {
- get { return _inventory; }
- set
- {
- Set(() => Inventory, ref _inventory, value);
- RaisePropertyChanged(() => InventoryDisplay);
- }
- }
- /// <summary>
- /// 五档买委托队列
- /// </summary>
- public string BidQueueInfo { get; set; }
- /// <summary>
- /// 五档卖委托队列
- /// </summary>
- public string AskQueueInfo { get; set; }
- /// <summary>
- /// 外部行情是否有效
- /// </summary>
- public bool IsQuoteValid { get; set; }
- public uint ClosePriceMode { get; set; }
- public double ClosePriceParam { get; set; }
- public uint Currencyid { get; set; }
- public uint DelistingMode { get; set; }
- public uint GoodsStatus { get; set; }
- public uint GoodsType { get; set; }
- public uint GroupID { get; set; }
- public uint InnerDealMode { get; set; }
- public uint IsBuyLimited { get; set; }
- public uint Lotsize { get; set; }
- public uint QtyDecimalPlace { get; set; }
- public uint QuoteMinUnit { get; set; }
- /// <summary>
- /// 交易日
- /// </summary>
- public string TradeDate { get; set; }
- }
- }
|