Skip to main content

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

Project description

egx

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.2.0.tar.gz (3.2 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.2.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for egx-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ea051f0cc7d16d3fed25d7a2dd64bf25c274a35fd0ae8e54807a8dc2e039f365
MD5 06f48f59101441341c7fce0c5b53cb4d
BLAKE2b-256 ecaad8be72b34c18914e1213ff081f992d875873911a36b4c5ee07a201e8ffaf

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for egx-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 514f56fe7fe200f0ab25f1809320a7fd4f4964a70070dca643845a5956235b40
MD5 d56e343a640b80ea0d9fabeb09fe93f9
BLAKE2b-256 312c54d94baa8ff77d5a8f752605f859ed92517efc8c74ca0a79b065cb3bdcc4

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