Skip to main content

Python API for MOEX ISS

Project description

MOEXAPI

Библиотека для парсинга данных MOEX

Install

Сейчас можно установить через клонирование репозитория с гита либо установить пакет moexapi из PyPI

Examples

Ticker

In [2]: moexapi.Ticker('GAZP')
Out[2]: Ticker(secid='GAZP', boards=['TQBR', 'SMAL', 'SPEQ'], market=<Markets.SHARES: 'shares'>, shortname='ГАЗПРОМ ао', price=169.5, subtype=None)

Candles

In [5]: moexapi.get_candles(moexapi.Ticker('GAZP'), start_date=datetime.date(2023, 10, 2), end_date=datetime.date(2023, 10, 2))
Out[5]: [Candle(date=datetime.date(2023, 10, 2), low=165.51, high=168.86, open=167.83, close=166.08, mid_price=167.16, numtrades=117852, volume=24391830, value=4077382279.5)]

Bonds

In [2]: moexapi.Bond(moexapi.Ticker('SU26238RMFS4'))
Out[2]: Bond(secid='SU26238RMFS4', shortname='ОФЗ 26238', amortization=[Amortization(date=datetime.date(2041, 5, 15), value=1000, initialfacevalue=1000)], coupons=[Coupon(date=2021-12-08, value=34.04), Coupon(date=2022-06-08, value=35.4), Coupon(date=2022-12-07, value=35.4), Coupon(date=2023-06-07, value=35.4), Coupon(date=2023-12-06, value=35.4), Coupon(date=2024-06-05, value=35.4), Coupon(date=2024-12-04, value=35.4), Coupon(date=2025-06-04, value=35.4), Coupon(date=2025-12-03, value=35.4), Coupon(date=2026-06-03, value=35.4), Coupon(date=2026-12-02, value=35.4), Coupon(date=2027-06-02, value=35.4), Coupon(date=2027-12-01, value=35.4), Coupon(date=2028-05-31, value=35.4), Coupon(date=2028-11-29, value=35.4), Coupon(date=2029-05-30, value=35.4), Coupon(date=2029-11-28, value=35.4), Coupon(date=2030-05-29, value=35.4), Coupon(date=2030-11-27, value=35.4), Coupon(date=2031-05-28, value=35.4), Coupon(date=2031-11-26, value=35.4), Coupon(date=2032-05-26, value=35.4), Coupon(date=2032-11-24, value=35.4), Coupon(date=2033-05-25, value=35.4), Coupon(date=2033-11-23, value=35.4), Coupon(date=2034-05-24, value=35.4), Coupon(date=2034-11-22, value=35.4), Coupon(date=2035-05-23, value=35.4), Coupon(date=2035-11-21, value=35.4), Coupon(date=2036-05-21, value=35.4), Coupon(date=2036-11-19, value=35.4), Coupon(date=2037-05-20, value=35.4), Coupon(date=2037-11-18, value=35.4), Coupon(date=2038-05-19, value=35.4), Coupon(date=2038-11-17, value=35.4), Coupon(date=2039-05-18, value=35.4), Coupon(date=2039-11-16, value=35.4), Coupon(date=2040-05-16, value=35.4), Coupon(date=2040-11-14, value=35.4), Coupon(date=2041-05-15, value=35.4)], offers=[])

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

moexapi-1.0.8.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

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

moexapi-1.0.8-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file moexapi-1.0.8.tar.gz.

File metadata

  • Download URL: moexapi-1.0.8.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for moexapi-1.0.8.tar.gz
Algorithm Hash digest
SHA256 d147d65018db94d2fa77379af51b9d0e5c18e1f3e56d9ed0750607e1a8f126b3
MD5 99069480c506f8e71aff4c8cdfc4723b
BLAKE2b-256 9b0f22c6a71bf7f41c34d58c1b157c8eff3bb9b2a650da8ec7c200e9838b208b

See more details on using hashes here.

File details

Details for the file moexapi-1.0.8-py3-none-any.whl.

File metadata

  • Download URL: moexapi-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for moexapi-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 7b173ecf1e96a0642118b009dd05da734bb95aff1a3f427c0475953c900c73a0
MD5 512274a9283c1b5c20157b142818f031
BLAKE2b-256 0206a59e92284c7cc207ab4618efcaf7f7ae488d7fbd19cc9e37d127ed0a0200

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