Skip to main content

Monte Carlo Stock/Crypto Price Simulation Tool

Project description

StockSim

Monte Carlo Stock & Crypto Price Simulation Tool

StockSim is a Python command-line tool for estimating the probability of gain for stocks, cryptocurrencies, or indices using Monte Carlo simulation and real historical data.


Features

  • Simulate future price paths for stocks, crypto, or indices
  • Uses real historical data via yfinance
  • Multiprocessing for fast simulations
  • Command-line interface
  • Logging to file and console

Requirements

  • Python 3.7–3.12 (not compatible with Python 3.13)
  • See requirements.txt for required packages

Installation

From PyPI (recommended)

pip install stocksim

From source

git clone https://github.com/ElementalPublishing/StockSim.git
cd StockSim
pip install -e .

Usage

After installation, run from the command line:

stocksim [options]

Or, if running from source:

python -m stocksim.main [options]

Build Windows Executable (Optional)

To build a Windows executable with your custom icon:

pyinstaller --icon=shaggy.ico --name=StockSim stocksim/main.py
  • The EXE will be in the dist folder as StockSim.exe.

Notes

  • Compatible with Python 3.7–3.12, PyInstaller 5.13.2, and setuptools <80 (tested with 79.0.1).
  • Log files are saved in the logs folder, with a new file for each run.
  • For issues or feature requests, please use the GitHub Issue Tracker.

License

This project is licensed under the MIT License. See LICENSE for details.

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

stocksim-1.1.0.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stocksim-1.1.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file stocksim-1.1.0.tar.gz.

File metadata

  • Download URL: stocksim-1.1.0.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for stocksim-1.1.0.tar.gz
Algorithm Hash digest
SHA256 b40ff92c32c71861c2b4a80d5c32b8f8487009bee3429e457ac47e570761b611
MD5 78b44aa6c511745a33bc00a49363a402
BLAKE2b-256 738870f927e317e195ea202ada2e2cabcf16c2d3111e2fe85b1fedbb176a6f43

See more details on using hashes here.

File details

Details for the file stocksim-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: stocksim-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for stocksim-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 36a94c31715c443c8323dc05671c6728daa465e778599fde4effe5b926788be3
MD5 3009f1630cb4b15af9df659b7940ae4e
BLAKE2b-256 76098db901356bd185cad5d9bd848b85826eea2b4ce2b2523b889bbea8f9e90c

See more details on using hashes here.

Supported by

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