Skip to main content

Financial technical and fundamental analysis indicator library for pystockdb.

Project description

pystockfilter

Build Status Coverage Status Codacy Badge

Create your own fundamental or chart based stock filter. All you need is a database set up with pystockdb.

built-in filters

technical filters

  • ADX
  • RSI
  • StockIsHot: Simple trend indicator
  • StockIsHotSecure: improved StockIsHot version.

fundamental filters

  • Lervermann
  • Piotroski F-Score
  • Price Target Score: analysts price targets compared with actual price

install

pip install pystockfilter

quick start

Build internal filters:

import logging
from pystockdb.db.schema.stocks import db

from pystockfilter.tool.build_internal_filters import BuildInternalFilters

# connect to database
arguments = {'db_args': {
    'provider': 'sqlite',
    'filename': db_path_test,
    'create_db': False
    }
}
db.bind(**arguments["db_args"])
db.generate_mapping()
# create internal filters for Adidas AG and Infineon
arguments = {'symbols': ['ADS.F', 'IFX.F']}
builder = BuildInternalFilters(arguments, logger)
builder.build()
# create internal filters for all stocks in database
arguments = {'symbols': ['ALL']}
builder = BuildInternalFilters(arguments, logger)
builder.build()

issue tracker

https://github.com/portfolioplus/pystockfilter/issuese

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pystockfilter-1.0.2-py3-none-any.whl (18.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page