softwarespartan / IB4m

Interactive Brokers API for Matlab
GNU General Public License v2.0
62 stars 21 forks source link

Getting results from scannerParameters #48

Open musabbari opened 5 years ago

musabbari commented 5 years ago

I am trying to get market scanner data with a gap filter. Since I can not find a way to set the gap up/down limit via the TWS API, I was thinking of getting the scanner parameters and see what I can do with that. I can not figure out how to invoke the reqScannerParameters() function in the scannerParameters EWrapper (https://interactivebrokers.github.io/tws-api/interfaceIBApi_1_1EWrapper.html#a24890ab0ae2ed757f93b505e5b05dacc) I added the scannerParameters to the Events.m and processNotification.m files, but I can't seem to get any response from the api. Any insight on how to view the return from the reqScannerParameters() function or to set a gap up or down filter in the market subscription would be highly appreciated.

softwarespartan commented 5 years ago

Great work! Thanks for reaching out.

The missing piece is to update the handler.java which is what receives the data from TWS under the hood. Adding the call back is not hard but recompiling the jar file is a bit tedious. I’ll try to add and push this week

Sent from my iPhone

On Feb 10, 2019, at 2:42 PM, musabbari notifications@github.com wrote:

I am trying to get market scanner data with a gap filter. Since I can not find a way to set the gap up/down limit via the TWS API, I was thinking of getting the scanner parameters and see what I can do with that. I can not figure out how to invoke the reqScannerParameters() function in the scannerParameters EWrapper (https://interactivebrokers.github.io/tws-api/interfaceIBApi_1_1EWrapper.html#a24890ab0ae2ed757f93b505e5b05dacc) I added the scannerParameters to the Events.m and processNotification.m files, but I can't seem to get any response from the api. Any insight on how to view the return from the reqScannerParameters() function or to set a gap up or down filter in the market subscription would be highly appreciated.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

musabbari commented 4 years ago

Thanks for getting back. I was wondering if you were able to recompile the jar file?