Deal constructor
Deal(
- int? id,
- String? type,
- int? botId,
- int? maxSafetyOrders,
- bool? dealHasError,
- int? fromCurrencyId,
- int? toCurrencyId,
- int? accountId,
- int? activeSafetyOrdersCount,
- DateTime? createdAt,
- DateTime? updatedAt,
- bool? finished,
- int? currentActiveSafetyOrdersCount,
- int? currentActiveSafetyOrders,
- int? completedSafetyOrdersCount,
- int? completedManualSafetyOrdersCount,
- bool? cancellable,
- bool? panicSellable,
- bool? trailingEnabled,
- bool? tslEnabled,
- bool? stopLossTimeoutEnabled,
- int? stopLossTimeoutInSeconds,
- int? activeManualSafetyOrders,
- String? pair,
- String? status,
- String? localizedStatus,
- double? takeProfit,
- double? baseOrderVolume,
- double? safetyOrderVolume,
- double? safetyOrderStepPercentage,
- String? leverageType,
- double? boughtAmount,
- double? boughtVolume,
- double? boughtAveragePrice,
- double? baseOrderAveragePrice,
- double? soldAmount,
- double? soldVolume,
- double? soldAveragePrice,
- String? takeProfitType,
- double? finalProfit,
- double? martingaleCoefficient,
- double? martingaleVolumeCoefficient,
- double? martingaleStepCoefficient,
- double? stopLossPercentage,
- String? safetyOrderVolumeType,
- String? fromCurrency,
- String? toCurrency,
- double? currentPrice,
- double? takeProfitPrice,
- double? finalProfitPercentage,
- double? actualProfitPercentage,
- String? botName,
- String? accountName,
- double? usdFinalProfit,
- double? actualProfit,
- double? actualUsdProfit,
- double? reservedBaseCoin,
- double? reservedSecondCoin,
- double? trailingDeviation,
- String? strategy,
- double? reservedQuoteFunds,
- double? reservedBaseFunds,
- String? baseOrderVolumeType,
- String? profitCurrency,
- String? stopLossType,
Implementation
Deal(
this.id,
this.type,
this.botId,
this.maxSafetyOrders,
this.dealHasError,
this.fromCurrencyId,
this.toCurrencyId,
this.accountId,
this.activeSafetyOrdersCount,
this.createdAt,
this.updatedAt,
this.finished,
this.currentActiveSafetyOrdersCount,
this.currentActiveSafetyOrders,
this.completedSafetyOrdersCount,
this.completedManualSafetyOrdersCount,
this.cancellable,
this.panicSellable,
this.trailingEnabled,
this.tslEnabled,
this.stopLossTimeoutEnabled,
this.stopLossTimeoutInSeconds,
this.activeManualSafetyOrders,
this.pair,
this.status,
this.localizedStatus,
this.takeProfit,
this.baseOrderVolume,
this.safetyOrderVolume,
this.safetyOrderStepPercentage,
this.leverageType,
this.boughtAmount,
this.boughtVolume,
this.boughtAveragePrice,
this.baseOrderAveragePrice,
this.soldAmount,
this.soldVolume,
this.soldAveragePrice,
this.takeProfitType,
this.finalProfit,
this.martingaleCoefficient,
this.martingaleVolumeCoefficient,
this.martingaleStepCoefficient,
this.stopLossPercentage,
this.safetyOrderVolumeType,
this.fromCurrency,
this.toCurrency,
this.currentPrice,
this.takeProfitPrice,
this.finalProfitPercentage,
this.actualProfitPercentage,
this.botName,
this.accountName,
this.usdFinalProfit,
this.actualProfit,
this.actualUsdProfit,
this.reservedBaseCoin,
this.reservedSecondCoin,
this.trailingDeviation,
this.strategy,
this.reservedQuoteFunds,
this.reservedBaseFunds,
this.baseOrderVolumeType,
this.profitCurrency,
this.stopLossType,
);