Open alkhemist00 opened 5 years ago
Thanks for reaching out!
Yes, some of the examples still need updated for +9.72 API changes.
No issues to use latest docs from IB here:
http://interactivebrokers.github.io/tws-api/
Sent from my iPhone
On Jan 3, 2019, at 7:47 PM, alkhemist00 notifications@github.com wrote:
Hello Abel,
Platform: macOS v10.4.1 Matlab: r2018a TWS: Build 974g, Dec 18, 2018
I followed the getting started steps and was able to run the AccountSummaryExample. Here is the output:
added interface method: TWSNotification notification listener has been added -1 2104 Market data farm connection is OK:usfarm.nj -1 2104 Market data farm connection is OK:usfuture -1 2104 Market data farm connection is OK:cashfarm -1 2104 Market data farm connection is OK:usfarm -1 2106 HMDS data farm connection is OK:euhmds -1 2106 HMDS data farm connection is OK:fundfarm -1 2106 HMDS data farm connection is OK:njhmds -1 2106 HMDS data farm connection is OK:ushmds
When I attempt to run any other examples I get no public methods / fields errors: For example running MarketDataExample, I receive the following errors:
No public field m_exchange exists for class com.ib.client.Contract.
Error in MarketDataExample (line 82) contract.m_exchange = 'ARCA'; contract.m_primaryExch = 'ARCA';
I also tried doing some basic things like:
order = com.ib.client.Order()
order =
com.ib.client.Order@0
fields(order)
ans =
13×1 cell array
{'CUSTOMER' } {'FIRM' } {'OPT_UNKNOWN' } {'OPT_BROKER_DEALER' } {'OPT_CUSTOMER' } {'OPT_FIRM' } {'OPT_ISEMM' } {'OPT_FARMM' } {'OPT_SPECIALIST' } {'AUCTION_MATCH' } {'AUCTION_IMPROVEMENT'} {'AUCTION_TRANSPARENT'} {'EMPTY_STR' } order.m_action='BUY' No public field m_action exists for class com.ib.client.Order.
Similarly:
contract = com.ib.client.Contract()
contract =
conid 0 strike 0.0
contract.m_symbol = 'IBKR'; No public field m_symbol exists for class com.ib.client.Contract.
I am not very familiar with java and think that I am missing something very basic here.
Hope you can point me in the right direction.
Thanks in advance!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
Hi, I confess first that I haven't read through your question. But have you tried using the methodsview
function in Matlab to find the java function you need?
Hello Abel,
Platform: macOS v10.4.1 Matlab: r2018a TWS: Build 974g, Dec 18, 2018
I followed the getting started steps and was able to run the AccountSummaryExample. Here is the output:
added interface method: TWSNotification notification listener has been added -1 2104 Market data farm connection is OK:usfarm.nj -1 2104 Market data farm connection is OK:usfuture -1 2104 Market data farm connection is OK:cashfarm -1 2104 Market data farm connection is OK:usfarm -1 2106 HMDS data farm connection is OK:euhmds -1 2106 HMDS data farm connection is OK:fundfarm -1 2106 HMDS data farm connection is OK:njhmds -1 2106 HMDS data farm connection is OK:ushmds
When I attempt to run any other examples I get no public methods / fields errors: For example running MarketDataExample, I receive the following errors:
No public field m_exchange exists for class com.ib.client.Contract.
Error in MarketDataExample (line 82) contract.m_exchange = 'ARCA'; contract.m_primaryExch = 'ARCA';
I also tried doing some basic things like:
order =
com.ib.client.Order@0
ans =
13×1 cell array
Similarly:
contract =
conid 0 strike 0.0
I am not very familiar with java and think that I am missing something very basic here.
Hope you can point me in the right direction.
Thanks in advance!