Class FixedIncomeQuote

java.lang.Object
markets.alpaca.client.openapi.data.model.FixedIncomeQuote
All Implemented Interfaces:
Serializable

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class FixedIncomeQuote extends Object implements Serializable
The best bid and ask information for a given fixed income security. A value of 0 means there is no active bid or ask for that field.
See Also:
  • Field Details

  • Constructor Details

    • FixedIncomeQuote

      public FixedIncomeQuote()
  • Method Details

    • ams

      public FixedIncomeQuote ams(@Nonnull Long ams)
    • getAms

      @Nonnull public Long getAms()
      Best ask minimum trade size in par value.
      Returns:
      ams
    • setAms

      public void setAms(@Nonnull Long ams)
    • ap

      public FixedIncomeQuote ap(@Nonnull Double ap)
    • getAp

      @Nonnull public Double getAp()
      Best ask price. 0 means there is no active ask.
      Returns:
      ap
    • setAp

      public void setAp(@Nonnull Double ap)
    • as

      public FixedIncomeQuote as(@Nonnull Long as)
    • getAs

      @Nonnull public Long getAs()
      Best ask size in par value. 0 means there is no active ask.
      Returns:
      as
    • setAs

      public void setAs(@Nonnull Long as)
    • aytm

      public FixedIncomeQuote aytm(@Nonnull Double aytm)
    • getAytm

      @Nonnull public Double getAytm()
      Best ask yield to maturity.
      Returns:
      aytm
    • setAytm

      public void setAytm(@Nonnull Double aytm)
    • aytw

      public FixedIncomeQuote aytw(@Nonnull Double aytw)
    • getAytw

      @Nonnull public Double getAytw()
      Best ask yield to worst.
      Returns:
      aytw
    • setAytw

      public void setAytw(@Nonnull Double aytw)
    • bms

      public FixedIncomeQuote bms(@Nonnull Long bms)
    • getBms

      @Nonnull public Long getBms()
      Best bid minimum trade size in par value.
      Returns:
      bms
    • setBms

      public void setBms(@Nonnull Long bms)
    • bp

      public FixedIncomeQuote bp(@Nonnull Double bp)
    • getBp

      @Nonnull public Double getBp()
      Best bid price. 0 means there is no active bid.
      Returns:
      bp
    • setBp

      public void setBp(@Nonnull Double bp)
    • bs

      public FixedIncomeQuote bs(@Nonnull Long bs)
    • getBs

      @Nonnull public Long getBs()
      Best bid size in par value. 0 means there is no active bid.
      Returns:
      bs
    • setBs

      public void setBs(@Nonnull Long bs)
    • bytm

      public FixedIncomeQuote bytm(@Nonnull Double bytm)
    • getBytm

      @Nonnull public Double getBytm()
      Best bid yield to maturity.
      Returns:
      bytm
    • setBytm

      public void setBytm(@Nonnull Double bytm)
    • bytw

      public FixedIncomeQuote bytw(@Nonnull Double bytw)
    • getBytw

      @Nonnull public Double getBytw()
      Best bid yield to worst.
      Returns:
      bytw
    • setBytw

      public void setBytw(@Nonnull Double bytw)
    • t

      public FixedIncomeQuote t(@Nonnull OffsetDateTime t)
    • getT

      @Nonnull public OffsetDateTime getT()
      Timestamp in RFC-3339 format with nanosecond precision.
      Returns:
      t
    • setT

      public void setT(@Nonnull OffsetDateTime t)
    • putAdditionalProperty

      public FixedIncomeQuote putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - name of the property
      value - value of the property
      Returns:
      the FixedIncomeQuote instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - name of the property
      Returns:
      an object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to FixedIncomeQuote
    • fromJson

      public static FixedIncomeQuote fromJson(String jsonString) throws IOException
      Create an instance of FixedIncomeQuote given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of FixedIncomeQuote
      Throws:
      IOException - if the JSON string is invalid with respect to FixedIncomeQuote
    • toJson

      public String toJson()
      Convert an instance of FixedIncomeQuote to an JSON string
      Returns:
      JSON string