Probably, it is not a good idea to run JAVA based TWS in RPi you mean.
However, it might be OK to run browser like Explorer 11, for IB trading.
HTML 5 is standard protocol over the world these days, so that ALL broker provides web-based trading over the world.