santoshlite / Beibo

πŸ€– Predict the stock market with AI 用AIι’„ζ΅‹θ‚‘η₯¨εΈ‚εœΊ
MIT License
86 stars 16 forks source link
ai artificial-intelligence finance investment investment-analysis machine-learning portfolio-management quant quantitative-finance stock stock-market stock-price-prediction stocks

Beibo, predict the stock market πŸ’Έ



Beibo logo


![](https://img.shields.io/badge/license-MIT-orange) ![](https://img.shields.io/badge/version-0.1.1-blueviolet) ![](https://img.shields.io/badge/language-python🐍-blue) ![](https://img.shields.io/badge/Open%20source-πŸ’œ-white) [![Quickstart](https://colab.research.google.com/assets/colab-badge.svg)](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.

Disclaimer: Information is provided 'as is' and solely for informational purposes, not for trading purposes or advice.

How to install πŸ“₯

pip install beibo

How to use πŸ’»

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


Beibo 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

![θΏ½ζ˜Ÿζ—ηš„ζ—Άι—΄](https://starchart.cc/ssantoshp/Beibo.svg)

Contribution and Issues

Beibo uses GitHub to host its source code. Learn more about the Github flow.

For larger changes (e.g., new feature request, large refactoring), please open an issue to discuss first.

Smaller improvements (e.g., document improvements, bugfixes) can be handled by the Pull Request process of GitHub: pull requests.

You contributions will be reviewed, potentially modified, and hopefully merged into Beibo.

Contributions of any kind are welcome!

Acknowledgments

Contact

You are welcome to contact us by email at santoshpassoubady@gmail.com or in Beibo's discussion space

License

MIT