getBalance: Download balance of account

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

View source: R/getBalance.R

Description

Makes a request to the server, and returns an data.table object with information about available balance if successful.

Usage

1
getBalance(token = "", live = FALSE, verbose = FALSE)

Arguments

token

token from Tinkoff account

live

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

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 balance of 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

getAccounts getPortfolio

Examples

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

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