Skip to main content

🤖 Predict the stock market with AI 用AI预测股票市场

Project description

Beibo, predict the stock market 💸



Beibo logo

Quickstart



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
ARIMA
AutoARIMA
Theta
4 Theta
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.

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.

  • To contribute to the code, you will need to do the following:

  • Fork Beibo - Click the Fork button at the upper right corner of this page.

  • Clone your own fork. 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

  • Create a Pull Request 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 for Darts
  • @ranroussi for 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

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

beibo-0.1.1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

beibo-0.1.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file beibo-0.1.1.tar.gz.

File metadata

  • Download URL: beibo-0.1.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.0

File hashes

Hashes for beibo-0.1.1.tar.gz
Algorithm Hash digest
SHA256 28b081163b8a5fc2e84d9a10d68f3813a0ca0235a4ded55ee9ba9f295ebee315
MD5 260b064c46ea983942bed93ff2aab9c8
BLAKE2b-256 a02898a18e39d6e072e596b19ba7fb0f62ad620528a8a0d1e27a099e9a113d2e

See more details on using hashes here.

File details

Details for the file beibo-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: beibo-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.0

File hashes

Hashes for beibo-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 af76100d54559932bdacf23aad33cc5cf74d67d9b1b5a3da136f86be7a8a2624
MD5 2b856df6aee638b1b500a48a73fa1437
BLAKE2b-256 be0e924359cea211346e6ee29004ebc64e7053d2555841a798b92af937392716

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page