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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file econcycle-0.0.8.tar.gz.
File metadata
- Download URL: econcycle-0.0.8.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b45396ba297d67844bfb67b9dc8506f06d5a1f28f40e4ed9e95d827fb6259e7
|
|
| MD5 |
0a83be9d1d341ab956dbca2b0097453f
|
|
| BLAKE2b-256 |
67d7c0a45a97098feae9eaa3ef45d9caa2d038a2172e9ffeb7d5ed3e1057776d
|
File details
Details for the file econcycle-0.0.8-py3-none-any.whl.
File metadata
- Download URL: econcycle-0.0.8-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26af4f7f66e73b735d2aa6fa87cda442ebd8764605625c55bbdc67e1bb279790
|
|
| MD5 |
26daac141c6083c9356bf889e8a216a1
|
|
| BLAKE2b-256 |
ca6969bf5c884a813a161747bc7dc4d071d33083f2f2c281774185e2ecc50355
|