Skip to content

Commit

Permalink
chore: Update SubaccountPosition fields to be non-nullable.
Browse files Browse the repository at this point in the history
  • Loading branch information
prashanDYDX committed May 13, 2024
1 parent 762ae30 commit caf4dac
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions src/commonMain/kotlin/exchange.dydx.abacus/output/Account.kt
Original file line number Diff line number Diff line change
Expand Up @@ -228,31 +228,31 @@ data class SubaccountPosition(
val id: String,
val assetId: String,
val side: TradeStatesWithPositionSides,
val entryPrice: TradeStatesWithDoubleValues?,
val entryPrice: TradeStatesWithDoubleValues,
val exitPrice: Double?,
val createdAtMilliseconds: Double?,
val closedAtMilliseconds: Double?,
val netFunding: Double?,
val realizedPnl: TradeStatesWithDoubleValues?,
val realizedPnlPercent: TradeStatesWithDoubleValues?,
val unrealizedPnl: TradeStatesWithDoubleValues?,
val unrealizedPnlPercent: TradeStatesWithDoubleValues?,
val size: TradeStatesWithDoubleValues?,
val notionalTotal: TradeStatesWithDoubleValues?,
val valueTotal: TradeStatesWithDoubleValues?,
val initialRiskTotal: TradeStatesWithDoubleValues?,
val adjustedImf: TradeStatesWithDoubleValues?,
val adjustedMmf: TradeStatesWithDoubleValues?,
val leverage: TradeStatesWithDoubleValues?,
val maxLeverage: TradeStatesWithDoubleValues?,
val buyingPower: TradeStatesWithDoubleValues?,
val liquidationPrice: TradeStatesWithDoubleValues?,
val realizedPnl: TradeStatesWithDoubleValues,
val realizedPnlPercent: TradeStatesWithDoubleValues,
val unrealizedPnl: TradeStatesWithDoubleValues,
val unrealizedPnlPercent: TradeStatesWithDoubleValues,
val size: TradeStatesWithDoubleValues,
val notionalTotal: TradeStatesWithDoubleValues,
val valueTotal: TradeStatesWithDoubleValues,
val initialRiskTotal: TradeStatesWithDoubleValues,
val adjustedImf: TradeStatesWithDoubleValues,
val adjustedMmf: TradeStatesWithDoubleValues,
val leverage: TradeStatesWithDoubleValues,
val maxLeverage: TradeStatesWithDoubleValues,
val buyingPower: TradeStatesWithDoubleValues,
val liquidationPrice: TradeStatesWithDoubleValues,
val resources: SubaccountPositionResources,
val childSubaccountNumber: Int?,
val freeCollateral: TradeStatesWithDoubleValues?,
val marginUsage: TradeStatesWithDoubleValues?,
val quoteBalance: TradeStatesWithDoubleValues?, // available for isolated market position
val equity: TradeStatesWithDoubleValues?, // available for isolated market position
val freeCollateral: TradeStatesWithDoubleValues,
val marginUsage: TradeStatesWithDoubleValues,
val quoteBalance: TradeStatesWithDoubleValues, // available for isolated market position
val equity: TradeStatesWithDoubleValues, // available for isolated market position
) {
companion object {
internal fun create(
Expand Down

0 comments on commit caf4dac

Please sign in to comment.