getOrders: Download all orders in account

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

View source: R/getOrders.R

Description

Makes a request to the server, and returns a data.table object with information about all live orders related with your account if successful.

Usage

1
2
3
4
5
6
7
8
9
getOrders(
  token = "",
  live = FALSE,
  only_live_orders = TRUE,
  raw_orders = FALSE,
  from = Sys.Date() - 5,
  to = Sys.Date(),
  time_transform = TRUE
)

Arguments

token

token from Tinkoff account

live

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

only_live_orders

select only live order or use history? (default TRUE)

raw_orders

get raw orders from server or use transformation? (default FALSE)

from

depth of trading history (from)

to

depth of trading history (to)

time_transform

trasform time from string to POSIXct

Details

As described by the official Tinkoff Investments documentation

Value

returns an data.table object containing the requested data with orders of current 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

getTrades cancelOrder

Examples

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

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