Class StockBar
java.lang.Object
markets.alpaca.client.openapi.data.model.StockBar
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class StockBar
extends Object
implements Serializable
OHLC aggregate of all the trades in a given interval.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic StockBarCreate an instance of StockBar given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getC()Closing price.getH()High price.getL()Low price.getN()Trade count in the bar.getO()Opening price.getT()Timestamp in RFC-3339 format with nanosecond precision.getV()Bar volume.getVw()Volume weighted average price.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidvoidvoidvoidvoidvoidvoidvoidt(OffsetDateTime t) toJson()Convert an instance of StockBar 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_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
-
StockBar
public StockBar()
-
-
Method Details
-
c
-
getC
Closing price.- Returns:
- c
-
setC
-
h
-
getH
High price.- Returns:
- h
-
setH
-
l
-
getL
Low price.- Returns:
- l
-
setL
-
n
-
getN
Trade count in the bar.- Returns:
- n
-
setN
-
o
-
getO
Opening price.- Returns:
- o
-
setO
-
t
-
getT
Timestamp in RFC-3339 format with nanosecond precision.- Returns:
- t
-
setT
-
v
-
getV
Bar volume.- Returns:
- v
-
setV
-
vw
-
getVw
Volume weighted average price.- 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 StockBar 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 StockBar
-
fromJson
Create an instance of StockBar given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of StockBar
- Throws:
IOException- if the JSON string is invalid with respect to StockBar
-
toJson
Convert an instance of StockBar to an JSON string- Returns:
- JSON string
-