FinSentim / PortfolioSim

MIT License
0 stars 0 forks source link

Portfolio Simulator

This project contains a tool for simulating the performance of a portfolio of stocks over a given time period. The tool uses historical data for the stocks and various strategies to make decisions about buying and selling the stocks.

Getting Started

Prerequisites

This project requires the following packages:

You can install these packages using pip:

pip install requests pandas

Running the simulation

To run the simulation, you will need to provide a list of the companies in the portfolio and a time period for the simulation. You will also need to choose one or more strategies for deciding when to buy or sell the stocks.

Example programs can be found under

portfolio_sim/examples

Available Strategies

The following strategies are available for use in the simulation:

Plotting Results

The simulation results can be plotted using either matplotlib or plotly. To use matplotlib, call the plot_results method with backend="matplotlib"