MoscowExchange ISS Queries implementation
Project description
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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
moex-1.0.0-py3-none-any.whl
(12.1 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f436981840a0b51905778cd0287e3b116a8523e3314748c1c521e1e69802a7b
|
|
| MD5 |
82dc80ce275fb0f395a6038a75c1d15f
|
|
| BLAKE2b-256 |
7469d96fe521886485cefcdc164c0a9ea3642aee556c451a0dc49beff88319f7
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5ae16139166d9a07f62f0c793bc577f4002cda70bdf8d32334570f551bbdb15
|
|
| MD5 |
711b54f92f79c3a158dae762e7ad7e78
|
|
| BLAKE2b-256 |
9c38acb710d11703050165ad8d0a37119db417555791d915e4e240d7993d3a94
|