{"id":20121935,"url":"https://github.com/santoshlite/beibo","last_synced_at":"2025-05-06T16:32:17.677Z","repository":{"id":47353869,"uuid":"442854507","full_name":"santoshlite/Beibo","owner":"santoshlite","description":"🤖 Predict the stock market with AI  用AI预测股票市场","archived":false,"fork":false,"pushed_at":"2021-12-30T12:39:44.000Z","size":32,"stargazers_count":96,"open_issues_count":2,"forks_count":17,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-19T00:36:27.242Z","etag":null,"topics":["ai","artificial-intelligence","finance","investment","investment-analysis","machine-learning","portfolio-management","quant","quantitative-finance","stock","stock-market","stock-price-prediction","stocks"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/santoshlite.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-29T18:13:29.000Z","updated_at":"2025-03-13T16:54:08.000Z","dependencies_parsed_at":"2022-09-10T02:23:36.288Z","dependency_job_id":null,"html_url":"https://github.com/santoshlite/Beibo","commit_stats":null,"previous_names":["ssantoshp/oracle","santoshlite/beibo","ssantoshp/beibo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santoshlite%2FBeibo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santoshlite%2FBeibo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santoshlite%2FBeibo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santoshlite%2FBeibo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/santoshlite","download_url":"https://codeload.github.com/santoshlite/Beibo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252721083,"owners_count":21793748,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","artificial-intelligence","finance","investment","investment-analysis","machine-learning","portfolio-management","quant","quantitative-finance","stock","stock-market","stock-price-prediction","stocks"],"created_at":"2024-11-13T19:33:39.887Z","updated_at":"2025-05-06T16:32:17.407Z","avatar_url":"https://github.com/santoshlite.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Beibo, predict the stock market 💸\n\n\u003cbr/\u003e\n\u003cbr/\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg height=\"200\" src=\"https://user-images.githubusercontent.com/61618641/147752368-7488930a-49d7-42ae-b14f-50555c5a721e.png\" alt=\"Beibo logo\")\n\u003c/p\u003e\n\n \u003cbr/\u003e\n  \n\u003cdiv align=\"center\"\u003e\n  \n![](https://img.shields.io/badge/license-MIT-orange)\n![](https://img.shields.io/badge/version-0.1.1-blueviolet)\n![](https://img.shields.io/badge/language-python🐍-blue)\n![](https://img.shields.io/badge/Open%20source-💜-white)\t\n[![Quickstart](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1dn-JklrtCmALfWYz7uVWywVT4breQxm_?usp=sharing)\n  \n\u003c/div\u003e\n\n\u003cbr/\u003e\n\u003cbr/\u003e\n  \n**Beibo** is a **Python** library that uses several **AI prediction models** to predict **stocks returns** over a defined period of time. \n\nIt was firstly introduced in one of my previous package called [**Empyrial**](https://github.com/ssantoshp/Empyrial). \n  \n_Disclaimer: Information is provided 'as is' and solely for informational purposes, not for trading purposes or advice._\n\n## How to install 📥\n\n```py\npip install beibo\n```\n  \n## How to use 💻\n\n  \n```py\nfrom beibo import oracle\n  \noracle(\n      portfolio=[\"TSLA\", \"AAPL\", \"NVDA\", \"NFLX\"], #stocks you want to predict\n      start_date = \"2020-01-01\", #date from which it will take data to predict\n      weights = [0.3, 0.2, 0.3, 0.2], #allocate 30% to TSLA and 20% to AAPL...(equal weighting  by default)\n      prediction_days=30 #number of days you want to predict\n)\n  \n```\n\u003cbr/\u003e\n\n**Output**\n\n\u003cbr/\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg height=\"600\" src=\"https://user-images.githubusercontent.com/61618641/147704638-8713f729-c196-4f13-b9f3-b57709ad7e65.png\" alt=\"Beibo output\")\n\u003c/p\u003e\n\n\u003cbr/\u003e\n\n**About Accuracy**\n\u003cdiv align=\"center\"\u003e\n   \n| MAPE  | Interpretation |\n| ------------- | ------------- |\n| \u003c10  | Highly accurate forecasting 👌  |\n| 10-20  | Good forecasting 🆗  |\n| 20-50  | Reasonable forecasting 😔  |\n| \u003e50  | Inaccurate forecasting 👎 |\n\t\n\u003c/div\u003e\n\n \u003cbr/\u003e\n\n**Models available**\n  \n\u003cdiv align=\"center\"\u003e\n   \n| Models  | Availability |\n| ------------- | ------------- |\n| ```Exponential Smoothing```  |  ✅  |\n| [```Facebook Prophet```](https://github.com/facebook/prophet)  |  ✅  |\n| ```ARIMA```  |  ✅  |\n| ```AutoARIMA```  |  ✅  |\n| [```Theta```](https://robjhyndman.com/papers/Theta.pdf) |  ✅  |\n| [```4 Theta```](https://github.com/Mcompetitions/M4-methods/blob/master/4Theta%20method.R)  |  ✅  |\n| ```Fast Fourier Transform``` (FFT)  |  ✅  |\n| ```Naive Drift```  |  ✅  |\n| ```Naive Mean```  |  ✅  |\n| ```Naive Seasonal```  |  ✅  |\n\t\n\u003c/div\u003e\n\n  \n## Stargazers over time\n\n\u003cdiv align=\"center\"\u003e\n\t\n![追星族的时间](https://starchart.cc/ssantoshp/Beibo.svg)\n\t\n\u003c/div\u003e\n\n## Contribution and Issues\n\nBeibo uses GitHub to host its source code.  *Learn more about the [Github flow](https://docs.github.com/en/get-started/quickstart/github-flow).*  \n\nFor larger changes (e.g., new feature request, large refactoring), please open an issue to discuss first.  \n\n* If you wish to create a new Issue, then [click here to create a new issue](https://github.com/ssantoshp/Beibo/issues/new/choose).  \n\nSmaller improvements (e.g., document improvements, bugfixes) can be handled by the Pull Request process of GitHub: [pull requests](https://github.com/ssantoshp/Beibo/pulls).  \n\n* To contribute to the code, you will need to do the following:  \n\n * [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. \n * [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```  \n  *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/)*\n * [Create a Pull Request](https://github.com/ssantoshp/Beibo/pulls) using **your fork** as the `compare head repository`. \n\nYou contributions will be reviewed, potentially modified, and hopefully merged into Beibo.  \n\n**Contributions of any kind are welcome!**\n\n## Acknowledgments\n\n- [Unit8](https://github.com/unit8co) for [Darts](https://github.com/unit8co/darts)\n- [@ranroussi](https://github.com/ranaroussi) for [yfinance](https://github.com/ranaroussi/yfinance) \n- This random guy on Python's Discord server who helped me \n- @devnull10 on Reddit who warned me when I called the package The Oracle\n\n## Contact\n\nYou are welcome to contact us by email at **santoshpassoubady@gmail.com** or in Beibo's [discussion space](https://github.com/ssantoshp/Beibo/discussions)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsantoshlite%2Fbeibo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsantoshlite%2Fbeibo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsantoshlite%2Fbeibo/lists"}