Open Signals
Project description
Open Signals
Install
pip install -U ysignals
Usage
from pathlib import Path
from opensignals.data import yahoo
from opensignals.features import RSI, SMA
db_dir = Path('db')
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
Release history Release notifications | RSS feed
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.1rc1.tar.gz
(11.4 kB
view hashes)
Built Distribution
Close
Hashes for opensignals-0.0.1rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96ae3cd991d9f6424a4c2d6e02f6f60c87452b22faf91491f8c87e4317d2ea3e |
|
MD5 | 3289c44601980a36c4ecec79a7c8f302 |
|
BLAKE2b-256 | ea3759bb3255bbc11544433e71f7235020f44da99243c72493d3bfeb5c45ac26 |