Class StockSnapshotsRespSingle
java.lang.Object
markets.alpaca.client.openapi.data.model.StockSnapshotsRespSingle
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class StockSnapshotsRespSingle
extends Object
implements Serializable
StockSnapshotsRespSingle
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic StockSnapshotsRespSingleCreate an instance of StockSnapshotsRespSingle given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Get currencyGet dailyBarGet latestQuoteGet latestTradeGet minuteBarGet prevDailyBarGet symbolinthashCode()latestQuote(StockQuote latestQuote) latestTrade(StockTrade latestTrade) prevDailyBar(StockBar prevDailyBar) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetCurrency(String currency) voidsetDailyBar(StockBar dailyBar) voidsetLatestQuote(StockQuote latestQuote) voidsetLatestTrade(StockTrade latestTrade) voidsetMinuteBar(StockBar minuteBar) voidsetPrevDailyBar(StockBar prevDailyBar) voidtoJson()Convert an instance of StockSnapshotsRespSingle 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_DAILY_BAR
- See Also:
-
SERIALIZED_NAME_LATEST_QUOTE
- See Also:
-
SERIALIZED_NAME_LATEST_TRADE
- See Also:
-
SERIALIZED_NAME_MINUTE_BAR
- See Also:
-
SERIALIZED_NAME_PREV_DAILY_BAR
- See Also:
-
SERIALIZED_NAME_CURRENCY
- See Also:
-
SERIALIZED_NAME_SYMBOL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
StockSnapshotsRespSingle
public StockSnapshotsRespSingle()
-
-
Method Details
-
dailyBar
-
getDailyBar
Get dailyBar- Returns:
- dailyBar
-
setDailyBar
-
latestQuote
-
getLatestQuote
Get latestQuote- Returns:
- latestQuote
-
setLatestQuote
-
latestTrade
-
getLatestTrade
Get latestTrade- Returns:
- latestTrade
-
setLatestTrade
-
minuteBar
-
getMinuteBar
Get minuteBar- Returns:
- minuteBar
-
setMinuteBar
-
prevDailyBar
-
getPrevDailyBar
Get prevDailyBar- Returns:
- prevDailyBar
-
setPrevDailyBar
-
currency
-
getCurrency
Get currency- Returns:
- currency
-
setCurrency
-
symbol
-
getSymbol
Get symbol- Returns:
- symbol
-
setSymbol
-
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 StockSnapshotsRespSingle 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 StockSnapshotsRespSingle
-
fromJson
Create an instance of StockSnapshotsRespSingle given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of StockSnapshotsRespSingle
- Throws:
IOException- if the JSON string is invalid with respect to StockSnapshotsRespSingle
-
toJson
Convert an instance of StockSnapshotsRespSingle to an JSON string- Returns:
- JSON string
-