authorize_live: Authorize sherwood for live environment

View source: R/authorize.R

authorize_liveR Documentation

Authorize sherwood for live environment

Description

Wrapper around httr::oauth2.0_token(). Authorize sherwood app for live environment in Saxo Banks OpenAPI, ie. enables trading for real money.

Usage

authorize_live(cache = FALSE)

Arguments

cache

boolean, should the token be cached to file .httr.oauth? Defaults to FALSE

Details

The returned token object must be pased to subsequent API calls using the config parameter in e.g. httr::GET().

For more information about the oauth flow with httr see this example.

Value

A Token2.0 reference class (RC) object


lassehjorthmadsen/sherwood documentation built on Sept. 6, 2022, 3:47 p.m.