Class Calendar
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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static Calendar
Create an instance of Calendar given an JSON stringgetClose()
The time the market closes at on this date in HH:MM formatgetDate()
Date string in YYYY-MM-DD formatgetOpen()
The time the market opens at on this date in HH:MM formatDeprecated.Deprecated.Date string in ā%Y-%m-%dā format.int
hashCode()
sessionClose
(String sessionClose) Deprecated.sessionOpen
(String sessionOpen) Deprecated.void
void
void
void
setSessionClose
(String sessionClose) Deprecated.void
setSessionOpen
(String sessionOpen) Deprecated.void
setSettlementDate
(String settlementDate) settlementDate
(String settlementDate) toJson()
Convert an instance of Calendar to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement)
-
Field Details
-
SERIALIZED_NAME_DATE
- See Also:
-
SERIALIZED_NAME_OPEN
- See Also:
-
SERIALIZED_NAME_CLOSE
- See Also:
-
SERIALIZED_NAME_SESSION_OPEN
- See Also:
-
SERIALIZED_NAME_SESSION_CLOSE
- See Also:
-
SERIALIZED_NAME_SETTLEMENT_DATE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
validate
public static boolean validate -
isValid
-
-
Constructor Details
-
Calendar
public Calendar()
-
-
Method Details
-
date
-
getDate
Date string in YYYY-MM-DD format- Returns:
- date
-
setDate
-
open
-
getOpen
The time the market opens at on this date in HH:MM format- Returns:
- open
-
setOpen
-
close
-
getClose
The time the market closes at on this date in HH:MM format- Returns:
- close
-
setClose
-
sessionOpen
Deprecated. -
getSessionOpen
Deprecated.this field has been deprecated please ignore- Returns:
- sessionOpen
-
setSessionOpen
Deprecated. -
sessionClose
Deprecated. -
getSessionClose
Deprecated.this field has been deprecated please ignore- Returns:
- sessionClose
-
setSessionClose
Deprecated. -
settlementDate
-
getSettlementDate
Date string in ā%Y-%m-%dā format. representing the settlement date for the trade date- Returns:
- settlementDate
-
setSettlementDate
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
- Throws:
IOException
-
fromJson
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
Convert an instance of Calendar to an JSON string- Returns:
- JSON string
-