Open galoisgroupcn opened 6 years ago
Thanks for reaching out.
Notice that you have not followed (exactly) the install instructions from the readme.
As with all matlab scripts, you need to make sure that the file is on your path.
The java path is totally separate thing. Looks like you got the jar added to you java path.
Cheers -abel
Sent from my iPhone
On Sep 17, 2017, at 5:53 AM, galoisgroupcn notifications@github.com wrote:
Hi Abel,
I added all IB4m & IB4m/docs files to my matlab path, and I added TWS.jar to the (dynamic) java classpath. Please see the screenshots below.
Instead, after I type in 'AccountSummaryExample', an error message came out saying: Undefined function or variable 'AccountSummaryExample'. I do not know what's wrong with the programs. I am using Matlab R2015a.
— 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 Abel,
Thanks for your reply. Can your program acquire daily closing prices of option chains of an underlying product, e.g. VIX index's option chains? If so, would you like to add the way of doing it to your guide please?
Thank you,
Amber
Hi Amber
Dropbox is irrelevant. That's just the name of some folder where you have downloaded the toolbox.
Please refer to matlab "getting started" materials.
Best to understand how to manage code and toolboxes in matlab before trying to use IB4m
On Sep 17, 2017, at 10:10 AM, galoisgroupcn notifications@github.com wrote:
Hi Abel,
Thanks for your reply. Can your program acquire daily closing prices of option chains of an underlying product, e.g. VIX index's option chains? If so, would you like to add the way of doing it to your guide please?
Thank you,
Amber
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
There are many examples for pulling contract details and options/futures. Let me know if you're stuck on a particular detail
Sent from my iPhone
On Sep 17, 2017, at 10:10 AM, galoisgroupcn notifications@github.com wrote:
Hi Abel,
Thanks for your reply. Can your program acquire daily closing prices of option chains of an underlying product, e.g. VIX index's option chains? If so, would you like to add the way of doing it to your guide please?
Thank you,
Amber
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
Hi Abel,
Thanks for your reply. I followed the steps of this page:
http://softwarespartan.github.io/IB4m/docs/html/HistoricalDataExample.html
After I initialized session with Trader Workstation, I created an empty option contract
contract = com.tws.ContractFactory.GenericStockContract('VIX OPT');
then I want to request historical data of VIX option from IB/TWS. But after I type in
session.eClientSocket.reqHistoricalData(282937696,"VIX 170920C00010500","20170918","1 M","1 day","TRADES",1,1,false,null)
An error message came out:
Error: The input character is not valid in MATLAB statements or expressions.
So where were I wrong?
Best,
Amber
Hi Kam
Thanks for reaching out.
Looks like it’s just a path issue. Make sure you’ve added the IB4m folder to your path.
I’ve tested on 10.13.3 with Matlab 2017b and have not encountered any issues.
Thanks -abe
On Feb 1, 2018, at 12:50 PM, PeaceHub notifications@github.com wrote:
Hello Adel:
I have followed everything you noted and it works fine in Windows environment. When I went to install it on MAC (High Sierra, 10.13.3), I can put the path correctly. However, it gives the following error message when I ask for account summary.
AccountSummaryExample Undefined variable "TWS" or class "TWS.Session.getInstance".
Error in AccountSummaryExample (line 9) session = TWS.Session.getInstance();
My java is version 8, and here is what MATLAB says:
====================
version -java
ans =
'Java 1.8.0_121-b13 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode'
Please help me understand what I have done wrong on my MAC. All is working fine on my Windows 10.
Thank you very much.
Kam
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/softwarespartan/IB4m/issues/12#issuecomment-362347571, or mute the thread https://github.com/notifications/unsubscribe-auth/AEWq1IhiaBBab17hMBRIZ5XQuMVBQ3dtks5tQflvgaJpZM4PaGO0.
Thank you Adel.
It worked. I was under the assumption that the first command of path would take care of it. After inspecting it carefully, I realized I have to make the path as you noted.
Thanks again.
Kam.
On Sat, Feb 3, 2018 at 5:07 PM, Abel Brown notifications@github.com wrote:
Hi Kam
Thanks for reaching out.
Looks like it’s just a path issue. Make sure you’ve added the IB4m folder to your path.
I’ve tested on 10.13.3 with Matlab 2017b and have not encountered any issues.
Thanks -abe
Great!
Do not hesitate to reach out if you need anything additional.
Cheers -abel
On Feb 3, 2018, at 6:09 PM, PeaceHub notifications@github.com wrote:
Thank you Adel.
It worked. I was under the assumption that the first command of path would take care of it. After inspecting it carefully, I realized I have to make the path as you noted.
Thanks again.
Kam.
On Sat, Feb 3, 2018 at 5:07 PM, Abel Brown notifications@github.com wrote:
Hi Kam
Thanks for reaching out.
Looks like it’s just a path issue. Make sure you’ve added the IB4m folder to your path.
I’ve tested on 10.13.3 with Matlab 2017b and have not encountered any issues.
Thanks -abe
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/softwarespartan/IB4m/issues/12#issuecomment-362863648, or mute the thread https://github.com/notifications/unsubscribe-auth/AEWq1MtUXjwezpr_cG2xFd-TEuQ3Dwutks5tROczgaJpZM4PaGO0.
Hi Abel,
I added all IB4m & IB4m/docs files to my matlab path, and I added TWS.jar to the (dynamic) java classpath. Please see the screenshots below.
![1](https://user-images.githubusercontent.com/23414314/30519767-994952ac-9bd0-11e7-86ab-0201ab00567a.png)
Instead, after I type in 'AccountSummaryExample', an error message came out saying: Undefined function or variable 'AccountSummaryExample'. I do not know what's wrong with the programs. I am using Matlab R2015a.