Record Class LuldBand

java.lang.Object
java.lang.Record
markets.alpaca.client.ws.model.LuldBand
Record Components:
symbol - ticker symbol
limitUp - upper price band
limitDown - lower price band
indicator - LULD indicator code
timestamp - RFC-3339 timestamp
tape - consolidated tape identifier

public record LuldBand(String symbol, BigDecimal limitUp, BigDecimal limitDown, String indicator, String timestamp, String tape) extends Record
A Limit Up – Limit Down (LULD) price band update (T: "l").
  • Constructor Details

    • LuldBand

      public LuldBand(String symbol, BigDecimal limitUp, BigDecimal limitDown, String indicator, String timestamp, String tape)
      Creates an instance of a LuldBand record class.
      Parameters:
      symbol - the value for the symbol record component
      limitUp - the value for the limitUp record component
      limitDown - the value for the limitDown record component
      indicator - the value for the indicator record component
      timestamp - the value for the timestamp record component
      tape - the value for the tape record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • symbol

      @SerializedName("S") public String symbol()
      Returns the value of the symbol record component.
      Returns:
      the value of the symbol record component
    • limitUp

      @SerializedName("u") public BigDecimal limitUp()
      Returns the value of the limitUp record component.
      Returns:
      the value of the limitUp record component
    • limitDown

      @SerializedName("d") public BigDecimal limitDown()
      Returns the value of the limitDown record component.
      Returns:
      the value of the limitDown record component
    • indicator

      @SerializedName("i") public String indicator()
      Returns the value of the indicator record component.
      Returns:
      the value of the indicator record component
    • timestamp

      @SerializedName("t") public String timestamp()
      Returns the value of the timestamp record component.
      Returns:
      the value of the timestamp record component
    • tape

      @SerializedName("z") public String tape()
      Returns the value of the tape record component.
      Returns:
      the value of the tape record component