Skip to content

Commit

Permalink
Update to API v193
Browse files Browse the repository at this point in the history
  • Loading branch information
lbilli committed Oct 8, 2024
1 parent beb3d12 commit 26b5ba6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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 = "[email protected]", role = c("aut", "cre"))
Description: Allows interaction with 'Interactive Brokers' 'Trader Workstation'
<https://interactivebrokers.github.io/tws-api/>.
Expand Down
4 changes: 4 additions & 0 deletions R/Decoder.R
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion R/constants.R
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 26b5ba6

Please sign in to comment.