Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tefas-1.0.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tefas-1.0.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

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

Hashes for tefas-1.0.0.tar.gz
Algorithm Hash digest
SHA256 93d302a5776a41726916f042e3414372a07d720da92909adffd364121d67af90
MD5 f250c3cacd111714d1938ddc575a3303
BLAKE2b-256 ec5226b4d4eb63b3508b28b4a8412602dad3cebed969635c080b5d0087f030c1

See more details on using hashes here.

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

Hashes for tefas-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8d626c3f93148fcdf6075e5a01ecdca3b9b2d67f8141676ea6497fb5041cd6b9
MD5 d14394dcfc5107a39aee6279d8896b47
BLAKE2b-256 8ad5bdebed7777a90797c9e20b544be1027ff70834a7de1f04ed65e5da6482ec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page