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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-03-23T18:58:49.391307-07:00[America/Los_Angeles]") public class Calendar extends Object
Calendar
  • Field Details

  • Constructor Details

    • Calendar

      public Calendar()
  • Method Details

    • date

      public Calendar date(String date)
    • getDate

      @Nonnull public String getDate()
      Date string in “%Y-%m-%d” format
      Returns:
      date
    • setDate

      public void setDate(String date)
    • open

      public Calendar open(String open)
    • getOpen

      @Nonnull public String getOpen()
      The time the market opens at on this date in “%H:%M” 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 “%H:%M” format
      Returns:
      close
    • setClose

      public void setClose(String close)
    • settlementDate

      public Calendar settlementDate(String settlementDate)
    • getSettlementDate

      @Nonnull 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