Does ib-api work with the latest version of IB Gateway? #26
-
Currently IB Gateway is Version 10.19.1f . Does ib-ruby work with it? If not, what is the latest version that works? |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 3 replies
-
Hi, Adaption of ib-api to V10x is on the way. On the "Ver 10" Branch there is an Issue on submitting orders left. |
Beta Was this translation helpful? Give feedback.
-
@topofocus - Thanks for all you work on these gems. I tried ver_10 branch 57ef882 andIB Gateway 10.15. Here is the error:
I get the
Do I need to change something? Thank you! |
Beta Was this translation helpful? Give feedback.
-
Will look to this. Can you please try the eod method first? require 'ib-api'
require 'ib-extensions' # or ib-gateway
IB::Stock.new( symbol: 'GE' ).
eod( start: Date.new(2015,6,15), to: Date.new(2015,6,21) ).
map( &:close ).
join( " : " ) This works as expected in 10.12. expected Result: "209.49 : 209.33 : 209.95 : 209.41" btw: do not specify 'id' if you expect a request-id as return value. |
Beta Was this translation helpful? Give feedback.
-
I got
|
Beta Was this translation helpful? Give feedback.
-
Please include
in your gemfile and 'require "ib-api" alternatively you can clone ib-extensions and use the inlcuded bin/console / bin/gateway to try the eod-method. It returns the results and stores them for convenience in contract.bars. its documentated: https://ib-ruby.github.io/ib-doc/Historical_data.html According to my test, using the stable-tws/gateway release 10.12, it works perfectly, either with ib-api- gem and the current 'v10' branch of ib-api. |
Beta Was this translation helpful? Give feedback.
-
Hi, Sorry for the late response. I created a new project and set up the test script again.
I was not able to require 'ib-extensions'. It raised an error. So, is there a better way to test the ib-api functionality? Which version of Ruby are you using? I am using 3.1.2. Which version of IB Gateway are you using? Thank you once again for the awesome gems!!! |
Beta Was this translation helpful? Give feedback.
-
Hi, Thanks for the quick response. I think I am using the latest versions.
Using the latest releases (by removing the Not sure what I am missing... |
Beta Was this translation helpful? Give feedback.
-
While doing other testing, I found that the latest versions of the gems works with IB Gateway 10.15.
So looks like things are sorted for now. |
Beta Was this translation helpful? Give feedback.
-
thats puzzling. just created a new branch I added a check of a proper class of the duration. |
Beta Was this translation helpful? Give feedback.
-
I was not using TWS, only IB Gateway 981. OK, I ran with
This does not seem to be using the new branch. This error line appears to be 158 of the main or release branch.
There is some issue with requiring 'ib-extensions'.
But not sure what would cause that...maybe something in the Gemspec? |
Beta Was this translation helpful? Give feedback.
Hi,
personally, I am using IB-gateway with TWS 985 and TWS 10.12.
New TWS-Versions mostly do not add much new functions neither change existing ones.
The main issue in V10x is the support of crypto-trading.
Adaption of ib-api to V10x is on the way. On the "Ver 10" Branch there is an Issue on submitting orders left.