FinancialData

AlphaVantage gives access to time series data various types of equities, including stocks, currency, and cryptocurrency. The intraday data is derived from the Securities Information Processor (SIP) market-aggregated data. Terms of service.

RPCS

FinancialData.convertCurrency(fromSymbol: String, amount: Integer, toSymbol: String)

Convert an amount of currency of type fromSymbol into the (current) equivalent amount of currency of type toSymbol. To find currency symbol names, you can use AlphaVantage.currencySymbolSearch().

Arguments:

  • fromSymbol: String (String) - Currency type to convert from.

  • amount: Integer (Integer) - Amount of currency to convert.

  • toSymbol: String (String) - Currency type to convert to.

Returns: Number (Number) - The converted amount of currency.

FinancialData.currencySymbolSearch(search: BoundedString<2>)

Search for a type of currency by name.

Arguments:

  • search: BoundedString<2> (BoundedString) - String to search for matches.

Returns: List<Tuple<String, String>> (List | Tuple | String) - List of search results, which are pairs of name and symbol.

FinancialData.equitiesSymbolSearch(search: BoundedString<2>)

Search for a type of equity (stock) by name.

Arguments:

  • search: BoundedString<2> (BoundedString) - String to search for matches.

Returns: List<Tuple<String, String>> (List | Tuple | String) - List of search results, which are pairs of name and symbol.

FinancialData.getCryptoData(symbol: String, interval: TimePeriod, attributes: EquityField?, dateFormat: DateFormat?, startDate: Date?, endDate: Date?)

Get time series data about the value of cryptocurrencies (digital currencies) in USD. To convert currency values, you can use AlphaVantage.convertCurrency().

Arguments:

  • symbol: String (String) - The cryptocurrency symbol name.

  • interval: TimePeriod (TimePeriod) - The interval of time series data to return.

  • attributes: EquityField? (EquityField) - A specific attribute/field of data to return for each entry, or all to return all entries (default: all).

  • dateFormat: DateFormat? (DateFormat) - The date format to return for each entry (default: traditional).

  • startDate: Date? (Date) - The first date of results to include (defaults to no cutoff).

  • endDate: Date? (Date) - The last date of results to include (defaults to no cutoff).

Returns: List<Tuple<Any, Any>> (List | Tuple | Any) - Array of time series results, which are pairs of time and data.

FinancialData.getEquityData(symbol: String, interval: TimePeriod, attributes: EquityField?, dateFormat: DateFormat?, startDate: Date?, endDate: Date?)

Get time series data about the value of publicly traded equities (stocks). To find equity symbol names, you can use AlphaVantage.equitiesSymbolSearch().

Arguments:

  • symbol: String (String) - The equity symbol name.

  • interval: TimePeriod (TimePeriod) - The interval of time series data to return.

  • attributes: EquityField? (EquityField) - A specific attribute/field of data to return for each entry, or all to return all entries (default: all).

  • dateFormat: DateFormat? (DateFormat) - The date format to return for each entry (default: traditional).

  • startDate: Date? (Date) - The first date of results to include (defaults to no cutoff).

  • endDate: Date? (Date) - The last date of results to include (defaults to no cutoff).

Returns: List<Tuple<Any, Any>> (List | Tuple | Any) - Array of time series results, which are pairs of time and data.

FinancialData.getExchangeData(fromSymbol: String, toSymbol: String, interval: TimePeriod, attributes: EquityField?, dateFormat: DateFormat?, startDate: Date?, endDate: Date?)

Get time series data from the foreign exchange about the conversion rate between two types of currency. To find currency symbol names, you can use AlphaVantage.currencySymbolSearch().

Arguments:

  • fromSymbol: String (String) - The cryptocurrency symbol to convert from.

  • toSymbol: String (String) - The cryptocurrency symbol to convert to.

  • interval: TimePeriod (TimePeriod) - The interval of time series data to return.

  • attributes: EquityField? (EquityField) - A specific attribute/field of data to return for each entry, or all to return all entries (default: all).

  • dateFormat: DateFormat? (DateFormat) - The date format to return for each entry (default: traditional).

  • startDate: Date? (Date) - The first date of results to include (defaults to no cutoff).

  • endDate: Date? (Date) - The last date of results to include (defaults to no cutoff).

Returns: List<Tuple<Any, Any>> (List | Tuple | Any) - Array of time series results, which are pairs of time and data.