I have a couple of questions. Any reference or code example (any language) would be very helpful. 1. Is there a property that tell us if a security is currently shortable (marked red in the tws "shortable" column) 2. Is there a way to detect programmatically if we are connected to a demo or paper trading tws or to a real trading tws port (independently of the user id) ? Thanks a lot in advance, T.