Class PublicMarket
java.lang.Object
markets.alpaca.client.openapi.trading.model.PublicMarket
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class PublicMarket
extends Object
implements Serializable
A market.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic PublicMarketCreate an instance of PublicMarket given an JSON stringThe acronym of the market.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getBic()Business Identifier Code (BIC/SWIFT).getMic()Market identifier code (ISO 10383).getName()The full name of the market.The timezone of the market.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAcronym(String acronym) voidvoidvoidvoidsetTimezone(String timezone) toJson()Convert an instance of PublicMarket to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ACRONYM
- See Also:
-
SERIALIZED_NAME_BIC
- See Also:
-
SERIALIZED_NAME_MIC
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_TIMEZONE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PublicMarket
public PublicMarket()
-
-
Method Details
-
acronym
-
getAcronym
The acronym of the market.- Returns:
- acronym
-
setAcronym
-
bic
-
getBic
Business Identifier Code (BIC/SWIFT).- Returns:
- bic
-
setBic
-
mic
-
getMic
Market identifier code (ISO 10383).- Returns:
- mic
-
setMic
-
name
-
getName
The full name of the market.- Returns:
- name
-
setName
-
timezone
-
getTimezone
The timezone of the market.- Returns:
- timezone
-
setTimezone
-
putAdditionalProperty
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 propertyvalue- value of the property- Returns:
- the PublicMarket instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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 PublicMarket
-
fromJson
Create an instance of PublicMarket given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PublicMarket
- Throws:
IOException- if the JSON string is invalid with respect to PublicMarket
-
toJson
Convert an instance of PublicMarket to an JSON string- Returns:
- JSON string
-