Parallelly download data and trading.

How do I parallelly download data with websocket and run my trading python code?

1