PerpPosition constructor
PerpPosition({
- required String productId,
- required String productUuid,
- required String symbol,
- required String assetImageUrl,
- required Vwap vwap,
- required String positionSide,
- required String netSize,
- required String buyOrderSize,
- required String sellOrderSize,
- required String imContribution,
- required CurrencyPair unrealizedPnl,
- required CurrencyPair markPrice,
- required CurrencyPair liquidationPrice,
- required String leverage,
- required CurrencyPair imNotional,
- required CurrencyPair mmNotional,
- required CurrencyPair positionNotional,
- required String marginType,
- required String liquidationBuffer,
- required String liquidationPercentage,
- required String assetColor,
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});