Skip to main content

A Python library for fetching index data from the Egyptian Exchange (EGX).

Project description

egx

A Python library for fetching index data from the Egyptian Exchange (EGX).

Installation

Use the package manager pip to install egx.

pip install egx

Usage

import egx

# List all available indices
print(egx.INDICES)
# {'EGX30_CAP', 'EGXVolatility', 'EGX30_TR', 'EGX100_EWI', 'EGX30', 'EGX70_EWI', 'EGX_33_Shariah'}

# Fetch EGX30 data for the current day
df = egx.get_index_data("EGX30")
print(df.head())

# Fetch EGX30 data for the last year
df_1y = egx.get_index_data("EGX30", period=365)
print(df_1y.head())

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

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

egx-0.1.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.

egx-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file egx-0.1.0.tar.gz.

File metadata

  • Download URL: egx-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for egx-0.1.0.tar.gz
Algorithm Hash digest
SHA256 66762c291d2a06c84b7964770fbc6baff94836346de47d567a17c74e52b7b7c2
MD5 aab98ed82d0c3c2b821832ce2b2bc707
BLAKE2b-256 b3f80c46a80e878c4d7b8f88dc57edc96451a9f2750fbb2ce324843b9eb0e211

See more details on using hashes here.

File details

Details for the file egx-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: egx-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for egx-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 822fbcd112a4f7116b2f8e84b55220800054dbd94e41f7bc3661b7736721834d
MD5 729c549ad2570a8149f9cfe3be4f9ea1
BLAKE2b-256 4c697f1e376154b397686cac78b8faacf0d377f16736a33d7af33f3938ad7a0f

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