vectorbt icon indicating copy to clipboard operation
vectorbt copied to clipboard

portfolio['some_ticker'].stats() : call in parallel

Open wordjelly opened this issue 1 year ago • 1 comments

Hi,

Once the portfolio is created, I need to iterate each column/ticker and call .stats on it individually. This is really slow and takes ages if the number of tickers is large. Is there any way to optimize this, to get the .stats for all the columns in one operation? I read somewhere that we can use 'use_ray=True', but I have no clue where or how to use that in this context

wordjelly avatar Dec 18 '22 14:12 wordjelly

pf.stats(agg_func=None)

Free vectorbt doesn’t support parallelization.

polakowo avatar Dec 18 '22 17:12 polakowo

This issue is stale because it has been open for 90 days with no activity.

github-actions[bot] avatar Feb 23 '24 01:02 github-actions[bot]