Market snapshot with optional mark, bid, and ask prices.

Constructors

Properties

Methods

Constructors

  • Constructs a quote from an options object { mark?, bid?, ask? }.

    Each field accepts a Price value object or a DecimalInput (string | number | bigint); an omitted/null/undefined field is absent. Passing undefined yields an empty quote.

    Errors

    Throws the price boundary error on an invalid price, or TypeError on a non-object argument.

    Parameters

    Returns Quote

Properties

ask: undefined | Price

Returns the ask price, or undefined when absent.

bid: undefined | Price

Returns the bid price, or undefined when absent.

mark: undefined | Price

Returns the mark price, or undefined when absent.

Methods

  • Returns void

  • Returns a fresh Quote holding the same prices.

    Returns Quote

  • Returns true when both quotes carry the same prices.

    Parameters

    Returns boolean

  • Returns void