Metadata-Version: 2.1
Name: tifft
Version: 0.1.0
Summary: Technical Indicators for Financial Trading
Home-page: https://github.com/dceoy/tifft
Author: Daichi Narushima
Author-email: dnarsil+github@gmail.com
License: UNKNOWN
Description: tifft
        =====
        
        Technical Indicators for Financial Trading
        
        [![Test](https://github.com/dceoy/tifft/actions/workflows/test.yml/badge.svg)](https://github.com/dceoy/tifft/actions/workflows/test.yml)
        [![Upload Python Package](https://github.com/dceoy/tifft/actions/workflows/python-publish.yml/badge.svg)](https://github.com/dceoy/tifft/actions/workflows/python-publish.yml)
        
        Installation
        ------------
        
        ```sh
        $ pip install -U tifft
        ```
        
        Docker image
        ------------
        
        The image is available at [Docker Hub](https://hub.docker.com/r/dceoy/tifft/).
        
        ```sh
        $ docker pull dceoy/tifft
        ```
        
        Usage
        -----
        
        #### Calculator Classes for Python
        
        ```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).
        
        ```sh
        $ tifft history DJIA SP500 NASDAQ100
        ```
        
        Fetch the data of SP500 from FRED and calculate the MACD.
        
        ```sh
        $ tifft macd SP500
        ```
        
        Fetch the data of SP500 from FRED and calculate the Bollinger Bands.
        
        ```sh
        $ tifft bb SP500
        ```
        
        Fetch the data of SP500 from FRED and calculate the RSI.
        
        ```sh
        $ tifft rsi SP500
        ```
        
        Run `tifft --help` for information.
        
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Financial and Insurance Industry
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Office/Business :: Financial :: Investment
Requires-Python: >=3.6
Description-Content-Type: text/markdown
