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
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.4.tar.gz
(13.0 kB
view hashes)
Built Distribution
Close
Hashes for opensignals-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7599879d167bf81d716e26d51becea65a5a2142ea27e314da331032d9b9184e8 |
|
MD5 | 6a92c0dee2dec48dfe33b563264dfa6e |
|
BLAKE2b-256 | 7e101af4672f5283c754e07136c8895d2b3c2fd79ad447948922b93bd5205700 |