Spaces:
Sleeping
Sleeping
import gradio as gr | |
from interfaces import ( | |
portfolio_interface, | |
compare_interface, | |
cost_averaging_interface, | |
retirement_planning_interface | |
) | |
with gr.Blocks(css='style.css') as demo: | |
with gr.Column(elem_id="col-container"): | |
with gr.Tabs(): | |
with gr.TabItem("π About"): | |
gr.Markdown(""" | |
## About This Tool | |
This tool provides comprehensive financial analysis and portfolio management interfaces. It helps users to track stock performances, analyze retirement plans, and rebalance their portfolios based on real-time market data. | |
## How to Use | |
- **Portfolio**: Enter your current holdings Format: `[ Ticker Currency Quantity Weight, ... ]`, cash amount, and desired cash ratio to get insights on how to rebalance your portfolio. | |
- **Compare**: Compare historical stock prices for a given set of stocks over a specified period. | |
- **Cost Averaging**: Calculate the average cost of shares after a new purchase and see how it affects your potential return. | |
- **Retirement Planning**: Plan your retirement savings based on your current age, investment, and expected returns. | |
## Disclaimer | |
The information provided by this tool is for general informational purposes only. All information on the site is provided in good faith, however, we make no representation or warranty of any kind, express or implied, regarding the accuracy, adequacy, validity, reliability, availability, or completeness of any information on the site. Your use of the site and your reliance on any information on the site is solely at your own risk. | |
## Support Us | |
If you find this tool useful and would like to support the development of such projects, please consider making a donation. Your support is greatly appreciated. | |
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=M8SBRC396DPBW) | |
Or, if you prefer, you can also support us through Toss at: | |
<a href="https://toss.me/eichijei" target="_blank"> | |
<img src="https://static.toss.im/logos/png/1x/logo-toss.png" alt="Donate with Toss" style="width: 150px;"> | |
</a> | |
""") | |
with gr.TabItem("Portfolio"): | |
portfolio_interface.render() | |
with gr.TabItem("Compare"): | |
compare_interface.render() | |
with gr.TabItem("Cost Averaging"): | |
cost_averaging_interface.render() | |
with gr.TabItem("Retirement Planning"): | |
retirement_planning_interface.render() | |
demo.launch(share=True) | |