Replies: 2 comments
-
You can store in sql format |
Beta Was this translation helpful? Give feedback.
-
Hello @azriel46d! Instead of using the usual way to load the portfolio ( # Make sure to import PortfolioEngine from openbb_terminal/portfolio/portfolio_engine.py.
from openbb_terminal.portfolio.portfolio_engine import PortfolioEngine # This depends on where you have the code
risk_free_rate = 0
full_shares = False
benchmark_symbol = "SPY"
portfolio_engine = PortfolioEngine(transactions)
portfolio_engine.generate_portfolio_data()
portfolio_engine.set_risk_free_rate(risk_free_rate)
portfolio_engine.set_benchmark(symbol=benchmark_symbol, full_shares=full_shares)
p = portfolio_engine Make sure that the dataframe, I hope that this helps. Feel free to ask if you want a more detailed explanation, clarifications or just have other questions. |
Beta Was this translation helpful? Give feedback.
-
Hi , from what i have gathered so far , portfolios need to a file stored as an XLSX or a CSV. is it possible to build it dynamically and pass in the dataframe rather than having a file path?
Beta Was this translation helpful? Give feedback.
All reactions