Learn R Programming

tcsinvest (version 0.1.1)

getOperations: Download all operations in account

Description

Makes a request to the server, and returns a list object with information about all operation related with your account if successful.

Usage

getOperations(
  token = "",
  live = FALSE,
  from = Sys.Date() - 5,
  to = Sys.Date(),
  verbose = FALSE
)

Arguments

token

token from Tinkoff account

live

live trading - TRUE or sandbox (paper) trading - FALSE (default)

from

from what date download history

to

to what date download history

verbose

display status of retrieval (default FALSE)

Value

returns an data.table object containing the information about all operations in account.

Details

As described by the official Tinkoff Investments documentation

See Also

getOrders getTrades

Examples

Run this code
# NOT RUN {
live = FALSE
token = 'your_sandbox_token_from_tcs_account'
getOperations(token,live)
# }

Run the code above in your browser using DataLab