-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatibility with Julia version / enhancements #8
Comments
Thanks for the feedback.
In any case, it's hard to be more specific without minimal working examples that reproduce the issues. Regarding the enhancements:
|
Thanks for quick response! Details on the system:
Working example script for issues 1 and 2:
|
Looks like you are using JuliaPro, with which I'm not familiar and I'll have to investigate farther. Maybe you could try plain Julia in a terminal and see if it behaves the same way. Also, in the meantime, you could try something like this: using Jib
# disable show()
function Base.show(io::IO, ::Union{Jib.Contract,Jib.ContractDetails,Jib.Order,Jib.OrderState,Jib.ScannerSubscription})
end
ib = Jib.connect(7497, 1);
data, wrap = Jib.simple_wrap();
# with this, you shouldn't use Jib.check_all() at all
Jib.start_reader(ib, wrap);
contract = Jib.Contract(symbol="MSFT",
secType="STK",
exchange="SMART",
currency="USD");
# send requests
Jib.reqFundamentalData(ib, 1, contract, "ReportsFinStatements")
Jib.reqContractDetails(ib, 2, contract)
# check results
data[:cd]
data[:fundamental] |
Thanks for your suggestion and provided workaround.
|
I checked and it seems that on Windows |
Thank you! I will close this thread for now as you've addressed all of my questions. 👍 |
What is the supported Julia version that is tested for the package?
I'm using Julia Version 1.4.2 and notices several issues, such as:
*) check_all function is blocking execution (I suppose not working properly?). It looks that the connection status is always open (=3) and the connection has 0 bytes available, even though there are messages that can be processed separately with check_msg function.
*) Base.show function goes in the loop when presenting data, the information from the type is repeatedly displayed after any other command is executed. Very annoying.
Regarding possible enhancements:
would be good if another time zone can be added.
elseif tz == "EET"
tz"Europe/Riga"
Would be helpful to add another attribute for Contract definition - "primaryExchange"
Would be great to have a function that returns the relevant response for the specific response
The text was updated successfully, but these errors were encountered: