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

New feature request: set custom number of multi thread to download data #2294

Open
rajanpanchal opened this issue Feb 19, 2025 · 1 comment

Comments

@rajanpanchal
Copy link

Describe bug

I am using lambda function on AWS and there is a limit on how many threads one can run thru lambda. The only setting I found is thread= [true,false]. It would be great if we can pass custom number of threads in the download function.

Simple code that reproduces your problem

download(period='1mo', interval='1d', start=None, end=None, prepost=False, actions=True, auto_adjust=True, repair=False, proxy=None, threads=True, group_by='column', progress=True, timeout=10, **kwargs)

Debug log

None

Bad data proof

No response

yfinance version

0.52

Python version

3.13

Operating system

Aww lmabda

@ValueRaider
Copy link
Collaborator

What scenario isn't covered by this:

threads = min([len(tickers), _multitasking.cpu_count() * 2])

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