PerpPosition constructor

PerpPosition({
  1. required String productId,
  2. required String productUuid,
  3. required String symbol,
  4. required String assetImageUrl,
  5. required Vwap vwap,
  6. required String positionSide,
  7. required String netSize,
  8. required String buyOrderSize,
  9. required String sellOrderSize,
  10. required String imContribution,
  11. required CurrencyPair unrealizedPnl,
  12. required CurrencyPair markPrice,
  13. required CurrencyPair liquidationPrice,
  14. required String leverage,
  15. required CurrencyPair imNotional,
  16. required CurrencyPair mmNotional,
  17. required CurrencyPair positionNotional,
  18. required String marginType,
  19. required String liquidationBuffer,
  20. required String liquidationPercentage,
  21. required String assetColor,
})

PerpPosition constructor

Implementation

PerpPosition(
    {required this.productId,
    required this.productUuid,
    required this.symbol,
    required this.assetImageUrl,
    required this.vwap,
    required this.positionSide,
    required this.netSize,
    required this.buyOrderSize,
    required this.sellOrderSize,
    required this.imContribution,
    required this.unrealizedPnl,
    required this.markPrice,
    required this.liquidationPrice,
    required this.leverage,
    required this.imNotional,
    required this.mmNotional,
    required this.positionNotional,
    required this.marginType,
    required this.liquidationBuffer,
    required this.liquidationPercentage,
    required this.assetColor});