Skip to main content

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, Moex

# ASYNC

async def main():

    client = AsyncMoex()

    async with client:

        # client.show_templates()

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

        for stock in ("SNGSP", "YDEX"):
            url = client.render_url(template_id, engine="stock", market="shares", security=stock, board="TQBR")
            params = {"from": "2026-06-20", "till": "2026-06-26", "interval": "60"}
            result = await client.execute(url=url, **params)
            df = result.to_df()
            print(df)


try:
    loop = asyncio.get_event_loop()
except RuntimeError as e:
    loop = asyncio.new_event_loop()
    asyncio.set_event_loop(loop)

loop.run_until_complete(main())


# SYNC

def main():

    client = Moex()

    with client:

        for stock in ("SNGSP", "YDEX"):
            url = client.render_url(409, engine="stock", market="shares", security=stock, board="TQBR")
            params = {"from": "2026-06-20", "till": "2026-06-26", "interval": "60"}
            result = client.execute(url=url, **params)
            df = result.to_df()
            print(df)


main()

Metadata

Release files for moex 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for moex 2.0.0
File Size Uploaded Provenance Actions
moex-2.0.0.tar.gz 12.2 kB Without provenance Details for moex-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for moex 2.0.0
File Interpreter ABI Platform Actions
moex-2.0.0-py3-none-any.whl Python 3 none any Details for moex-2.0.0-py3-none-any.whl

Total release size: 25.3 kB

Release files / moex-2.0.0.tar.gz

Download URL moex-2.0.0.tar.gz
Size 12.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d72fe0bbc02ef32187055d04c8b360a07af2884f72767cb85b4505c6b942b739
BLAKE2b-256 checksum
How to use checksums
12c5e9645685d396c434a9b4edf8de544c698b6546dcc6e26bfd71d983c22813
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release files / moex-2.0.0-py3-none-any.whl

Download URL moex-2.0.0-py3-none-any.whl
Size 13.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ed18497de25feb96096137e04b95b0bb7626afaa37dd9e80aa90e1ef977d4ca
BLAKE2b-256 checksum
How to use checksums
b8d51a4dbac1137d4a079a0df7591cad89dd002c1ae723d1eaa677b11d398bae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Security for moex 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page