data class TriggerOrdersInput(
val marketId: String?,
val size: Double?,
val stopLossOrder: TriggerOrder?,
val takeProfitOrder: TriggerOrder?
)
Selected Market ID
Optional size input which overrides the sizes of both the existing take profit and stop loss order sizes (if non-null).
Stop loss order for the position
Take profit order for the position
data class TriggerOrderInput(
val orderId: String?,
val size: Double?,
val type: OrderType?,
val side: Side?,
val price: TriggerPrice?
val summary: TriggerOrderInputSummary?
)
The associated order ID, if the order already exists
Size of order
OrderType. See SubaccountOrder
BUY or SELL
Price information for the order
A summary of the order
data class TriggerPrice(
val limitPrice: Double?,
val triggerPrice: Double?,
val percentDiff: Double?,
val usdcDiff: Double?,
val input: String?
)
Entered limit price
Entered trigger price
Percentage price difference of the trigger price relative to the position's average entry price
Usdc price difference of the trigger price relative to the position's average entry price
The price field last modified by the user: triggerPrice, percentDiff, usdcDiff
data class TriggerOrderInputSummary(
val price: Double?
val size: Double?
)
Price of the order
Size of the order