Class StockRetrieveCurrentPriceResponse.Builder
-
- All Implemented Interfaces:
public final class StockRetrieveCurrentPriceResponse.BuilderA builder for StockRetrieveCurrentPriceResponse.
-
-
Method Summary
-
-
Method Detail
-
price
final StockRetrieveCurrentPriceResponse.Builder price(Double price)
The ask price.
-
price
final StockRetrieveCurrentPriceResponse.Builder price(JsonField<Double> price)
Sets Builder.price to an arbitrary JSON value.
You should usually call Builder.price with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
stockId
final StockRetrieveCurrentPriceResponse.Builder stockId(String stockId)
ID of the
Stock
-
stockId
final StockRetrieveCurrentPriceResponse.Builder stockId(JsonField<String> stockId)
Sets Builder.stockId to an arbitrary JSON value.
You should usually call Builder.stockId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
timestamp
final StockRetrieveCurrentPriceResponse.Builder timestamp(OffsetDateTime timestamp)
When the Stock Quote was generated.
-
timestamp
final StockRetrieveCurrentPriceResponse.Builder timestamp(JsonField<OffsetDateTime> timestamp)
Sets Builder.timestamp to an arbitrary JSON value.
You should usually call Builder.timestamp with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
change
final StockRetrieveCurrentPriceResponse.Builder change(Double change)
The change in price from the previous close.
-
change
final StockRetrieveCurrentPriceResponse.Builder change(JsonField<Double> change)
Sets Builder.change to an arbitrary JSON value.
You should usually call Builder.change with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
changePercent
final StockRetrieveCurrentPriceResponse.Builder changePercent(Double changePercent)
The percentage change in price from the previous close.
-
changePercent
final StockRetrieveCurrentPriceResponse.Builder changePercent(JsonField<Double> changePercent)
Sets Builder.changePercent to an arbitrary JSON value.
You should usually call Builder.changePercent with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
close
final StockRetrieveCurrentPriceResponse.Builder close(Double close)
The close price from the given time period.
-
close
final StockRetrieveCurrentPriceResponse.Builder close(JsonField<Double> close)
Sets Builder.close to an arbitrary JSON value.
You should usually call Builder.close with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
high
final StockRetrieveCurrentPriceResponse.Builder high(Double high)
The highest price from the given time period
-
high
final StockRetrieveCurrentPriceResponse.Builder high(JsonField<Double> high)
Sets Builder.high to an arbitrary JSON value.
You should usually call Builder.high with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
low
final StockRetrieveCurrentPriceResponse.Builder low(Double low)
The lowest price from the given time period.
-
low
final StockRetrieveCurrentPriceResponse.Builder low(JsonField<Double> low)
Sets Builder.low to an arbitrary JSON value.
You should usually call Builder.low with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
marketCap
final StockRetrieveCurrentPriceResponse.Builder marketCap(Long marketCap)
The most recent close price of the ticker multiplied by weighted outstanding shares.
-
marketCap
final StockRetrieveCurrentPriceResponse.Builder marketCap(JsonField<Long> marketCap)
Sets Builder.marketCap to an arbitrary JSON value.
You should usually call Builder.marketCap with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
open
final StockRetrieveCurrentPriceResponse.Builder open(Double open)
The open price from the given time period.
-
open
final StockRetrieveCurrentPriceResponse.Builder open(JsonField<Double> open)
Sets Builder.open to an arbitrary JSON value.
You should usually call Builder.open with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
previousClose
final StockRetrieveCurrentPriceResponse.Builder previousClose(Double previousClose)
The close price for the
Stockfrom the previous trading session.
-
previousClose
final StockRetrieveCurrentPriceResponse.Builder previousClose(JsonField<Double> previousClose)
Sets Builder.previousClose to an arbitrary JSON value.
You should usually call Builder.previousClose with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
volume
final StockRetrieveCurrentPriceResponse.Builder volume(Double volume)
The trading volume from the given time period.
-
volume
final StockRetrieveCurrentPriceResponse.Builder volume(JsonField<Double> volume)
Sets Builder.volume to an arbitrary JSON value.
You should usually call Builder.volume with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
weightedSharesOutstanding
final StockRetrieveCurrentPriceResponse.Builder weightedSharesOutstanding(Long weightedSharesOutstanding)
The number of shares outstanding in the given time period.
-
weightedSharesOutstanding
final StockRetrieveCurrentPriceResponse.Builder weightedSharesOutstanding(JsonField<Long> weightedSharesOutstanding)
Sets Builder.weightedSharesOutstanding to an arbitrary JSON value.
You should usually call Builder.weightedSharesOutstanding with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final StockRetrieveCurrentPriceResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final StockRetrieveCurrentPriceResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final StockRetrieveCurrentPriceResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final StockRetrieveCurrentPriceResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final StockRetrieveCurrentPriceResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final StockRetrieveCurrentPriceResponse build()
Returns an immutable instance of StockRetrieveCurrentPriceResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.price() .stockId() .timestamp()
-
-
-
-