示例#1
0
 public Instrument(string symbol, CategoryName categoryName, string currency, Valuation valuation, TimeSpan openTime, string groupName = "")
 {
     OpenTime     = openTime;
     Valuation    = valuation;
     GroupName    = groupName;
     Symbol       = symbol;
     CategoryName = categoryName;
     Currency     = currency;
     Dividends ??= new List <Dividend>();
 }
示例#2
0
 public void SetPrices(Valuation valuation)
 {
     Valuation.ChangeAskPrice(valuation.AskPrice);
     Valuation.ChangeBidPrice(valuation.BidPrice);
 }