getServerData: Retrieves data from the SMIF server

Description Usage Arguments Value

Description

Retrieves data from the SMIF server

Loads/reloads the data from the SMIF server

Checks overall connection to internet (Google and Yahoo), returns FALSE if connection cannot be made to site, returns TRUE if

Usage

1
2
3
4
5
getServerData(what, adv = F, adj = T, ...)

loadServerData(...)

clearServerData()

Arguments

what

Character; string indicating what to retrieve. Valid entries include 'holdings', 'cash balance'.

adv

Logical; should full, unaltered data be returned. Defaults to FALSE

adj

Logical; should price data be estimated/adjusted to present value (for what="balance" only). Defaults to TRUE

...

additional parameters

site.name

Character; name of the site to check

Value

Data.frame; current holdings for the SMIF (if what=="holdings") xts; cash balance history of the SMIF (if what=="cash")

Logical; can site (or internet) be connected to Clears the server data stored by replacing the environment


alec25/smif.package documentation built on May 22, 2019, 12:36 p.m.