Class Calendar
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
-
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 “%H:%M” formatgetDate()
Date string in “%Y-%m-%d” formatgetOpen()
The time the market opens at on this date in “%H:%M” formatDate string in “%Y-%m-%d” format.int
hashCode()
void
void
void
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_SETTLEMENT_DATE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
validate
public static boolean validate -
isValid
-
-
Constructor Details
-
Calendar
public Calendar()
-
-
Method Details
-
date
-
getDate
Date string in “%Y-%m-%d” format- Returns:
- date
-
setDate
-
open
-
getOpen
The time the market opens at on this date in “%H:%M” format- Returns:
- open
-
setOpen
-
close
-
getClose
The time the market closes at on this date in “%H:%M” format- Returns:
- close
-
setClose
-
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
-