Get Calculated Economic Cycle
Project description
econcycle
This package is to define economic cycle for a given timeframe. (Inflation, Recession, Goldilocks)
It also gives trend information of the stock.
Installation
Install package
pip install econcycle
Getting Started
from econcycle.utils.cycle import Cycle
from econcycle.utils.chart import Chart
start_date = "2020-01-01 00:00:00"
end_date = "2022-11-08 00:00:00"
resolution = "W"
# This period is used to calculate trend of candle data.
# If it is uptrend, the chart is going up,
# If it is downtrend, the chart is going down
period = 5
# Get all cycles (Inlfation, Recession, Goldilocks)
cycle = Cycle(resolution, period, start_date, end_date)
all_cycle = cycle.get_all()
print(all_cycle)
# Get chart data of AAPL
aapl = chart.process("AAPL")
print(aapl)
# Get trend information (uptrend, downtrend)
print(aapl.get("type"))
License
MIT
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
econcycle-0.0.8.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for econcycle-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26af4f7f66e73b735d2aa6fa87cda442ebd8764605625c55bbdc67e1bb279790 |
|
MD5 | 26daac141c6083c9356bf889e8a216a1 |
|
BLAKE2b-256 | ca6969bf5c884a813a161747bc7dc4d071d33083f2f2c281774185e2ecc50355 |