Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

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

  • clientOrderId is not allowed with timeInForce: "IOC".

See also