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.5.post1.tar.gz
(13.0 kB
view hashes)
Built Distribution
Close
Hashes for opensignals-0.0.5.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e210349abaeb14c405e776965e38119c7eba54c740d5ed9567795fc93729bcb3 |
|
MD5 | 72a90d2b215788a2f6ec144dc1ac215e |
|
BLAKE2b-256 | 65b3fc7ae528c478d6d958eb6a3b026f19c0dcf432be71d8c7795087eaa3643e |