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 e674404
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ allprojects {
}

group = "exchange.dydx.abacus"
version = "1.7.11"
version = "1.7.13"

repositories {
google()
Expand Down
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
2 changes: 1 addition & 1 deletion v4_abacus.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = 'v4_abacus'
spec.version = '1.7.11'
spec.version = '1.7.13'
spec.homepage = 'https://github.com/dydxprotocol/v4-abacus'
spec.source = { :http=> ''}
spec.authors = ''
Expand Down

0 comments on commit e674404

Please sign in to comment.