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.
etrd_get_url(etrade_url, access_tokens, etrade_cred)
The URL for the get request
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.
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.
content of the GET request
if (FALSE) {
etrd_get_url('https://api.etrade.com/v1/market/quote/SPY:2020:11:20:PUT:185.000000',
access_tokens, etrade_cred)
}