moexapi


Namemoexapi JSON
Version 1.5.5 PyPI version JSON
download
home_page
SummaryPython API for MOEX ISS
upload_time2024-03-08 10:29:35
maintainer
docs_urlNone
author
requires_python>=3.6
licenseMIT License Copyright (c) 2023 Rak Alexey Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords moex
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # MOEXAPI

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

## Install

Установить можно одним из способов:
- `pip install moexapi`
- `git clone https://github.com/kventinel/moexapi.git`

## Examples

### Ticker

```
In [2]: moexapi.get_ticker('GAZP')
Out[2]: Ticker(secid='GAZP', alias='GAZP', is_traded=True, market=shares, shortname='ГАЗПРОМ ао', isin='RU0007661625', subtype=None, listlevel=1, boards=['TQBR', 'SMAL', 'SPEQ'], raw_price=166.15, price=166.15, accumulated_coupon=0, value=1198036323)
```

### Candles

```
In [4]: moexapi.get_candles(moexapi.get_ticker('GAZP'), start_date=datetime.date(2023, 10, 2), end_date=datetime.date(2023, 10, 2))
Out[4]: [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 [5]: moexapi.Bond(moexapi.get_ticker('SU26238RMFS4'))
Out[5]: 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=[])
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "moexapi",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "moex",
    "author": "",
    "author_email": "Aliaksei Rak <kventinel@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/a1/51/12ab83311ccab866a7eb4e3f6b0b70be9c33c47ef89d2bd16c0433c0a9e5/moexapi-1.5.5.tar.gz",
    "platform": null,
    "description": "# MOEXAPI\n\n\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043b\u044f \u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 MOEX\n\n## Install\n\n\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u043e\u0434\u043d\u0438\u043c \u0438\u0437 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432:\n- `pip install moexapi`\n- `git clone https://github.com/kventinel/moexapi.git`\n\n## Examples\n\n### Ticker\n\n```\nIn [2]: moexapi.get_ticker('GAZP')\nOut[2]: Ticker(secid='GAZP', alias='GAZP', is_traded=True, market=shares, shortname='\u0413\u0410\u0417\u041f\u0420\u041e\u041c \u0430\u043e', isin='RU0007661625', subtype=None, listlevel=1, boards=['TQBR', 'SMAL', 'SPEQ'], raw_price=166.15, price=166.15, accumulated_coupon=0, value=1198036323)\n```\n\n### Candles\n\n```\nIn [4]: moexapi.get_candles(moexapi.get_ticker('GAZP'), start_date=datetime.date(2023, 10, 2), end_date=datetime.date(2023, 10, 2))\nOut[4]: [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)]\n```\n\n### Bonds\n\n```\nIn [5]: moexapi.Bond(moexapi.get_ticker('SU26238RMFS4'))\nOut[5]: Bond(secid='SU26238RMFS4', shortname='\u041e\u0424\u0417 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=[])\n```\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2023 Rak Alexey  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "Python API for MOEX ISS",
    "version": "1.5.5",
    "project_urls": {
        "Homepage": "https://github.com/kventinel/moexapi"
    },
    "split_keywords": [
        "moex"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "821b5c0eea0ec1b2cd6532ca904ce5cd1de91de7df31c87e41bb7ccfc9bd5418",
                "md5": "ea3faabfbd1efc17cd9b8a297b2edfbf",
                "sha256": "a455a8832d06a7c9204dcf3120671318d5b99dfe47f79936ee6548a7064f7b23"
            },
            "downloads": -1,
            "filename": "moexapi-1.5.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ea3faabfbd1efc17cd9b8a297b2edfbf",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 12789,
            "upload_time": "2024-03-08T10:29:34",
            "upload_time_iso_8601": "2024-03-08T10:29:34.012153Z",
            "url": "https://files.pythonhosted.org/packages/82/1b/5c0eea0ec1b2cd6532ca904ce5cd1de91de7df31c87e41bb7ccfc9bd5418/moexapi-1.5.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a15112ab83311ccab866a7eb4e3f6b0b70be9c33c47ef89d2bd16c0433c0a9e5",
                "md5": "db30e81d0c1e8f4dd5b6c170830fd761",
                "sha256": "d68416ecbc03d00a3c96f22a20b4cfd3c7686772d052d5bf39e993ffdcbe7c17"
            },
            "downloads": -1,
            "filename": "moexapi-1.5.5.tar.gz",
            "has_sig": false,
            "md5_digest": "db30e81d0c1e8f4dd5b6c170830fd761",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 11531,
            "upload_time": "2024-03-08T10:29:35",
            "upload_time_iso_8601": "2024-03-08T10:29:35.805933Z",
            "url": "https://files.pythonhosted.org/packages/a1/51/12ab83311ccab866a7eb4e3f6b0b70be9c33c47ef89d2bd16c0433c0a9e5/moexapi-1.5.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-08 10:29:35",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "kventinel",
    "github_project": "moexapi",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "moexapi"
}
        
Elapsed time: 0.20031s