getOperations: Download all operations in account

Description Usage Arguments Details Value Note Author(s) See Also Examples

View source: R/getOperations.R

Description

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

Usage

1
2
3
4
5
6
7
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)

Details

As described by the official Tinkoff Investments documentation

Value

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

Note

Not for the faint of heart. All profits and losses related are yours and yours alone. If you don't like it, write it yourself.

Author(s)

Vyacheslav Arbuzov

See Also

getOrders getTrades

Examples

1
2
3
live = FALSE
token = 'your_sandbox_token_from_tcs_account'
getOperations(token,live)

tcsinvest documentation built on Aug. 17, 2021, 9:08 a.m.