public void CompleteMissing(Quotation quotation) { var price = quotation.Close; Open = price; High = price; Low = price; Close = price; Volume = -1; IsUpdated = true; }
public static Quotation FromDto(QuotationDto dto) { var quotation = new Quotation(); quotation.Id = dto.Id; quotation.Date = dto.PriceDate; quotation.AssetId = dto.AssetId; quotation.Open = dto.OpenPrice; quotation.High = dto.HighPrice; quotation.Low = dto.LowPrice; quotation.Close = dto.ClosePrice; quotation.Volume = dto.Volume; return quotation; }
public static Quotation FromDto(QuotationDto dto) { var quotation = new Quotation { AssetId = dto.AssetId, TimeframeId = dto.TimeframeId, Date = dto.Date, DateIndex = dto.DateIndex, Open = dto.Open, High = dto.High, Low = dto.Low, Close = dto.Close }; return(quotation); }
public void UpdateQuotation(Quotation quotation, string symbol) { }