Skip to main content

An unofficial API wrapper for the Egyptian Exchange that lets you fetch historical and intraday index data.

Project description

egx

PyPI PyPI Downloads Ruff

An unofficial API wrapper for the Egyptian Exchange that lets you fetch historical and intraday index data.

Installation

Use the package manager pip to install egx.

pip install egx

Usage

import egx

# List all available indices
print(egx.get_supported_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.3.0.tar.gz (3.6 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.3.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for egx-0.3.0.tar.gz
Algorithm Hash digest
SHA256 5c1d28f2612d907200718647c2d83975408735b7929766c0fe5abb707e8cd855
MD5 f2d91e546e8f5b55ee88ef89f2277875
BLAKE2b-256 10f6863da3b790d5623f2b181a3d5b1a11e5440bdcbeac282e68285f11d0f17d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for egx-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9be04bce1c084260d6bb0ad92a3e6c7120ea664bb9e89143f1e1e1692b316853
MD5 018c0a86c1a8ef278acac9a1002f427b
BLAKE2b-256 43f352c4554d210153cd73713581fb20d890b3fea0f371aec8151b3f76dd0c04

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