ruleof40
Wrapper API for the ruleof40.trade webapp. Returns the current and historic list of Rule of 40 stocks and includes scores and relevant dates etc.
Has this project saved you time and/or money? Consider buying me a coffee with the sponser link on the Github homepage.
Features
- Get the current Rule of 40 list
- Get historic Rule of 40 data:
- At any date since 2010-01-01
- The full Rule of 40 history of any symbol since 2010-01-01
Install
Use the following pip command:
pip install ruleof40
Methods & Classes
get_current(cookies=None)
Returns the current list of Rule of 40 stocks, including their Rule of 40 score
get_hist_per_date(date:datetime = None, cookies=None)
Returns the list of Rule of 40 stocks for the given date
get_hist_per_symbol(symbol:str, cookies=None)
Returns the Rule of history for the given symbol since 2010-01-01.
Notes
- Recorded dates ALL apply to the START of the trading day on that date
Examples
from ruleof40 import ruleof40 as r40
from datetime import datetime, date
import pandas as pd
current = r40.get_current()
print(current)
histdate = r40.get_hist_per_date(datetime(2021, 1, 1, 0, 0))
print(histdate)
histsym = r40.get_hist_per_symbol('ADBE')
print(histsym)
Metadata
Release files for ruleof40 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ruleof40-0.0.2.tar.gz | 2.4 kB | Without provenance | Details for ruleof40-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ruleof40-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for ruleof40-0.0.2-py3-none-any.whl |
Total release size: 4.9 kB
Release files / ruleof40-0.0.2.tar.gz
| Download URL | ruleof40-0.0.2.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c1afaf6e7b4c417e42a8850686e3f7df1eb08359549a7c81da821ae119f45738
|
|
BLAKE2b-256 checksum How to use checksums |
db61a0198e1e2ac5c09ecafd155bf276d0f40dcbb5f31fcfa504ecb57331f5fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.5
|
Release files / ruleof40-0.0.2-py3-none-any.whl
| Download URL | ruleof40-0.0.2-py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3ea635fd733d66095da3fdf4146bafaa98a9a6d86efa6a7aad9dca80c59e4260
|
|
BLAKE2b-256 checksum How to use checksums |
cb2cb2e1bed0457e0b43377a722f74e8f5b3afe787cb312fa69e0b534ddac43d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.5
|
Security for ruleof40 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.