Quote Response
A single ticker's latest quote, or the message Alpha Vantage returned in place of one.
This is the answer to a com.crazzyghost.alphavantage.timeseries.request.QuoteRequest — one snapshot rather than a series, so it is a flat set of fields with no metadata header and no unit list. The prices describe the most recent trading day, which is not necessarily today: getLatestTradingDay says which day they belong to, and over a weekend or holiday it lags.
A response carries a quote or an error, never both. On failure getErrorMessage is set and every price is left at 0.0, which is indistinguishable from a genuine zero — so the error message is what tells the two apart.
For the same snapshot across many tickers in one call, see RealtimeBulkQuoteResponse.
Author
Sylvester Sefa-Yeboah
Since
1.3.0
Constructors
0.0 and the ticker and trading day left null.Types
GLOBAL_QUOTE payload into a QuoteResponse.Properties
Functions
1.5 means the price rose 1.5%.