getQuotes: Download current quotes for instrument

Description Usage Arguments Details Value Note Author(s) Examples

View source: R/getQuotes.R

Description

Makes a request to the server, and returns an data.table object with information about orderbook for selected instrument if successful.

Usage

1
getQuotes(token = "", live = FALSE, figi = "", verbose = FALSE)

Arguments

token

token from Tinkoff account

live

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

figi

internal tinkoff code for instrument

verbose

display status of retrieval (default FALSE)

Details

Information gets from orderbook function. Also gets list of availible status of instrument: break_in_trading, normal_trading, not_available_for_trading, closing_auction, closing_period, discrete_auction, opening_period, trading_at_closing_auction_price

Value

returns an data.table object containing the requested data with current quotes for instrument.

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

Examples

1
2
3
live = FALSE
token = 'your_sandbox_token_from_tcs_account'
getQuotes(token,live,figi = 'BBG005HLTYH9')

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