Skip to contents

Retrieves the list of currently trending securities for a specific region from Yahoo Finance.

Usage

get_trending(country = "US", count = 10)

Arguments

country

ISO 3166-1 alpha-2 region code (e.g., "US", "GB", "IN"). Defaults to "US".

count

Maximum number of trending securities to return. Defaults to 10.

Value

A character vector of trending ticker symbols. Returns invisible(NULL) on network failure or if no data is available (with a message).

See also

Examples

if (FALSE) { # \dontrun{
get_trending()
get_trending(country = "GB", count = 5)
} # }