Learn R Programming

rusquant (version 1.1.4)

cancelOrder: Cancel an order on a broker/exchange platform

Description

This function cancels an existing order on a specified broker or exchange platform

Usage

cancelOrder(
  src = "",
  api.key = "",
  orderId = "",
  clientId = "",
  board = "",
  live = TRUE,
  verbose = TRUE
)

Value

character string, the response message from the HTTP request

Arguments

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

Examples

Run this code
cancelOrder(src = 'Finam',api.key = 'finam_token',orderId = 'otderID',clientId = 'your cliend id')

Run the code above in your browser using DataLab