Read the latest README.md
Project description
Python_YFLib
- Providing both dayEnd and indicator function
- Using YFinance as source
- All called function would save a cache in local
- *** SUDO *** root permission required
How to import?
from yflib import functions
Library Included
- Yfinance
- Pandas
- Numpy
Day End
Read data of day end
- Start date and End date are inclusive
functions.read_dayEnd(stock,startDate,endDate,useCols,verbose)
| Params | Type | Example | Optional |
|---|---|---|---|
| stock | string | "AAPL" | F |
| starDate | string | "2000-01-05" | T |
| endDate | string | "2000-01-09" | T |
| useCols | List | ["Open","Low"] | T |
| verbose | Boolean | True | T |
- useCols full list
[open, high, low, close, adjusted_close, volume, dividend_amount, split_coefficient]
Indicators
- Series type: close
Read data of day end
- Start date and End date are inclusive
functions.read_indicator(stock,indicator,startDate,endDate,useCols,verbose)
| Params | Type | Example | Optional |
|---|---|---|---|
| stock | string | "AAPL" | F |
| indicator | string | "SMA" | F |
| period | Number | 12 | T |
| starDate | string | "2000-01-05" | T |
| endDate | string | "2000-01-09" | T |
| verbose | Boolean | True | T |
1. SMA
- Period: 50/200
2. EMA
- Period: 50/200
3. MACD
4. STOCH
- Period: NULL
5. RSI
- Period: 9/14
6. STOCHRSI
- Period: 60/120
7. CCI
- Period: 14/50
8. BBRANDS
- Period: Null (Default 20 fixed)
9. OBV
- Period: Null
version = 1.0.2
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
YFLIB-1.0.2.tar.gz
(6.6 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
YFLIB-1.0.2-py3-none-any.whl
(12.0 kB
view details)
File details
Details for the file YFLIB-1.0.2.tar.gz.
File metadata
- Download URL: YFLIB-1.0.2.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac24562f3014e5d310337914230ba807e77a591f7769d9ad31356e2a46fba8c4
|
|
| MD5 |
6acbed47470a58192ed7166345a45d2a
|
|
| BLAKE2b-256 |
5869c93c2fef45c7c3c60ca557084f42ca6695f97272f59e76ee509d3653e0d9
|
File details
Details for the file YFLIB-1.0.2-py3-none-any.whl.
File metadata
- Download URL: YFLIB-1.0.2-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
071a5cb9a8fd97b6bc70916de10571a190aac6a7788f5d266c3df66815c6dadf
|
|
| MD5 |
228f43acca1f217b646914313c47c992
|
|
| BLAKE2b-256 |
75b6a27352cd554a4fb7c27bf0538e1e1fad3e4370800aaaa973ab30f24a33b5
|