Skip to main content

"Developer toolkit for CANSLIM investment style practitioners"

Project description

canswim

Developer toolkit for CANSLIM investment style practitioners

For a brief introduction read this blog post.

Here is also a video recording of a CANSWIM presentation for the Python Austin Meetup.

Setup

pip install canswim

Install canswim package in dev mode

pip install -e ./

Command line interface

$  python -m canswim -h
usage: canswim [-h] [--forecast_start_date FORECAST_START_DATE] [--new_model NEW_MODEL] [--same_data SAME_DATA] {dashboard,gatherdata,downloaddata,uploaddata,modelsearch,train,forecast}

CANSWIM is a toolkit for CANSLIM style investors. Aims to complement the Simple Moving Average and other technical indicators.

positional arguments:
  {dashboard,gatherdata,downloaddata,uploaddata,modelsearch,train,forecast}
                        Which canswim task to run: `dashboard` for stock charting and scans of recorded forecasts. 'gatherdata` to gather 3rd party stock market data and save to HF Hub. 'downloaddata` download model training and forecast
                        data from HF Hub to local data storage. 'uploaddata` upload to HF Hub any interim changes to local train and forecast data. `modelsearch` to find and save optimal hyperparameters for model training. `train` for
                        continuous model training. `forecast` to run forecast on stocks and upload dataset to HF Hub.

options:
  -h, --help            show this help message and exit
  --forecast_start_date FORECAST_START_DATE
                        Optional argument for the `forecast` task. Indicate forecast start date in YYYY-MM-DD format. If not specified, forecast will start from the end of the target series.
  --new_model NEW_MODEL
                        Optional argument for the `train` task. Whether to train a newly created model or continue training an existing pre-trained model.
  --same_data SAME_DATA
                        Optional argument for the `dashboard` task. Whether to reuse previously created search database (faster start time) or update with new forecast data (slower start time).

NOTE: NOT FINANCIAL OR INVESTMENT ADVICE. USE AT YOUR OWN RISK.

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

canswim-0.0.20250105.tar.gz (52.2 kB view details)

Uploaded Source

Built Distribution

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

canswim-0.0.20250105-py3-none-any.whl (55.6 kB view details)

Uploaded Python 3

File details

Details for the file canswim-0.0.20250105.tar.gz.

File metadata

  • Download URL: canswim-0.0.20250105.tar.gz
  • Upload date:
  • Size: 52.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.7

File hashes

Hashes for canswim-0.0.20250105.tar.gz
Algorithm Hash digest
SHA256 24e61bbf09e246237a5a20a9a7804dc9d804855902075bd5fda5235e51c6049c
MD5 bf0c3bff6591e4017ef4227b85e6892c
BLAKE2b-256 8a4ff19b5196688de99a0513dc3f26767fd2c9f13bbe07d818d62ef7ac01bd58

See more details on using hashes here.

File details

Details for the file canswim-0.0.20250105-py3-none-any.whl.

File metadata

  • Download URL: canswim-0.0.20250105-py3-none-any.whl
  • Upload date:
  • Size: 55.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.7

File hashes

Hashes for canswim-0.0.20250105-py3-none-any.whl
Algorithm Hash digest
SHA256 5ad6f7bb96e3985be14feae401abe4e78b2d3e9077aca21ca03b1289d4c2e43c
MD5 62065a0776fbec316628242c2a5ac2d2
BLAKE2b-256 ac65c92a91b40231c5743b33a5d012b1bb23b18bdd0db7673c9cf30a56071fb1

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