softwarespartan / IB4m

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

Request Shortable shares #138

Open achille1112 opened 2 years ago

achille1112 commented 2 years ago

Hi Abel, I have a problem when I request shortable shares for a stock. I use

genericTickList = '236'

in the method:

session.eClientSocket.reqMktData(reqId,contract,genericTickList,false,false,[])

but in the output I obtain only the level of difficulty with which the contract can be sold short while the following link:

https://www.interactivebrokers.com/en/index.php?f=5061

states that I should get it too the number of shortable shares.

My TWS API version is 9.76.01.

Why does this happen?

Thanks in advance. Domenico.

Despair2000 commented 2 years ago

I think the reason might be that IB4m is based on the 973 API but @softwarespartan probably knows better.

achille1112 commented 2 years ago

@Despair2000 thanks! Is there a "simple" way to update reqMktData method?

Best Regards Domenico

Despair2000 commented 2 years ago

I don't think so.

achille1112 commented 2 years ago

@Despair2000 thanks!

Best Regards Domenico