/eta-lib

Hotfix Numpy 1.20 compatibility for Technical Analysis library in pandas for backtesting algotrading and quantitative analysis

Primary LanguagePythonMIT LicenseMIT

LinkedIn Contributors Forks Stargazers Issues GNU v3 License


Logo

eta-lib - A pandas based Technical Analysis Library

Python Package forked from bta-lib and based on pandas.

View Test · Report Bug · Request Feature

About The Package

This is a package that fix some compatibility problems presented on bta-lib with the new version of numpy and pandas.

bta-lib is pandas based technical analysis library and part of the backtrader family.

Author of bta-lib: Daniel Rodriguez Original github: https://github.com/mementum/bta-lib

(back to top)

Built With

This project was builded with the next technologies.

(back to top)

Getting Started

Building

Follow the next steps:

  1. Setup the project:
    python setup.py sdist
  2. Build the package:
    python setup.py build
  3. Install the package
    python setup.py install
  4. Install the package using pip.
    pip install eta-lib

(back to top)

Intalling

Just need to use pip with git command:

pip install git+https://github.com/estebanvz/eta-lib.git

Usage

Get the keys from API Binance:

GET BINANCE API KEYS

You can use the package using the api_key and api_secret from binance API. Also you could download the package crypo_price to download data from Binance API. Crypto Price Package

import os
from decouple import config
from crypto_price import CryptoDataExtractor
from eta-lib import CryptoDataTransformation
API_KEY = config("API_KEY")
API_SECRET = config("API_SECRET")
extractor = CryptoDataExtractor()
extractor.from_binance(api_key=API_KEY,api_secret=API_SECRET,time_in_hours=24*10)
transformer = CryptoDataTransformation()
transformer.readDataset()

License

Distributed under the MIT License. See LICENSE for more information.

(back to top)

bta-lib Links

Contact

Esteban Vilca - @ds_estebanvz - esteban.wilfredo.g@gmail.com

Project Link: https://github.com/estebanvz/eta-lib

(back to top)