RealtimeBulkQuoteResponse

Snapshots for the tickers a bulk quote request asked about, or the message Alpha Vantage returned in place of them.

The results are a flat List rather than a map keyed by ticker, and nothing guarantees it holds one entry per ticker requested or holds them in the order they were added. A ticker the API has no data for simply contributes no entry, so a request for five tickers can answer with four snapshots and no indication of which one is missing. Match on getSymbol rather than by position, and treat a ticker absent from the list as unquoted.

A response carries results or an error, never both. On success getErrorMessage is null and getData holds the snapshots; on failure the message is set and the list is empty rather than null.

Author

Sylvester Sefa-Yeboah

Since

1.8.0

Types

Link copied to clipboard
Turns a decoded REALTIME_BULK_QUOTES payload into a RealtimeBulkQuoteResponse.

Properties

Link copied to clipboard
public final List<RealtimeBulkQuote> data
Link copied to clipboard
public final String errorMessage

Functions

Link copied to clipboard
Gets the snapshots the API returned, each naming its own ticker in getSymbol.
Link copied to clipboard
Gets the reason no snapshots were returned, as reported by the API.
Link copied to clipboard
public static RealtimeBulkQuoteResponse of(Map<String, Object> objectMap)
Builds a response from a decoded REALTIME_BULK_QUOTES payload.
Link copied to clipboard
public String toString()