data class AdjustIsolatedMarginInput(
val market: String?,
val type: IsolatedMarginAdjustmentType, // "ADD" or "REMOVE"
val amount: String?,
val amountPercent: String?,
val amountInput: IsolatedMarginInputType?, // "AMOUNT" or "PERCENT"
val childSubaccountNumber: Int?,
val adjustIsolatedMarginInputOptions: AdjustIsolatedMarginInputOptions?,
val summary: AdjustIsolatedMarginInputSummary?,
)
Market
ADD - Add margin to the child's isolated margin account from the parent's cross margin account REMOVE - Remove margin from the child's isolated margin account to the parent's cross margin account
Amount of USDC to remove or add
Percentage of available USDC to remove or add; percent of max possible position (capped by current position leverage relative to market's max leverage)
Which one of the fields are entered by the user:
- AMOUNT
- PERCENT
Subaccount number for the child whose margin is to be adjusted