cancelOrder | R Documentation |
This function cancels an existing order on a specified broker or exchange platform
cancelOrder(
src = "",
api.key = "",
orderId = "",
clientId = "",
board = "",
live = TRUE,
verbose = TRUE
)
src |
character string, the name of the broker/exchange platform, e.g. "tinkoff", "finam", "alor" |
api.key |
character string, the API key required for authentication |
orderId |
character string, the ID of the order to be cancelled |
clientId |
character string, the ID of the client account |
board |
character string, the name of the exchange board, required for some platforms |
live |
logical, whether to execute the order in a live environment, default is TRUE |
verbose |
logical, whether to print the HTTP response message, default is TRUE |
character string, the response message from the HTTP request
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.
cancelOrder(src = 'Finam',api.key = 'finam_token',orderId = 'otderID',clientId = 'your cliend id')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.