Learn R Programming

tcsinvest (version 0.1.1)

getETFs: Download ETF data

Description

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

Usage

getETFs(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)

Value

returns an data.table object containing the list of available ETFs.

Details

As described by the official Tinkoff Investments documentation

See Also

getCurrencies getBonds getStocks

Examples

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

Run the code above in your browser using DataLab