Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1.07 KB

AdjustIsolatedMarginInput.md

File metadata and controls

39 lines (26 loc) · 1.07 KB

AdjustIsolatedMarginInput

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

Market

type

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

Amount of USDC to remove or add

amountPercent

Percentage of available USDC to remove or add; percent of max possible position (capped by current position leverage relative to market's max leverage)

amountInput

Which one of the fields are entered by the user:

  • AMOUNT
  • PERCENT

childSubaccountNumber

Subaccount number for the child whose margin is to be adjusted