get_balance: Get cash balance for logged-in client

View source: R/wrappers.R

get_balanceR Documentation

Get cash balance for logged-in client

Description

Get cash balance for logged-in client

Usage

get_balance(token, live = FALSE)

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.

Value

numeric, cash balance


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