Deal constructor

Deal(
  1. int? id,
  2. String? type,
  3. int? botId,
  4. int? maxSafetyOrders,
  5. bool? dealHasError,
  6. int? fromCurrencyId,
  7. int? toCurrencyId,
  8. int? accountId,
  9. int? activeSafetyOrdersCount,
  10. DateTime? createdAt,
  11. DateTime? updatedAt,
  12. bool? finished,
  13. int? currentActiveSafetyOrdersCount,
  14. int? currentActiveSafetyOrders,
  15. int? completedSafetyOrdersCount,
  16. int? completedManualSafetyOrdersCount,
  17. bool? cancellable,
  18. bool? panicSellable,
  19. bool? trailingEnabled,
  20. bool? tslEnabled,
  21. bool? stopLossTimeoutEnabled,
  22. int? stopLossTimeoutInSeconds,
  23. int? activeManualSafetyOrders,
  24. String? pair,
  25. String? status,
  26. String? localizedStatus,
  27. double? takeProfit,
  28. double? baseOrderVolume,
  29. double? safetyOrderVolume,
  30. double? safetyOrderStepPercentage,
  31. String? leverageType,
  32. double? boughtAmount,
  33. double? boughtVolume,
  34. double? boughtAveragePrice,
  35. double? baseOrderAveragePrice,
  36. double? soldAmount,
  37. double? soldVolume,
  38. double? soldAveragePrice,
  39. String? takeProfitType,
  40. double? finalProfit,
  41. double? martingaleCoefficient,
  42. double? martingaleVolumeCoefficient,
  43. double? martingaleStepCoefficient,
  44. double? stopLossPercentage,
  45. String? safetyOrderVolumeType,
  46. String? fromCurrency,
  47. String? toCurrency,
  48. double? currentPrice,
  49. double? takeProfitPrice,
  50. double? finalProfitPercentage,
  51. double? actualProfitPercentage,
  52. String? botName,
  53. String? accountName,
  54. double? usdFinalProfit,
  55. double? actualProfit,
  56. double? actualUsdProfit,
  57. double? reservedBaseCoin,
  58. double? reservedSecondCoin,
  59. double? trailingDeviation,
  60. String? strategy,
  61. double? reservedQuoteFunds,
  62. double? reservedBaseFunds,
  63. String? baseOrderVolumeType,
  64. String? profitCurrency,
  65. 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,
);