PerpsOrderKind
A perps order's kind — market or limit.
Definition
type PerpsOrderKind =
| { market: { maxSlippage: string } }
| {
limit: {
limitPrice: string
timeInForce: "GTC" | "IOC" | "POST"
clientOrderId?: string | null
}
}Construction
import type { PerpsOrderKind } from "@left-curve/sdk"
const market: PerpsOrderKind = { market: { maxSlippage: "0.005" } }
const limit: PerpsOrderKind = {
limit: { limitPrice: "65000", timeInForce: "GTC" },
}Notes
clientOrderIdis not allowed withtimeInForce: "IOC".