Skip to main content

Open Signals

Project description

Open Signals

Install

pip install -U opensignals

Usage

from pathlib import Path

from opensignals.data.yahoo import Yahoo
from opensignals.features import RSI, SMA

db_dir = Path('db')
yahoo = Yahoo()
yahoo.download_data(db_dir)

features_generators = [
    RSI(num_days=5, interval=14, variable='adj_close'),
    RSI(num_days=5, interval=21, variable='adj_close'),
    SMA(num_days=5, interval=14, variable='adj_close'),
    SMA(num_days=5, interval=21, variable='adj_close'),
]

train, test, live, feature_names = yahoo.get_data(db_dir, features_generators=features_generators)

Project details


Download files

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

Source Distribution

opensignals-0.0.5.post1.tar.gz (13.0 kB view hashes)

Uploaded Source

Built Distribution

opensignals-0.0.5.post1-py3-none-any.whl (14.6 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