/// <summary> /// Initializes a new instance of the HistoryTradeModel class. /// </summary> /// <param name="id">The ID of the trade.</param> /// <param name="dateTime">The time the trade was placed.</param> /// <param name="state">The current status of the trade. Possible /// values include: 'Unknown', 'InProgress', 'Finished', 'Canceled', /// 'Failed'</param> /// <param name="amount">The trade amount.</param> /// <param name="asset">The trade base asset.</param> /// <param name="assetPair">The trading pair.</param> /// <param name="price">The trading price.</param> /// <param name="fee">The applied trading fee.</param> public HistoryTradeModel(string id, System.DateTime dateTime, TradeStatus state, double amount, string asset, string assetPair, double price, FeeModel fee) { Id = id; DateTime = dateTime; State = state; Amount = amount; Asset = asset; AssetPair = assetPair; Price = price; Fee = fee; CustomInit(); }
/// <summary> /// Initializes a new instance of the HistoryTradeModel class. /// </summary> /// <param name="id">The ID of the trade.</param> /// <param name="orderId">Related order Id.</param> /// <param name="dateTime">The time the trade.</param> /// <param name="timestamp">The time the trade.</param> /// <param name="state">The current status of the trade.</param> /// <param name="amount">The trade amount.</param> /// <param name="asset">The trade base asset.</param> /// <param name="baseAssetId">The trade base asset.</param> /// <param name="quotingAssetId">The trade quoting asset.</param> /// <param name="assetPair">The trading pair.</param> /// <param name="assetPairId">The trading pair.</param> /// <param name="price">The trading price.</param> /// <param name="fee">The applied trading fee.</param> public HistoryTradeModel(System.Guid id, System.Guid orderId, System.DateTime dateTime, System.DateTime timestamp, string state, double amount, double baseVolume, double quotingVolume, string asset, string baseAssetId, string quotingAssetId, string assetPair, string assetPairId, double price, FeeModel fee) { Id = id; OrderId = orderId; DateTime = dateTime; Timestamp = timestamp; State = state; Amount = amount; BaseVolume = baseVolume; QuotingVolume = quotingVolume; Asset = asset; BaseAssetId = baseAssetId; QuotingAssetId = quotingAssetId; AssetPair = assetPair; AssetPairId = assetPairId; Price = price; Fee = fee; CustomInit(); }