Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Using multi thread to stream OneSymbol in each thread or using one thread to stream many symbols #411

Open
naserkaka opened this issue Jan 16, 2022 · 0 comments

Comments

@naserkaka
Copy link

Hi , I just need some tips about best practice. I would like to

  1. stream many different symbols with socket
  2. create a task in the socket that checks if marketprice = myTargetPrice -> send Order to Binance else end task

Which approach is recommended?
Approach 1. Using Multi-thread , each thread for streaming each Symbol and rest of the logic
Approach 2. Using One single thread that streams all the symbols in one socket and rest of the logic ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant