etrd_get_url: Get request for a specific URL

View source: R/utils.R

etrd_get_urlR Documentation

Get request for a specific URL

Description

Some functions may return a URL (for example etrd_option_chain) that requires a further GET request. This function can return the contents. The access token and etrade credentials must be explicitly passed.

Usage

etrd_get_url(etrade_url, access_tokens, etrade_cred)

Arguments

etrade_url

The URL for the get request

access_tokens

Access tokens are created using etrd_auth_access_token. This entry is not required because the output is saved and retrieved from R options automatically.

etrade_cred

The output created from etrd_auth_credentials when a valid ETRADE key and secret have been passed. This entry is not required because the output is saved and retrieved from R options automatically.

Value

content of the GET request

Examples

## Not run: 

etrd_get_url('https://api.etrade.com/v1/market/quote/SPY:2020:11:20:PUT:185.000000',
             access_tokens, etrade_cred)


## End(Not run)

etrader documentation built on Jan. 6, 2023, 1:25 a.m.