I have installed the latest version of R and IBrokers on Ubuntu 22.04.
I get the error mentioned in the title when I try to get a price quote for EURUSD currency pair
Expected behavior
Return the price quote for EURUSD pair.
Minimal, reproducible example
my_connection <- IBrokers::twsConnect(clientId = 0, port = 7497) # connecting to the paper trading account
isConnected(my_connection) # returns TRUE
# The next line was taken directly from the help documentation. Symbol was set to "EUR"
fx_pair <- twsCurrency(symbol = "EUR",
currency='USD',
exch='IDEALPRO',
primary='',
strike='0.0',
right='',
local='',
multiplier='',
include_expired='0',
conId=0)
is.twsContract(fx_pair) # returns true
reqMktData(my_connection, new_pair) # returns "TWS Message: 2 1 10285 Your API version does not support fractional size rules. Please upgrade to a minimum version 163."
Session Info
R version 4.3.1 (2023-06-16)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 22.04.3 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.10.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.10.0
locale:
[1] LC_CTYPE=en_CA.UTF-8 LC_NUMERIC=C LC_TIME=en_CA.UTF-8 LC_COLLATE=en_CA.UTF-8
[5] LC_MONETARY=en_CA.UTF-8 LC_MESSAGES=en_CA.UTF-8 LC_PAPER=en_CA.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C
time zone: America/Toronto
tzcode source: system (glibc)
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] IBrokers_0.10-2 xts_0.13.1 zoo_1.8-12
loaded via a namespace (and not attached):
[1] lubridate_1.9.2 xfun_0.39 lattice_0.21-8 magrittr_2.0.3 glue_1.6.2 stringr_1.5.0 knitr_1.43
[8] timechange_0.2.0 generics_0.1.3 lifecycle_1.0.3 cli_3.6.1 grid_4.3.1 ISOweek_0.6-2 compiler_4.3.1
[15] highr_0.10 rstudioapi_0.15.0 tools_4.3.1 evaluate_0.21 rlang_1.1.1 stringi_1.7.12
Description
I have installed the latest version of R and IBrokers on Ubuntu 22.04. I get the error mentioned in the title when I try to get a price quote for EURUSD currency pair
Expected behavior
Return the price quote for EURUSD pair.
Minimal, reproducible example
Session Info