Skip to contents

This function will use the json api to retrieve live prices from Yahoo finance.

Usage

yf_live_prices(ticker)

Arguments

ticker

a single ticker symbol

Value

a tibble with live prices

Examples

yfR::yf_live_prices("PETR4.SA")
#> # A tibble: 1 × 5
#>   ticker   time_stamp          price last_price daily_change
#>   <chr>    <dttm>              <dbl>      <dbl>        <dbl>
#> 1 PETR4.SA 2025-02-12 16:35:05  36.4       36.8      -0.0130