-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
634 additions
and
532 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,106 +1,23 @@ | ||
# Byte-compiled / optimized / DLL files | ||
# python generated files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
env/ | ||
develop-eggs/ | ||
*.py[oc] | ||
build/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
*.egg-info | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
# venv | ||
.venv | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
# pyenv | ||
.python-version | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
.hypothesis/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
|
||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
|
||
# Scrapy stuff: | ||
.scrapy | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# Jupyter Notebook | ||
.ipynb_checkpoints | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# celery beat schedule file | ||
celerybeat-schedule | ||
|
||
# SageMath parsed files | ||
*.sage.py | ||
|
||
# dotenv | ||
.env | ||
|
||
# virtualenv | ||
.venv | ||
venv/ | ||
ENV/ | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
.spyproject | ||
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
# mkdocs documentation | ||
/site | ||
|
||
# mypy | ||
.mypy_cache/ | ||
|
||
# PyCharm | ||
.idea/ | ||
|
||
# PyTest | ||
**.pytest_cache/ | ||
|
||
# Coverage.py | ||
.coverage | ||
# VSCode | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
version: "3" | ||
|
||
vars: | ||
APP: apimoex | ||
TESTS: tests | ||
PYTHON: 3.12 | ||
TOOLS: go-task rye | ||
|
||
tasks: | ||
default: | ||
desc: List available tasks | ||
cmds: | ||
- task -l | ||
|
||
install: | ||
desc: Setup venv, install tools and dependencies | ||
cmds: | ||
- brew install {{.TOOLS}} | ||
- rye pin --relaxed {{.PYTHON}} | ||
- rye sync --update-all --all-features --no-lock --force | ||
|
||
update: | ||
desc: Upgrade tools and dependencies | ||
cmds: | ||
- brew upgrade {{.TOOLS}} | ||
- rye pin --relaxed {{.PYTHON}} | ||
- rye sync --update-all --all-features | ||
|
||
lint: | ||
desc: Format and lint | ||
cmds: | ||
- rye run ruff format {{.APP}} | ||
- rye run ruff format {{.TESTS}} | ||
- rye run ruff {{.APP}} --unsafe-fixes | ||
- rye run pyright {{.APP}} | ||
|
||
test: | ||
desc: Lint and test | ||
deps: [lint] | ||
cmds: | ||
- rye run pytest {{.TESTS}} --cov={{.APP}} | ||
|
||
docs: | ||
desc: Update html docs | ||
cmds: | ||
- rye run sphinx-build -M html docs docs/build | ||
|
||
publish: | ||
desc: Publish to pypi | ||
deps: [lint, docs] | ||
cmds: | ||
- rye build --clean | ||
- rye publish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,40 @@ | ||
"""Реализовано несколько функций-запросов информации о торгуемых акциях и их исторических котировках, результаты которых | ||
"""Реализация части запросов к MOEX ISS. | ||
Реализовано несколько функций-запросов информации о торгуемых акциях и их исторических котировках, результаты которых | ||
напрямую конвертируются в pandas.DataFrame. | ||
Работа функций базируется на универсальном клиенте, позволяющем осуществлять произвольные запросы к MOEX ISS, поэтому | ||
перечень доступных функций-запросов может быть легко расширен. | ||
""" | ||
from .client import ISSClient | ||
|
||
from .requests import * | ||
from apimoex.client import ISSClient | ||
from apimoex.requests import ( | ||
find_securities, | ||
find_security_description, | ||
get_board_candle_borders, | ||
get_board_candles, | ||
get_board_dates, | ||
get_board_history, | ||
get_board_securities, | ||
get_index_tickers, | ||
get_market_candle_borders, | ||
get_market_candles, | ||
get_market_history, | ||
get_reference, | ||
) | ||
|
||
__version__ = "1.3.0" | ||
__all__ = [ | ||
"get_reference", | ||
"find_securities", | ||
"find_security_description", | ||
"get_market_candle_borders", | ||
"get_board_candle_borders", | ||
"get_market_candles", | ||
"get_board_candles", | ||
"get_board_dates", | ||
"get_board_securities", | ||
"get_market_history", | ||
"get_board_history", | ||
"get_index_tickers", | ||
"ISSClient", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.