Class OptionSnapshot
java.lang.Object
markets.alpaca.client.openapi.data.model.OptionSnapshot
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class OptionSnapshot
extends Object
implements Serializable
A snapshot provides the latest trade and latest quote.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic OptionSnapshotCreate an instance of OptionSnapshot given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Get dailyBarGet greeksImplied volatility calculated using the Black-Scholes model.Get latestQuoteGet latestTradeGet minuteBarGet prevDailyBargreeks(OptionGreeks greeks) inthashCode()impliedVolatility(Double impliedVolatility) latestQuote(OptionQuote latestQuote) latestTrade(OptionTrade latestTrade) prevDailyBar(OptionBar prevDailyBar) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetDailyBar(OptionBar dailyBar) voidsetGreeks(OptionGreeks greeks) voidsetImpliedVolatility(Double impliedVolatility) voidsetLatestQuote(OptionQuote latestQuote) voidsetLatestTrade(OptionTrade latestTrade) voidsetMinuteBar(OptionBar minuteBar) voidsetPrevDailyBar(OptionBar prevDailyBar) toJson()Convert an instance of OptionSnapshot 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_GREEKS
- See Also:
-
SERIALIZED_NAME_IMPLIED_VOLATILITY
- 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:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
OptionSnapshot
public OptionSnapshot()
-
-
Method Details
-
dailyBar
-
getDailyBar
Get dailyBar- Returns:
- dailyBar
-
setDailyBar
-
greeks
-
getGreeks
Get greeks- Returns:
- greeks
-
setGreeks
-
impliedVolatility
-
getImpliedVolatility
Implied volatility calculated using the Black-Scholes model.- Returns:
- impliedVolatility
-
setImpliedVolatility
-
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
-
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 OptionSnapshot 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 OptionSnapshot
-
fromJson
Create an instance of OptionSnapshot given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of OptionSnapshot
- Throws:
IOException- if the JSON string is invalid with respect to OptionSnapshot
-
toJson
Convert an instance of OptionSnapshot to an JSON string- Returns:
- JSON string
-