Match

public class Match

One instrument matched by a SYMBOL_SEARCH keyword, together with the trading-venue details and the relevance score that decided its rank.

Alpha Vantage returns every field of a match as a string, and this class keeps them that way — nothing here is parsed into a number or a time. Callers that need getMatchScore or getMarketOpen as a typed value convert it themselves.

Author

Sylvester Sefa-Yeboah

Since

1.8.0

Constructors

Link copied to clipboard
public void Match()

Properties

Link copied to clipboard
@Json(name = "8. currency")
public String currency
Link copied to clipboard
@Json(name = "6. marketClose")
public String marketClose
Link copied to clipboard
@Json(name = "5. marketOpen")
public String marketOpen
Link copied to clipboard
@Json(name = "9. matchScore")
public String matchScore
Link copied to clipboard
@Json(name = "2. name")
public String name
Link copied to clipboard
@Json(name = "4. region")
public String region
Link copied to clipboard
@Json(name = "1. symbol")
public String symbol
Link copied to clipboard
@Json(name = "7. timezone")
public String timezone
Link copied to clipboard
@Json(name = "3. type")
public String type

Functions

Link copied to clipboard
Gets the currency the instrument trades in, as a three-letter code such as GBP.
Link copied to clipboard
Gets the time the listing venue closes, as HH:mm in the timezone reported by getTimezone.
Link copied to clipboard
Gets the time the listing venue opens, as HH:mm in the timezone reported by getTimezone.
Link copied to clipboard
Gets how closely this instrument matched the searched keywords.
Link copied to clipboard
public String getName()
Gets the full name of the instrument, as in Tesco PLC.
Link copied to clipboard
public String getRegion()
Gets the market the instrument is listed on, named as a place rather than an exchange code, as in United States or United Kingdom.
Link copied to clipboard
public String getSymbol()
Gets the ticker symbol to pass to the other endpoints when requesting data for this instrument.
Link copied to clipboard
Gets the timezone the opening and closing times are expressed in, as a UTC offset such as UTC-04 rather than a region name.
Link copied to clipboard
public String getType()
Gets the kind of instrument this is, such as Equity, ETF or Mutual Fund.
Link copied to clipboard
public String toString()