Skip to main content

grind-t-moex

Async Python client for the Moscow Exchange ISS API. Python port of @grind-t/moex.

Installation

uv add grind-t-moex

Usage

import asyncio

import httpx
import moex


async def main():
    bonds = await moex.get_moex_bonds(primary_board=1)
    print(bonds[0]["SECID"], bonds[0]["COUPONPERCENT"])

    # Reuse one connection pool for several requests
    async with httpx.AsyncClient() as client:
        description = await moex.get_moex_security_description("SU26238RMFS4", client=client)
        amortizations = await moex.get_moex_bond_amortizations("SU26238RMFS4", client=client)


asyncio.run(main())

Functions

Function ISS resource
get_moex_bonds(primary_board=) engines/stock/markets/bonds/securities → securities
get_moex_bonds_market_data() engines/stock/markets/bonds/securities → marketdata
get_moex_bonds_market_yield() engines/stock/markets/bonds/securities → marketdata_yields
get_moex_bond_coupons(...) statistics/engines/stock/markets/bonds/bondization → coupons
get_moex_bond_amortizations(id, ...) securities/{id}/bondization → amortizations
get_moex_bond_securities() all traded bonds from securities, paginated
get_moex_securities(...) securities → securities
get_moex_security_description(id) securities/{id} → description
get_moex_daily_table() engines/stock → dailytable

Low-level helpers: moex_fetch(path, block, params), get_moex_resource, parse_moex_block.

All functions accept an optional client: httpx.AsyncClient. The from query parameter is passed as from_.

Metadata

Release files for grind-t-moex 0.1.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 grind-t-moex 0.1.0
File Size Uploaded
grind_t_moex-0.1.0.tar.gz 8.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for grind-t-moex 0.1.0
File Interpreter ABI Platform
grind_t_moex-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 23.4 kB

Release files / grind_t_moex-0.1.0.tar.gz

Download URL grind_t_moex-0.1.0.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
bd4ea6888b8231e9d0a806d9d3ec1928805af1685ca687f3b088085d15643e21
BLAKE2b-256 checksum
How to use checksums
82a19f196f357c424c80c6268701a9ed6a2ea2a413c15400ad093ccabec6a8b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / grind_t_moex-0.1.0-py3-none-any.whl

Download URL grind_t_moex-0.1.0-py3-none-any.whl
Size 14.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
df6f5489d1ac0952255fe371c3d087d57ab65bb39444ad6be768b56ea2b29319
BLAKE2b-256 checksum
How to use checksums
b7091cef6fe520f5495e936084bd9e05cea3f451c85a9acc69bfb05e15aafdeb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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