diff --git a/DESCRIPTION b/DESCRIPTION index 229e615..aa3560c 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: rib Title: An Implementation of 'Interactive Brokers' API -Version: 0.23.0 +Version: 0.23.1 Authors@R: person("Luca", "Billi", email = "noreply.section+dev@gmail.com", role = c("aut", "cre")) Description: Allows interaction with 'Interactive Brokers' 'Trader Workstation' . diff --git a/R/Decoder.R b/R/Decoder.R index 420974a..83f6a2c 100644 --- a/R/Decoder.R +++ b/R/Decoder.R @@ -398,6 +398,10 @@ Decoder <- R6Class("Decoder", if(ver >= MIN_SERVER_VER_INCLUDE_OVERNIGHT) order$includeOvernight <- imsg$pop() + if(ver >= MIN_SERVER_VER_CME_TAGGING_FIELDS_IN_OPEN_ORDER) + order[c("extOperator", + "manualOrderIndicator")] <- imsg$pop(2L) + private$validate("openOrder", orderId= order$orderId, contract= contract, order= order, diff --git a/R/constants.R b/R/constants.R index 37cff65..d8d8b35 100644 --- a/R/constants.R +++ b/R/constants.R @@ -23,7 +23,8 @@ MIN_SERVER_VER_INCLUDE_OVERNIGHT <- 189L MIN_SERVER_VER_UNDO_RFQ_FIELDS <- 190L MIN_SERVER_VER_PERM_ID_AS_LONG <- 191L MIN_SERVER_VER_CME_TAGGING_FIELDS <- 192L +MIN_SERVER_VER_CME_TAGGING_FIELDS_IN_OPEN_ORDER <- 193L MIN_CLIENT_VER <- 176L -MAX_CLIENT_VER <- MIN_SERVER_VER_CME_TAGGING_FIELDS +MAX_CLIENT_VER <- MIN_SERVER_VER_CME_TAGGING_FIELDS_IN_OPEN_ORDER