Skip to content

Latest commit

 

History

History
104 lines (63 loc) · 1.77 KB

File metadata and controls

104 lines (63 loc) · 1.77 KB

TriggerOrdersInput

data class TriggerOrdersInput(
 val marketId: String?,
 val size: Double?,
 val stopLossOrder: TriggerOrder?,
 val takeProfitOrder: TriggerOrder?
)

marketId

Selected Market ID

size

Optional size input which overrides the sizes of both the existing take profit and stop loss order sizes (if non-null).

stopLossOrder

Stop loss order for the position

takeProfitOrder

Take profit order for the position

TriggerOrder

data class TriggerOrderInput(
 val orderId: String?,
 val size: Double?,  val type: OrderType?,
 val side: Side?,
 val price: TriggerPrice?
 val summary: TriggerOrderInputSummary?
)

orderId

The associated order ID, if the order already exists

size

Size of order

type

OrderType. See SubaccountOrder

side

BUY or SELL

price

Price information for the order

summary

A summary of the order

TriggerPrice

data class TriggerPrice(
 val limitPrice: Double?,
 val triggerPrice: Double?,
 val percentDiff: Double?,
 val usdcDiff: Double?,
 val input: String?
)

limitPrice

Entered limit price

triggerPrice

Entered trigger price

percentDiff

Percentage price difference of the trigger price relative to the position's average entry price

usdcDiff

Usdc price difference of the trigger price relative to the position's average entry price

input

The price field last modified by the user: triggerPrice, percentDiff, usdcDiff

TriggerOrderInputSummary

data class TriggerOrderInputSummary(
 val price: Double?
 val size: Double?
)

price

Price of the order

price

Size of the order