Top-level order assembled from the operation, position, and margin groups.

Constructors

Accessors

Methods

Constructors

  • Constructs an empty order; populate it through the group setters.

    Returns Order

Accessors

  • get margin(): undefined | OrderMargin
  • The margin group, or undefined.

    Returns undefined | OrderMargin

  • set margin(value): void
  • Sets the margin group.

    Accepts an OrderMargin object or a plain OrderMarginInit literal.

    Errors

    Throws ParamError/AssetError when a literal field is invalid.

    Parameters

    Returns void

  • get operation(): undefined | OrderOperation
  • The operation group, or undefined.

    Returns undefined | OrderOperation

  • set operation(value): void
  • Sets the operation group.

    Accepts an OrderOperation object or a plain OrderOperationInit literal.

    Errors

    Throws ParamError/AssetError when a literal field is invalid.

    Returns void

  • get position(): undefined | OrderPosition
  • The position group, or undefined.

    Returns undefined | OrderPosition

  • set position(value): void
  • Sets the position group.

    Accepts an OrderPosition object or a plain OrderPositionInit literal.

    Errors

    Throws ParamError when a literal field is invalid.

    Parameters

    Returns void

Methods

  • Returns void

  • Returns a deep copy of this order, including its groups.

    Returns Order

  • Returns void