Exemple #1
0
 public void CompleteMissing(Quotation quotation)
 {
     var price = quotation.Close;
     Open = price;
     High = price;
     Low = price;
     Close = price;
     Volume = -1;
     IsUpdated = true;
 }
Exemple #2
0
        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;
        }
Exemple #3
0
        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);
        }
Exemple #4
0
 public void UpdateQuotation(Quotation quotation, string symbol)
 {
 }