get_optionspace: Get option space for a given root id

View source: R/wrappers.R

get_optionspaceR Documentation

Get option space for a given root id

Description

Returns the $SpecificOptions element of the $OptionSpace element of the response object from a call to contractoptionspaces endpoint.

Usage

get_optionspace(token, live = FALSE, client_key, option_root_id)

Arguments

token

either a character or a token2.0 reference class (RC) object as returned by httr::oauth2.0_token(). Sim environment uses character, (a '24 hour token'); live environment a token object.

live

boolean, TRUE for live environment, i.e. real money. Defaults to FALSE, i.e. simulation environment.

client_key

character

option_root_id

numeric, id of the required option root

Details

See the Open API Documentation

Value

tibble


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