cancelOrder: cancelOrder

Description Usage Arguments Details Value Note See Also Examples

View source: R/cancelOrder.R

Description

cancelOrder

Usage

1
cancelOrder(token = "", live = FALSE, orderId = "")

Arguments

token

token from tinkoff

live

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

orderId

id of order from getOrders

Details

As described by the official Tinkoff Investments documentation

Value

returns a list object containing the information about state of operation.

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.

See Also

getOrders

Examples

1
2
3
4
5
6
paper_token = 'your_sandbox_token_from_tcs_account'
cancelOrder(paper_token,'your_order_id')

live_token = 'your_live_token_from_tcs_account'
# remember that this command will close your order in live account !
cancelOrder(live_token,TRUE,'your_order_id')

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