sjev / ibpy_old

Automatically exported from code.google.com/p/ibpy
Other
0 stars 0 forks source link

con.register not working as described #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm trying to register a callback:

def my_callback(msg):
    print msg

con = ibConnection()
con.register(my_callback, message.tickPrice)

This doesn't work. But it is used like that in the examples and the docstring 
of register seems to indicate that this should work.

Alternatives that work are:
- con.register(my_test, (message.tickSize,))
- con.register(my_test, message.registry['tickPrice'])

Original issue reported on code.google.com by fabian.u...@gmail.com on 1 May 2012 at 3:41