Ejemplo n.º 1
0
        private Entities.Trade.HistoricalPrice ContractToEntity(HistoricalPrice contract)
        {
            var entity = new Entities.Trade.HistoricalPrice
            {
                Exchange = contract.Exchange,
                Pair     = contract.Pair,
                Price    = contract.Price,
                High     = contract.High,
                Low      = contract.Low,
                Snapshot = contract.Snapshot
            };

            return(entity);
        }
Ejemplo n.º 2
0
        private HistoricalPrice EntityToContract(Entities.Trade.HistoricalPrice entity)
        {
            var contract = new HistoricalPrice
            {
                Exchange = entity.Exchange,
                Pair     = entity.Pair,
                Price    = entity.Price,
                High     = entity.High,
                Low      = entity.Low,
                Snapshot = entity.Snapshot
            };

            return(contract);
        }