Extract text from a YouTube video in a single command, using OpenAi's Whisper speech recognition model
Project description
tefas
Get daily price data of 5 years from TEFAS, Turkey's exchange traded funds (in Turkish: Yatırım Fonları) platform https://www.tefas.gov.tr
TEFAS doesn't provice an API for easy data retrieval, so the program uses Selenium to physically visit the website and scrape the data
Installation
pip install tefas
Usage
import tefas
data= tefas.get_data("AFT","MAC","TCD")
call tefas.get_data() function with ETF names. You can pass as many ETFs as you want. You will get a Pandas dataframe with days as indexes and each ETFs daily price as columns
You can pass an optional verbose=False argument if you want to disable printg progression to console
import tefas
data= tefas.get_data("AFT","MAC","TCD",verbose=False)
Example Dataframe
Additional Features ?
I initially though about adding various data manipulation functions to the library. But to keep the library lightweight, I think it is enough to retrieve the dataframe. Because once the dataframe is ready, users can easily process the data according to their needs. Examples
import tefas
data= tefas.get_data("AFT","MAC","TCD")
# print correlation matrix between ETFs
print(data.corr(),"\n")
#print total percentage return for each ETF
for column in data:
print(f"{column} total return: {data[column].iloc[-1] / data[column].iloc[0] * 100 - 100:.2f} %")
Output
Contact
Raise an issue on the GitHub repo:
https://github.com/atahanuz/lol-stats/
Disclaimer: This program doesn't provide any investment advice, it simply displays data based on user request.
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
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 tefas-1.0.0.tar.gz.
File metadata
- Download URL: tefas-1.0.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93d302a5776a41726916f042e3414372a07d720da92909adffd364121d67af90
|
|
| MD5 |
f250c3cacd111714d1938ddc575a3303
|
|
| BLAKE2b-256 |
ec5226b4d4eb63b3508b28b4a8412602dad3cebed969635c080b5d0087f030c1
|
File details
Details for the file tefas-1.0.0-py3-none-any.whl.
File metadata
- Download URL: tefas-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d626c3f93148fcdf6075e5a01ecdca3b9b2d67f8141676ea6497fb5041cd6b9
|
|
| MD5 |
d14394dcfc5107a39aee6279d8896b47
|
|
| BLAKE2b-256 |
8ad5bdebed7777a90797c9e20b544be1027ff70834a7de1f04ed65e5da6482ec
|