OOP with conn.on

Hi,

I have a python script that calls conn.run(“trade_updates”). I also have the following async function to receive the trade updates…

@conn.on(r’^trade_updates$’)
async def on_msg(conn, channel, positions_data):

However, inside the async function I need to access an attribute (using the word self), so I need a function like this…

@conn.on(r’^trade_updates$’)
async def on_msg(self, conn, channel, positions_data):

However, when I run the function above, I get the error message: missing 1 required positional argument. Do you know how I can fix this?

Short Version: How do I pass self into the following function without causing an argument error?

@conn.on(r’^trade_updates$’)
async def on_msg(SELF, conn, channel, positions_data):

I really appreciate any help you can provide!