Class StockV3Snapshot
java.lang.Object
markets.alpaca.client.openapi.data.model.StockV3Snapshot
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.28.0")
public class StockV3Snapshot
extends Object
implements Serializable
The latest trade, latest quote, minute bar, current daily bar, and previous daily bar for one symbol. Bars are not adjusted after splits or dividends. Symbol mapping is also not supported: in case of a name change the symbol active at the time must be used. Trades and bars may include prints that were later corrected or cancelled. Corrections and cancel/error events are not applied.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondailyBar(StockV3Bar dailyBar) booleanstatic StockV3SnapshotCreate an instance of StockV3Snapshot given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Get dailyBarGet latestQuoteGet latestTradeGet minuteBarGet prevDailyBarinthashCode()latestQuote(StockV3Quote latestQuote) latestTrade(StockV3Trade latestTrade) minuteBar(StockV3Bar minuteBar) prevDailyBar(StockV3Bar prevDailyBar) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetDailyBar(StockV3Bar dailyBar) voidsetLatestQuote(StockV3Quote latestQuote) voidsetLatestTrade(StockV3Trade latestTrade) voidsetMinuteBar(StockV3Bar minuteBar) voidsetPrevDailyBar(StockV3Bar prevDailyBar) toJson()Convert an instance of StockV3Snapshot 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:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
StockV3Snapshot
public StockV3Snapshot()
-
-
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
-
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 StockV3Snapshot 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 StockV3Snapshot
-
fromJson
Create an instance of StockV3Snapshot given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of StockV3Snapshot
- Throws:
IOException- if the JSON string is invalid with respect to StockV3Snapshot
-
toJson
Convert an instance of StockV3Snapshot to an JSON string- Returns:
- JSON string
-