getOrderBook: Download current OrderBook snapshot

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

View source: R/getOrderBook.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
2
3
4
5
6
7
getOrderBook(
  token = "",
  live = FALSE,
  figi = "",
  depth = NULL,
  verbose = FALSE
)

Arguments

token

token from Tinkoff account

live

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

figi

internal tinkoff code for instrument

depth

depth of orderbook, number of bids and asks (1 <= depth <= 20)

verbose

display status of retrieval (default FALSE)

Details

As described by the official Tinkoff Investments documentation

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

getHistoricalData

Examples

1
2
3
live = FALSE
token = 'your_sandbox_token_from_tcs_account'
getOrderBook(token,live,figi = 'BBG005HLTYH9',depth = 5)

arbuzovv/tcsinvest documentation built on Dec. 19, 2021, 4:36 a.m.