java.lang.Object
net.jacobpeterson.alpaca.openapi.broker.model.Calendar

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-03-23T18:58:47.485165-07:00[America/Los_Angeles]") public class Calendar extends Object
The calendar API serves the full list of market days from 1970 to 2029. It can also be queried by specifying a start and/or end time to narrow down the results. In addition to the dates, the response also contains the specific open and close times for the market days, taking into account early closures.
  • Field Details

  • Constructor Details

    • Calendar

      public Calendar()
  • Method Details

    • date

      public Calendar date(LocalDate date)
    • getDate

      @Nonnull public LocalDate getDate()
      Date string in YYYY-MM-DD format
      Returns:
      date
    • setDate

      public void setDate(LocalDate date)
    • open

      public Calendar open(String open)
    • getOpen

      @Nonnull public String getOpen()
      The time the market opens at on this date in HH:MM format
      Returns:
      open
    • setOpen

      public void setOpen(String open)
    • close

      public Calendar close(String close)
    • getClose

      @Nonnull public String getClose()
      The time the market closes at on this date in HH:MM format
      Returns:
      close
    • setClose

      public void setClose(String close)
    • sessionOpen

      @Deprecated public Calendar sessionOpen(String sessionOpen)
      Deprecated.
    • getSessionOpen

      @Deprecated @Nullable public String getSessionOpen()
      Deprecated.
      this field has been deprecated please ignore
      Returns:
      sessionOpen
    • setSessionOpen

      @Deprecated public void setSessionOpen(String sessionOpen)
      Deprecated.
    • sessionClose

      @Deprecated public Calendar sessionClose(String sessionClose)
      Deprecated.
    • getSessionClose

      @Deprecated @Nullable public String getSessionClose()
      Deprecated.
      this field has been deprecated please ignore
      Returns:
      sessionClose
    • setSessionClose

      @Deprecated public void setSessionClose(String sessionClose)
      Deprecated.
    • settlementDate

      public Calendar settlementDate(String settlementDate)
    • getSettlementDate

      @Nullable public String getSettlementDate()
      Date string in ā€œ%Y-%m-%dā€ format. representing the settlement date for the trade date
      Returns:
      settlementDate
    • setSettlementDate

      public void setSettlementDate(String settlementDate)
    • 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
      Throws:
      IOException
    • fromJson

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

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