Class StockV3Bar
java.lang.Object
markets.alpaca.client.openapi.data.model.StockV3Bar
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.28.0")
public class StockV3Bar
extends Object
implements Serializable
OHLC aggregate of trades in an interval. 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. 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 TypeMethodDescriptionc(BigDecimal c) booleanstatic StockV3BarCreate an instance of StockV3Bar given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getC()Price of the last trade in the bar, in the native quotation currency.getH()Highest trade price in the bar, in the native quotation currency.getL()Lowest trade price in the bar, in the native quotation currency.getN()Number of trades in the bar.getO()Price of the first trade in the bar, in the native quotation currency.getT()Timestamp in RFC-3339 format with nanosecond precision.getV()Number of shares traded in the bar.getVw()Volume-weighted average price of the trades in the bar, in the native quotation currency.h(BigDecimal h) inthashCode()l(BigDecimal l) o(BigDecimal o) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetC(BigDecimal c) voidsetH(BigDecimal h) voidsetL(BigDecimal l) voidvoidsetO(BigDecimal o) voidvoidsetV(BigDecimal v) voidsetVw(BigDecimal vw) t(OffsetDateTime t) toJson()Convert an instance of StockV3Bar to an JSON stringtoString()v(BigDecimal v) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundvw(BigDecimal vw)
-
Field Details
-
SERIALIZED_NAME_C
- See Also:
-
SERIALIZED_NAME_H
- See Also:
-
SERIALIZED_NAME_L
- See Also:
-
SERIALIZED_NAME_N
- See Also:
-
SERIALIZED_NAME_O
- See Also:
-
SERIALIZED_NAME_T
- See Also:
-
SERIALIZED_NAME_V
- See Also:
-
SERIALIZED_NAME_VW
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
StockV3Bar
public StockV3Bar()
-
-
Method Details
-
c
-
getC
Price of the last trade in the bar, in the native quotation currency.- Returns:
- c
-
setC
-
h
-
getH
Highest trade price in the bar, in the native quotation currency.- Returns:
- h
-
setH
-
l
-
getL
Lowest trade price in the bar, in the native quotation currency.- Returns:
- l
-
setL
-
n
-
getN
Number of trades in the bar.- Returns:
- n
-
setN
-
o
-
getO
Price of the first trade in the bar, in the native quotation currency.- Returns:
- o
-
setO
-
t
-
getT
Timestamp in RFC-3339 format with nanosecond precision.- Returns:
- t
-
setT
-
v
-
getV
Number of shares traded in the bar.- Returns:
- v
-
setV
-
vw
-
getVw
Volume-weighted average price of the trades in the bar, in the native quotation currency.- Returns:
- vw
-
setVw
-
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 StockV3Bar 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 StockV3Bar
-
fromJson
Create an instance of StockV3Bar given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of StockV3Bar
- Throws:
IOException- if the JSON string is invalid with respect to StockV3Bar
-
toJson
Convert an instance of StockV3Bar to an JSON string- Returns:
- JSON string
-