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); }
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); }