private Entities.Trade.ExchangeOrder ContractToEntity(ExchangeOrder contract)
        {
            var entity = new Entities.Trade.ExchangeOrder
            {
                Id             = contract.ExchangeOrderId,
                ClosedDate     = contract.ClosedDate,
                Exchange       = contract.Exchange,
                FilledQuantity = contract.FilledQuantity,
                OrderId        = contract.OrderId,
                Pair           = contract.Pair,
                Price          = contract.Price,
                PlaceDate      = contract.PlaceDate,
                Quantity       = contract.Quantity,
                Side           = contract.Side,
                Status         = contract.Status
            };

            return(entity);
        }
        private ExchangeOrder EntityToContract(Entities.Trade.ExchangeOrder entity)
        {
            var contract = new ExchangeOrder
            {
                ExchangeOrderId = entity.Id,
                ClosedDate      = entity.ClosedDate,
                Exchange        = entity.Exchange,
                FilledQuantity  = entity.FilledQuantity,
                OrderId         = entity.OrderId,
                Pair            = entity.Pair,
                Price           = entity.Price,
                PlaceDate       = entity.PlaceDate,
                Quantity        = entity.Quantity,
                Side            = entity.Side,
                Status          = entity.Status
            };

            return(contract);
        }