Learn R Programming

tcsinvest (version 0.1.1)

cancelOrder: cancelOrder

Description

cancelOrder

Usage

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

Value

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

Details

As described by the official Tinkoff Investments documentation

See Also

getOrders

Examples

Run this code
# NOT RUN {
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')

# }

Run the code above in your browser using DataLab