tifft
Technical Indicators for Financial Trading
Installation
$ pip install -U tifft
Docker image
The image is available at Docker Hub.
$ docker image pull dceoy/tifft
Usage
Calculator Classes for Python
import numpy as np
from tifft.bollingerbands import BollingerBandsCalculator
from tifft.macd import MacdCalculator
from tifft.rsi import RsiCalculator
prices = np.random.randn(100) * 100
# MACD
macdc = MacdCalculator(fast_ema_span=12, slow_ema_span=26, macd_ema_span=9)
df_macd = macdc.calculate(values=prices)
print(df_macd)
# Bollinger Bands
bbc = BollingerBandsCalculator(window_size=20, sd_multiplier=2)
df_bb = bbc.calculate(values=prices)
print(df_bb)
# RSI
rsic = RsiCalculator(window_size=14, upper_line=70, lower_line=30)
df_rsi = rsic.calculate(values=prices)
print(df_rsi)
Command-line Tools
Fetch the historical data of DJIA, SP500, and NASDAQ100 from FRED (St. Louis Fed).
$ tifft history DJIA SP500 NASDAQ100
Fetch the data of SP500 from FRED and calculate the MACD.
$ tifft macd SP500
Fetch the data of SP500 from FRED and calculate the Bollinger Bands.
$ tifft bb SP500
Fetch the data of SP500 from FRED and calculate the RSI.
$ tifft rsi SP500
Run tifft --help for information.
Metadata
Release files for tifft 0.1.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 |
|---|---|---|---|---|
| tifft-0.1.2.tar.gz | 18.3 kB | Without provenance | Details for tifft-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tifft-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for tifft-0.1.2-py3-none-any.whl |
Total release size: 37.8 kB
Release files / tifft-0.1.2.tar.gz
| Download URL | tifft-0.1.2.tar.gz |
|---|---|
| Size | 18.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7039afb1832f7837fd9c52041316d2cb47c3014ba6ccf07e16b85c9ab92d7e09
|
|
BLAKE2b-256 checksum How to use checksums |
52db1c93f7bbeb2da985914eda443b9483abdecc1611e2221691bc1589462573
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / tifft-0.1.2-py3-none-any.whl
| Download URL | tifft-0.1.2-py3-none-any.whl |
|---|---|
| Size | 19.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c90734936e49f3d8567812e5fc0355b8b40c947c42582802fcad1f22b591db35
|
|
BLAKE2b-256 checksum How to use checksums |
a3f8c4b404bc108490eea43875158456b0ac641674a8fc6d3a45b71dd0320f9d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Security for tifft 0.1.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.