Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Threads - get_candles in one thread, and buy operation in another (solved) #333

Open
emilioPonceAlvarado16 opened this issue Jul 1, 2022 · 2 comments

Comments

@emilioPonceAlvarado16
Copy link

My strategy download the data from different symbols (in sequential) with get_candles and send it as a parameter of a new thread for every symbol, once there, many of the threads are downloading data until they find a good position to buy,

So the problem is when in thread 1 is downloading data, and thread 2 is doing a buy operation, the buy operation duplicates in both symbols, so there is a problem there.
Can anyone help me? I am planning to use multiprocessing.

@TheHolsback
Copy link

It just works with multiprocessing

@emilioPonceAlvarado16 emilioPonceAlvarado16 changed the title Using Threads - get_candles in one thread, and buy operation in another (Problem) Using Threads - get_candles in one thread, and buy operation in another (solved) Jul 1, 2022
@emilioPonceAlvarado16
Copy link
Author

emilioPonceAlvarado16 commented Jul 1, 2022

Thanks ! 💯

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

No branches or pull requests

2 participants