Loading the API reference…

Browse the API reference

PATCH /baskets/specs/{id}

patch https://trading-gateway-api.prod.thinkalpha.io/baskets/specs/{id}
Authentication
Bearer token or Client credentials (HTTP Basic)

Path parameters

  • id string<uuid> required

    Basket spec ID

Request body application/json required

Request body for partially updating a basket spec. Nullable patch fields intentionally use nested `Option` to match the TS JSON contract: omitted means unchanged, `null` means clear, and a value means set.

  • account string<uuid>
  • adjustment number<double>
    >= 0
  • basketType BasketType
  • direction AdjustmentDirection
  • duration OrderDuration

    Time-in-force / duration of an order.

    one of "gtc", "day", "gtx", "gtd", "opg", "ioc", "atc", "fok"
  • exDestination string
  • multiplier integer<int32>
    >= 1
  • name string
    min length 1
  • notionalAmount number<double> nullable
  • notionalType NotionalType
  • BasketSpecOrder[]
  • positionsAccount string<uuid> nullable
  • quantity integer<int32>
    >= 1
  • route string
  • side OrderInitialSide

    The initial side of an order (excludes sell-split).

    one of "buy", "sell", "sell-short", "closeout", "multi-leg"
  • type OrderType

    Type of an order.

    one of "market", "limit", "stop", "stop_limit", "pegged", "box_limit", "box_market"
  • weightBasis WeightBasis

Responses

One of