In python an object exposes an event but I can't get at it in PyCall

It looks like PyCall is converting this to a Julia Array, but you want to leave it as a raw Python object. You can suppress the conversion with:

stock_bars = pycall(ib.reqRealTimeBars, PyObject, stock_contract, 5, "TRADES", "False")

which specifies that the return type is PyObject. See also the pycall docs

1 Like