RealtimeBulkQuote

public class RealtimeBulkQuote

One ticker's snapshot within a bulk quote answer.

It reports the same latest trading day as QuoteResponse does for a single ticker, and adds what that endpoint has no equivalent of: an extended-hours quote and the move it represents, covering the pre-market and after-hours sessions.

Every numeric field is a boxed type, which matters. Alpha Vantage does not pad its answer out to the tickers that were asked for, and a snapshot it has only partial data for comes back with the missing fields absent rather than zeroed — so any of these getters can return null, and the extended-hours three routinely do outside those sessions. Read them defensively rather than unboxing straight into a primitive.

Unlike the fields of the older response types, these are mapped by name from the payload's snake_case keys rather than read positionally out of a numbered map.

Author

Sylvester Sefa-Yeboah

Since

1.8.0

Constructors

Link copied to clipboard
public void RealtimeBulkQuote()

Properties

Link copied to clipboard
@Json(name = "change")
public Double change
Link copied to clipboard
@Json(name = "change_percent")
public Double changePercent
Link copied to clipboard
@Json(name = "close")
public Double close
Link copied to clipboard
@Json(name = "extended_hours_change")
public Double extendedHoursChange
Link copied to clipboard
@Json(name = "extended_hours_change_percent")
public Double extendedHoursChangePercent
Link copied to clipboard
@Json(name = "extended_hours_quote")
public Double extendedHoursQuote
Link copied to clipboard
@Json(name = "high")
public Double high
Link copied to clipboard
@Json(name = "low")
public Double low
Link copied to clipboard
@Json(name = "open")
public Double open
Link copied to clipboard
@Json(name = "previous_close")
public Double previousClose
Link copied to clipboard
@Json(name = "symbol")
public String symbol
Link copied to clipboard
@Json(name = "timestamp")
public String timestamp
Link copied to clipboard
@Json(name = "volume")
public Long volume

Functions

Link copied to clipboard
public Double getChange()
Gets how far getClose has moved from the previous close, signed so that a negative value is a fall.
Link copied to clipboard
Gets the same move as getChange expressed against the previous close, in percentage points rather than as a fraction: a value of 1.5 means the price rose 1.5%.
Link copied to clipboard
public Double getClose()
Gets the latest regular-session price.
Link copied to clipboard
Gets how far the extended-hours price has moved from the regular session's close, signed so that a negative value is a fall.
Link copied to clipboard
Gets the same move as getExtendedHoursChange expressed against the regular session's close, in percentage points rather than as a fraction.
Link copied to clipboard
Gets the latest price from the pre-market or after-hours session, which is what a ticker is trading at outside regular hours while getClose sits still.
Link copied to clipboard
public Double getHigh()
Gets the highest price reached during the latest trading day.
Link copied to clipboard
public Double getLow()
Gets the lowest price reached during the latest trading day.
Link copied to clipboard
public Double getOpen()
Gets the price at which the latest trading day opened.
Link copied to clipboard
Gets the price at which the trading day before the latest one closed.
Link copied to clipboard
public String getSymbol()
Gets the ticker this snapshot covers.
Link copied to clipboard
Gets the moment this snapshot was taken, which is the freshness of the quote rather than the day it covers.
Link copied to clipboard
public Long getVolume()
Gets how many shares changed hands over the latest trading day.
Link copied to clipboard
public String toString()