req_add_auth {yfinancer}R Documentation

Get Yahoo Finance authentication (crumb)

Description

Tries multiple methods to get a crumb:

  1. Check YFINANCE_CRUMB and YFINANCE_A1 environment variables

  2. If environment variables not available, get auth from ~/.yfinance/auth file

Usage

req_add_auth(req, proxy = NULL, refresh = FALSE, path = NULL)

Arguments

req

Request object

proxy

Optional proxy settings

refresh

Logical. If TRUE, force a refresh of the crumb.

path

Path to authentication file. Default is ~/.yfinance/auth

Value

Request object with added authentication


[Package yfinancer version 0.1.3 Index]