Open Signals
Project description
Open Signals
Install
pip install -U opensignals
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.1rc8.tar.gz
(11.8 kB
view hashes)
Built Distribution
Close
Hashes for opensignals-0.0.1rc8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6142ba2805f5addb3e4d59bff2dc12db6945a631c7e5fa463b8d1fda3383d6b |
|
MD5 | 1bff902e3c9b309a3a4ad13835b889be |
|
BLAKE2b-256 | 4cbcacf1b2decaced4aa75234fc633fbff90966b854a6f634a5211452c167b20 |