Skip to main content

MoscowExchange ISS Queries implementation

Project description

MOEX

Version License Python Status Format Wheel Build Coverage Downloads


MOEX

A little bit complex and more powerful implementation for ISS Queries.

INSTALL

pip install moex

USAGE

import asyncio
from moex import AsyncMoex


async def main(amoex):
    async with amoex:
        amoex.show_templates()

        template_id = 409
        for tmpl in amoex.find_template("/candles"):
            print(f"Template: {tmpl.id}. Path: {tmpl.path}")
            await amoex.show_template_doc(tmpl.id)
            template_id = tmpl.id

    async with amoex:
        for stock in ("SNGSP", "YNDX"):
            url = amoex.render_url(
                template_id, engine="stock", market="shares", security="SNGSP", board="TQBR"
                )
            dt_params = {"from": "2025-05-01", "till": "2025-05-20", "interval": "60"}
            candles = await amoex.execute(url=url, **dt_params)
            df = candles.to_df()
            print(df)

amoex = AsyncMoex()
loop = asyncio.get_event_loop()
loop.run_until_complete(main(amoex))

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

moex-1.0.0.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

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

moex-1.0.0-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file moex-1.0.0.tar.gz.

File metadata

  • Download URL: moex-1.0.0.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for moex-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4f436981840a0b51905778cd0287e3b116a8523e3314748c1c521e1e69802a7b
MD5 82dc80ce275fb0f395a6038a75c1d15f
BLAKE2b-256 7469d96fe521886485cefcdc164c0a9ea3642aee556c451a0dc49beff88319f7

See more details on using hashes here.

File details

Details for the file moex-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: moex-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for moex-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f5ae16139166d9a07f62f0c793bc577f4002cda70bdf8d32334570f551bbdb15
MD5 711b54f92f79c3a158dae762e7ad7e78
BLAKE2b-256 9c38acb710d11703050165ad8d0a37119db417555791d915e4e240d7993d3a94

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