https://github.com/santoshlite/beibo
π€ Predict the stock market with AI η¨AIι’ζ΅θ‘η₯¨εΈεΊ
https://github.com/santoshlite/beibo
ai artificial-intelligence finance investment investment-analysis machine-learning portfolio-management quant quantitative-finance stock stock-market stock-price-prediction stocks
Last synced: 9 months ago
JSON representation
π€ Predict the stock market with AI η¨AIι’ζ΅θ‘η₯¨εΈεΊ
- Host: GitHub
- URL: https://github.com/santoshlite/beibo
- Owner: santoshlite
- License: mit
- Created: 2021-12-29T18:13:29.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-30T12:39:44.000Z (about 4 years ago)
- Last Synced: 2025-04-19T00:36:27.242Z (10 months ago)
- Topics: ai, artificial-intelligence, finance, investment, investment-analysis, machine-learning, portfolio-management, quant, quantitative-finance, stock, stock-market, stock-price-prediction, stocks
- Language: Python
- Homepage:
- Size: 31.3 KB
- Stars: 96
- Watchers: 4
- Forks: 17
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Beibo, predict the stock market πΈ





[](https://colab.research.google.com/drive/1dn-JklrtCmALfWYz7uVWywVT4breQxm_?usp=sharing)
**Beibo** is a **Python** library that uses several **AI prediction models** to predict **stocks returns** over a defined period of time.
It was firstly introduced in one of my previous package called [**Empyrial**](https://github.com/ssantoshp/Empyrial).
_Disclaimer: Information is provided 'as is' and solely for informational purposes, not for trading purposes or advice._
## How to install π₯
```py
pip install beibo
```
## How to use π»
```py
from beibo import oracle
oracle(
portfolio=["TSLA", "AAPL", "NVDA", "NFLX"], #stocks you want to predict
start_date = "2020-01-01", #date from which it will take data to predict
weights = [0.3, 0.2, 0.3, 0.2], #allocate 30% to TSLA and 20% to AAPL...(equal weighting by default)
prediction_days=30 #number of days you want to predict
)
```
**Output**

**About Accuracy**
| MAPE | Interpretation |
| ------------- | ------------- |
| <10 | Highly accurate forecasting π |
| 10-20 | Good forecasting π |
| 20-50 | Reasonable forecasting π |
| >50 | Inaccurate forecasting π |
**Models available**
| Models | Availability |
| ------------- | ------------- |
| ```Exponential Smoothing``` | β
|
| [```Facebook Prophet```](https://github.com/facebook/prophet) | β
|
| ```ARIMA``` | β
|
| ```AutoARIMA``` | β
|
| [```Theta```](https://robjhyndman.com/papers/Theta.pdf) | β
|
| [```4 Theta```](https://github.com/Mcompetitions/M4-methods/blob/master/4Theta%20method.R) | β
|
| ```Fast Fourier Transform``` (FFT) | β
|
| ```Naive Drift``` | β
|
| ```Naive Mean``` | β
|
| ```Naive Seasonal``` | β
|
## Stargazers over time

## Contribution and Issues
Beibo uses GitHub to host its source code. *Learn more about the [Github flow](https://docs.github.com/en/get-started/quickstart/github-flow).*
For larger changes (e.g., new feature request, large refactoring), please open an issue to discuss first.
* If you wish to create a new Issue, then [click here to create a new issue](https://github.com/ssantoshp/Beibo/issues/new/choose).
Smaller improvements (e.g., document improvements, bugfixes) can be handled by the Pull Request process of GitHub: [pull requests](https://github.com/ssantoshp/Beibo/pulls).
* To contribute to the code, you will need to do the following:
* [Fork](https://docs.github.com/en/get-started/quickstart/fork-a-repo#forking-a-repository) [Beibo](https://github.com/ssantoshp/Beibo) - Click the **Fork** button at the upper right corner of this page.
* [Clone your own fork](https://docs.github.com/en/get-started/quickstart/fork-a-repo#cloning-your-forked-repository). E.g., ```git clone https://github.com/ssantoshp/Beibo.git```
*If your fork is out of date, then will you need to manually sync your fork: [Synchronization method](https://help.github.com/articles/syncing-a-fork/)*
* [Create a Pull Request](https://github.com/ssantoshp/Beibo/pulls) using **your fork** as the `compare head repository`.
You contributions will be reviewed, potentially modified, and hopefully merged into Beibo.
**Contributions of any kind are welcome!**
## Acknowledgments
- [Unit8](https://github.com/unit8co) for [Darts](https://github.com/unit8co/darts)
- [@ranroussi](https://github.com/ranaroussi) for [yfinance](https://github.com/ranaroussi/yfinance)
- This random guy on Python's Discord server who helped me
- @devnull10 on Reddit who warned me when I called the package The Oracle
## Contact
You are welcome to contact us by email at **santoshpassoubady@gmail.com** or in Beibo's [discussion space](https://github.com/ssantoshp/Beibo/discussions)
## License
MIT