nasdaq-protocols 0.0.1a1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- nasdaq_protocols-0.0.1a1/.coveragerc +5 -0
- nasdaq_protocols-0.0.1a1/.github/workflows/wf-push.yml +68 -0
- nasdaq_protocols-0.0.1a1/.gitignore +160 -0
- nasdaq_protocols-0.0.1a1/.pylintrc +15 -0
- nasdaq_protocols-0.0.1a1/MANIFEST.in +3 -0
- nasdaq_protocols-0.0.1a1/PKG-INFO +33 -0
- nasdaq_protocols-0.0.1a1/README.rst +36 -0
- nasdaq_protocols-0.0.1a1/docs/LICENSE.rst +22 -0
- nasdaq_protocols-0.0.1a1/docs/Makefile +20 -0
- nasdaq_protocols-0.0.1a1/docs/api_reference.rst +11 -0
- nasdaq_protocols-0.0.1a1/docs/api_reference_common.rst +12 -0
- nasdaq_protocols-0.0.1a1/docs/api_reference_itch.rst +22 -0
- nasdaq_protocols-0.0.1a1/docs/api_reference_ouch.rst +22 -0
- nasdaq_protocols-0.0.1a1/docs/api_reference_soup.rst +25 -0
- nasdaq_protocols-0.0.1a1/docs/conf.py +37 -0
- nasdaq_protocols-0.0.1a1/docs/developer_guide.rst +39 -0
- nasdaq_protocols-0.0.1a1/docs/index.rst +39 -0
- nasdaq_protocols-0.0.1a1/docs/install.rst +10 -0
- nasdaq_protocols-0.0.1a1/docs/make.bat +35 -0
- nasdaq_protocols-0.0.1a1/docs/user_guide.rst +14 -0
- nasdaq_protocols-0.0.1a1/docs/user_guide_create_new_project.rst +78 -0
- nasdaq_protocols-0.0.1a1/docs/user_guide_itch.rst +126 -0
- nasdaq_protocols-0.0.1a1/docs/user_guide_ouch.rst +7 -0
- nasdaq_protocols-0.0.1a1/docs/user_guide_soup.rst +91 -0
- nasdaq_protocols-0.0.1a1/pyproject.toml +36 -0
- nasdaq_protocols-0.0.1a1/pytest.ini +8 -0
- nasdaq_protocols-0.0.1a1/requirements.txt +7 -0
- nasdaq_protocols-0.0.1a1/setup.cfg +4 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/__init__.py +0 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/common/__init__.py +5 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/common/message/__init__.py +4 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/common/message/codegen.py +70 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/common/message/parser.py +232 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/common/message/structures.py +287 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/common/message/templates/__init__.py +0 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/common/message/templates/enum.mustache +9 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/common/message/templates/init.mustache +3 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/common/message/templates/message_ouch_itch.mustache +77 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/common/message/templates/record.mustache +15 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/common/message/types.py +236 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/common/message_queue.py +155 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/common/session.py +296 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/common/types.py +83 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/common/utils.py +86 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/fix/__init__.py +3 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/fix/_reader.py +63 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/fix/core.py +486 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/fix/types.py +165 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/itch/__init__.py +43 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/itch/codegen.py +29 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/itch/core.py +38 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/itch/session.py +87 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/ouch/__init__.py +43 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/ouch/codegen.py +29 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/ouch/core.py +47 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/ouch/session.py +90 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/soup/__init__.py +79 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/soup/_reader.py +50 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/soup/core.py +344 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/soup/session.py +279 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/tools/__init__.py +0 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/tools/new_project.py +141 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/tools/templates/__init__.py +0 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/tools/templates/ouch_itch_xml.mustache +82 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/tools/templates/toml.mustache +53 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols/tools/templates/tox.mustache +21 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols.egg-info/PKG-INFO +33 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols.egg-info/SOURCES.txt +97 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols.egg-info/dependency_links.txt +1 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols.egg-info/entry_points.txt +4 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols.egg-info/requires.txt +3 -0
- nasdaq_protocols-0.0.1a1/src/nasdaq_protocols.egg-info/top_level.txt +1 -0
- nasdaq_protocols-0.0.1a1/tests/__init__.py +0 -0
- nasdaq_protocols-0.0.1a1/tests/conftest.py +76 -0
- nasdaq_protocols-0.0.1a1/tests/fix_messages.py +123 -0
- nasdaq_protocols-0.0.1a1/tests/mocks.py +92 -0
- nasdaq_protocols-0.0.1a1/tests/reader_app_tests.py +154 -0
- nasdaq_protocols-0.0.1a1/tests/soup_client_app_tests.py +214 -0
- nasdaq_protocols-0.0.1a1/tests/test_common_asyncsession.py +113 -0
- nasdaq_protocols-0.0.1a1/tests/test_common_heartbeatmonitor.py +103 -0
- nasdaq_protocols-0.0.1a1/tests/test_common_message_parser.py +178 -0
- nasdaq_protocols-0.0.1a1/tests/test_common_message_structures.py +340 -0
- nasdaq_protocols-0.0.1a1/tests/test_common_message_types.py +251 -0
- nasdaq_protocols-0.0.1a1/tests/test_common_messagequeue.py +191 -0
- nasdaq_protocols-0.0.1a1/tests/test_common_utils.py +80 -0
- nasdaq_protocols-0.0.1a1/tests/test_fix_core.py +735 -0
- nasdaq_protocols-0.0.1a1/tests/test_fix_reader.py +84 -0
- nasdaq_protocols-0.0.1a1/tests/test_fix_types.py +100 -0
- nasdaq_protocols-0.0.1a1/tests/test_itch_codegen.py +174 -0
- nasdaq_protocols-0.0.1a1/tests/test_itch_core.py +91 -0
- nasdaq_protocols-0.0.1a1/tests/test_itch_session.py +28 -0
- nasdaq_protocols-0.0.1a1/tests/test_ouch_codegen.py +174 -0
- nasdaq_protocols-0.0.1a1/tests/test_ouch_core.py +117 -0
- nasdaq_protocols-0.0.1a1/tests/test_ouch_session.py +96 -0
- nasdaq_protocols-0.0.1a1/tests/test_soup_core.py +256 -0
- nasdaq_protocols-0.0.1a1/tests/test_soup_reader.py +30 -0
- nasdaq_protocols-0.0.1a1/tests/test_soup_session.py +142 -0
- nasdaq_protocols-0.0.1a1/tests/testdata.py +166 -0
- nasdaq_protocols-0.0.1a1/tox.ini +38 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
name: Workflow Push
|
|
2
|
+
|
|
3
|
+
on: [push]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
build:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
strategy:
|
|
9
|
+
fail-fast: false
|
|
10
|
+
matrix:
|
|
11
|
+
python-version: ["3.10", "3.11", "3.12"]
|
|
12
|
+
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v3
|
|
15
|
+
|
|
16
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
17
|
+
uses: actions/setup-python@v3
|
|
18
|
+
with:
|
|
19
|
+
python-version: ${{ matrix.python-version }}
|
|
20
|
+
|
|
21
|
+
- name: Upgrade pip
|
|
22
|
+
run: python -m pip install --upgrade pip
|
|
23
|
+
|
|
24
|
+
- name: Install Tox
|
|
25
|
+
run: pip install tox
|
|
26
|
+
|
|
27
|
+
- name: Run lint
|
|
28
|
+
run: tox -e lint
|
|
29
|
+
|
|
30
|
+
- name: Run test
|
|
31
|
+
run: tox -e test
|
|
32
|
+
|
|
33
|
+
- name: Run build
|
|
34
|
+
run: tox -e build
|
|
35
|
+
|
|
36
|
+
deploy-docs:
|
|
37
|
+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
|
|
38
|
+
runs-on: ubuntu-latest
|
|
39
|
+
needs: build
|
|
40
|
+
permissions:
|
|
41
|
+
contents: write
|
|
42
|
+
pages: write
|
|
43
|
+
environment:
|
|
44
|
+
name: github-pages
|
|
45
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
|
46
|
+
steps:
|
|
47
|
+
- name: Checkout
|
|
48
|
+
uses: actions/checkout@v4
|
|
49
|
+
|
|
50
|
+
- name: Setup Pages
|
|
51
|
+
uses: actions/configure-pages@v4
|
|
52
|
+
|
|
53
|
+
- name: Upgrade pip
|
|
54
|
+
run: python -m pip install --upgrade pip
|
|
55
|
+
|
|
56
|
+
- name: Install Tox
|
|
57
|
+
run: pip install tox
|
|
58
|
+
|
|
59
|
+
- name: Build Doc
|
|
60
|
+
run: tox -e doc
|
|
61
|
+
|
|
62
|
+
- name: Deploy to GitHub Pages
|
|
63
|
+
uses: peaceiris/actions-gh-pages@v3
|
|
64
|
+
with:
|
|
65
|
+
publish_branch: gh-pages
|
|
66
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
67
|
+
publish_dir: docs/_build/html
|
|
68
|
+
force_orphan: true
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/Programming Language :: Python :: 3.10
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py,cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# poetry
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
102
|
+
#poetry.lock
|
|
103
|
+
|
|
104
|
+
# pdm
|
|
105
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
106
|
+
#pdm.lock
|
|
107
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
108
|
+
# in version control.
|
|
109
|
+
# https://pdm.fming.dev/#use-with-ide
|
|
110
|
+
.pdm.toml
|
|
111
|
+
|
|
112
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
113
|
+
__pypackages__/
|
|
114
|
+
|
|
115
|
+
# Celery stuff
|
|
116
|
+
celerybeat-schedule
|
|
117
|
+
celerybeat.pid
|
|
118
|
+
|
|
119
|
+
# SageMath parsed files
|
|
120
|
+
*.sage.py
|
|
121
|
+
|
|
122
|
+
# Environments
|
|
123
|
+
.env
|
|
124
|
+
.venv
|
|
125
|
+
env/
|
|
126
|
+
venv/
|
|
127
|
+
ENV/
|
|
128
|
+
env.bak/
|
|
129
|
+
venv.bak/
|
|
130
|
+
|
|
131
|
+
# Spyder project settings
|
|
132
|
+
.spyderproject
|
|
133
|
+
.spyproject
|
|
134
|
+
|
|
135
|
+
# Rope project settings
|
|
136
|
+
.ropeproject
|
|
137
|
+
|
|
138
|
+
# mkdocs documentation
|
|
139
|
+
/site
|
|
140
|
+
|
|
141
|
+
# mypy
|
|
142
|
+
.mypy_cache/
|
|
143
|
+
.dmypy.json
|
|
144
|
+
dmypy.json
|
|
145
|
+
|
|
146
|
+
# Pyre type checker
|
|
147
|
+
.pyre/
|
|
148
|
+
|
|
149
|
+
# pytype static type analyzer
|
|
150
|
+
.pytype/
|
|
151
|
+
|
|
152
|
+
# Cython debug symbols
|
|
153
|
+
cython_debug/
|
|
154
|
+
|
|
155
|
+
# PyCharm
|
|
156
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
157
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
158
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
159
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
160
|
+
.idea/
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
[FORMAT]
|
|
2
|
+
max-line-length=180
|
|
3
|
+
|
|
4
|
+
[MASTER]
|
|
5
|
+
ignore-paths=src/nasdaq_protocols/_version.py
|
|
6
|
+
disable=
|
|
7
|
+
C0114, #missing-module-docstring
|
|
8
|
+
C0115, #missing-class-docstring
|
|
9
|
+
C0116, #missing-function-docstring
|
|
10
|
+
W0223, #abstract-method
|
|
11
|
+
E1101, #no-member
|
|
12
|
+
R0903, #too-few-public-methods
|
|
13
|
+
R0902, #too-many-instance-attributes
|
|
14
|
+
W0707, #too-many-statements
|
|
15
|
+
R0801, #similarities
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: nasdaq-protocols
|
|
3
|
+
Version: 0.0.1a1
|
|
4
|
+
Summary: Nasdaq protocols python library
|
|
5
|
+
License: MIT License
|
|
6
|
+
===========
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2024 Nasdaq
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
in the Software without restriction, including without limitation the rights
|
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in all
|
|
18
|
+
copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
+
SOFTWARE.
|
|
27
|
+
|
|
28
|
+
Classifier: Development Status :: 3 - Alpha
|
|
29
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
30
|
+
Requires-Python: >=3.10
|
|
31
|
+
Requires-Dist: attrs>=23.1
|
|
32
|
+
Requires-Dist: chevron>=0.14.0
|
|
33
|
+
Requires-Dist: click>=8.1
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
Nasdaq Protocols Python Library
|
|
2
|
+
===============================
|
|
3
|
+
|
|
4
|
+
.. toctree::
|
|
5
|
+
:maxdepth: 1
|
|
6
|
+
:caption: Contents:
|
|
7
|
+
|
|
8
|
+
docs/install
|
|
9
|
+
docs/user_guide
|
|
10
|
+
docs/developer_guide
|
|
11
|
+
LICENSE
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
Introduction
|
|
15
|
+
------------
|
|
16
|
+
This library provides a Python implementation of the Nasdaq protocols and FIX protocol.
|
|
17
|
+
|
|
18
|
+
Currently, the library supports the following protocols:
|
|
19
|
+
1. SOUP
|
|
20
|
+
|
|
21
|
+
Following protocols are planned to be implemented in this repository:
|
|
22
|
+
1. OUCH
|
|
23
|
+
2. ITCH
|
|
24
|
+
3. FIX
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
Indices and tables
|
|
28
|
+
==================
|
|
29
|
+
|
|
30
|
+
* :ref:`genindex`
|
|
31
|
+
* :ref:`modindex`
|
|
32
|
+
* :ref:`search`
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
===========
|
|
3
|
+
|
|
4
|
+
Copyright (c) 2024 Nasdaq
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
SOFTWARE.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Minimal makefile for Sphinx documentation
|
|
2
|
+
#
|
|
3
|
+
|
|
4
|
+
# You can set these variables from the command line, and also
|
|
5
|
+
# from the environment for the first two.
|
|
6
|
+
SPHINXOPTS ?=
|
|
7
|
+
SPHINXBUILD ?= sphinx-build
|
|
8
|
+
SOURCEDIR = .
|
|
9
|
+
BUILDDIR = _build
|
|
10
|
+
|
|
11
|
+
# Put it first so that "make" without argument is like "make help".
|
|
12
|
+
help:
|
|
13
|
+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
14
|
+
|
|
15
|
+
.PHONY: help Makefile
|
|
16
|
+
|
|
17
|
+
# Catch-all target: route all unknown targets to Sphinx using the new
|
|
18
|
+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
|
19
|
+
%: Makefile
|
|
20
|
+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Common api reference
|
|
2
|
+
====================
|
|
3
|
+
|
|
4
|
+
.. automodule:: nasdaq_protocols.common.message_queue
|
|
5
|
+
|
|
6
|
+
.. automodule:: nasdaq_protocols.common.session
|
|
7
|
+
|
|
8
|
+
.. automodule:: nasdaq_protocols.common.types
|
|
9
|
+
|
|
10
|
+
.. automodule:: nasdaq_protocols.common.utils
|
|
11
|
+
|
|
12
|
+
.. automodule:: nasdaq_protocols.common.message.types
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.. _api-reference-itch:
|
|
2
|
+
ITCH API Reference
|
|
3
|
+
==================
|
|
4
|
+
|
|
5
|
+
Itch
|
|
6
|
+
----
|
|
7
|
+
.. automodule:: nasdaq_protocols.itch
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Itch Session
|
|
11
|
+
^^^^^^^^^^^^
|
|
12
|
+
.. autoclass:: nasdaq_protocols.itch.session.ItchSessionId
|
|
13
|
+
:show-inheritance: True
|
|
14
|
+
|
|
15
|
+
.. autoclass:: nasdaq_protocols.itch.session.ClientSession
|
|
16
|
+
:show-inheritance: True
|
|
17
|
+
:undoc-members: ['send_heartbeat']
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
Itch Messages
|
|
21
|
+
^^^^^^^^^^^^^
|
|
22
|
+
.. automodule:: nasdaq_protocols.itch.core
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.. _api-reference-ouch:
|
|
2
|
+
OUCH API Reference
|
|
3
|
+
==================
|
|
4
|
+
|
|
5
|
+
Ouch
|
|
6
|
+
----
|
|
7
|
+
.. automodule:: nasdaq_protocols.ouch
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Ouch Session
|
|
11
|
+
^^^^^^^^^^^^
|
|
12
|
+
.. autoclass:: nasdaq_protocols.ouch.session.OuchSessionId
|
|
13
|
+
:show-inheritance: True
|
|
14
|
+
|
|
15
|
+
.. autoclass:: nasdaq_protocols.ouch.session.ClientSession
|
|
16
|
+
:show-inheritance: True
|
|
17
|
+
:undoc-members: ['send_heartbeat']
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
Ouch Messages
|
|
21
|
+
^^^^^^^^^^^^^
|
|
22
|
+
.. automodule:: nasdaq_protocols.ouch.core
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.. _api-reference-soup:
|
|
2
|
+
SOUP API Reference
|
|
3
|
+
==================
|
|
4
|
+
|
|
5
|
+
Soup
|
|
6
|
+
----
|
|
7
|
+
.. automodule:: nasdaq_protocols.soup
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Soup Session
|
|
11
|
+
^^^^^^^^^^^^
|
|
12
|
+
.. autoclass:: nasdaq_protocols.soup.session.SoupSessionId
|
|
13
|
+
:show-inheritance: True
|
|
14
|
+
|
|
15
|
+
.. autoclass:: nasdaq_protocols.soup.session.SoupClientSession
|
|
16
|
+
:show-inheritance: True
|
|
17
|
+
:undoc-members: ['send_heartbeat']
|
|
18
|
+
|
|
19
|
+
.. autoclass:: nasdaq_protocols.soup.session.SoupServerSession
|
|
20
|
+
:show-inheritance: True
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
Soup Messages
|
|
24
|
+
^^^^^^^^^^^^^
|
|
25
|
+
.. automodule:: nasdaq_protocols.soup.core
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import sys
|
|
3
|
+
sys.path.insert(0, os.path.abspath('../src'))
|
|
4
|
+
|
|
5
|
+
# Configuration file for the Sphinx documentation builder.
|
|
6
|
+
#
|
|
7
|
+
# For the full list of built-in configuration values, see the documentation:
|
|
8
|
+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
|
|
9
|
+
|
|
10
|
+
# -- Project information -----------------------------------------------------
|
|
11
|
+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
|
|
12
|
+
|
|
13
|
+
project = 'Nasdaq Protocols Python Library'
|
|
14
|
+
copyright = 'Copyright (c) 2024 Nasdaq'
|
|
15
|
+
author = 'Sam Daniel Thangarajan'
|
|
16
|
+
release = '0.0.1'
|
|
17
|
+
|
|
18
|
+
# -- General configuration ---------------------------------------------------
|
|
19
|
+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
|
|
20
|
+
# https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html
|
|
21
|
+
extensions = ['sphinx.ext.autodoc',]
|
|
22
|
+
templates_path = ['_templates']
|
|
23
|
+
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
autodoc_member_order = 'bysource'
|
|
27
|
+
autodoc_default_options = {
|
|
28
|
+
'members': True,
|
|
29
|
+
'member-order': 'bysource',
|
|
30
|
+
'show-inheritance': True,
|
|
31
|
+
}
|
|
32
|
+
autodoc_typehints = 'description'
|
|
33
|
+
|
|
34
|
+
# -- Options for HTML output -------------------------------------------------
|
|
35
|
+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
|
|
36
|
+
# https://www.sphinx-doc.org/en/master/usage/theming.html [themes]
|
|
37
|
+
html_theme = 'agogo'
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
Developer's Guide
|
|
2
|
+
=================
|
|
3
|
+
|
|
4
|
+
This guide is intended for developers who want to contribute to the
|
|
5
|
+
development of the `nasdaq-protocols` library.
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Guidelines
|
|
9
|
+
----------
|
|
10
|
+
Before merging to main, please ensure that the following guidelines are met:
|
|
11
|
+
|
|
12
|
+
- All existing tests are passing.
|
|
13
|
+
- New tests are added when needed.
|
|
14
|
+
- Pylint reports no errors, 10/10
|
|
15
|
+
- Code is documented and docstrings are added when needed.
|
|
16
|
+
- Documentation is included in the rst files.
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
Building
|
|
20
|
+
________
|
|
21
|
+
.. code-block:: console
|
|
22
|
+
|
|
23
|
+
$ tox r
|
|
24
|
+
|
|
25
|
+
`tox r` will execute all of the following.
|
|
26
|
+
|
|
27
|
+
- `tox -e lint` - Runs linter and validates the code
|
|
28
|
+
- `tox -e test` - Runs the pytest test cases
|
|
29
|
+
- `tox -e build` - Builds the package sdist and wheel
|
|
30
|
+
- `tox -e doc` - Builds the documentation
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
FAQ
|
|
34
|
+
___
|
|
35
|
+
- **Why is pycharm debugger not stopping at breakpoints?**
|
|
36
|
+
Disable the coverage statement from pytest.ini. Refer https://stackoverflow.com/a/56235965/4248850
|
|
37
|
+
|
|
38
|
+
- **Why is the coverage not reported in pycharm?**
|
|
39
|
+
Disable the coverage statement from pytest.ini
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
.. nasdaq-protocols documentation master file, created by
|
|
2
|
+
sphinx-quickstart on Thu Jan 4 23:40:15 2024.
|
|
3
|
+
You can adapt this file completely to your liking, but it should at least
|
|
4
|
+
contain the root `toctree` directive.
|
|
5
|
+
|
|
6
|
+
Welcome to nasdaq-protocols's documentation!
|
|
7
|
+
============================================
|
|
8
|
+
|
|
9
|
+
.. automodule:: nasdaq_protocols
|
|
10
|
+
|
|
11
|
+
nasdaq-protocols contains client side implementations of the various
|
|
12
|
+
publicly available protocols used by Nasdaq ecosystem.
|
|
13
|
+
|
|
14
|
+
This package contains only the core implementations of the protocols like message
|
|
15
|
+
serialization, deserialization, message validation and session handling. It does not
|
|
16
|
+
contain any actual messages that are exchanged between the client and the server.
|
|
17
|
+
|
|
18
|
+
The actual messages are application specific and hence has to be defined by the
|
|
19
|
+
user of this library. The user has to define the messages as per the protocol specification
|
|
20
|
+
by extending the base message class defined in the package.
|
|
21
|
+
|
|
22
|
+
Refer to the :ref:`user-guide`. for more information on how to define the messages and use this package.
|
|
23
|
+
|
|
24
|
+
.. toctree::
|
|
25
|
+
:maxdepth: 1
|
|
26
|
+
:caption: Contents:
|
|
27
|
+
|
|
28
|
+
user_guide
|
|
29
|
+
api_reference
|
|
30
|
+
developer_guide
|
|
31
|
+
LICENSE
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
Indices and tables
|
|
35
|
+
==================
|
|
36
|
+
|
|
37
|
+
* :ref:`genindex`
|
|
38
|
+
* :ref:`modindex`
|
|
39
|
+
* :ref:`search`
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@ECHO OFF
|
|
2
|
+
|
|
3
|
+
pushd %~dp0
|
|
4
|
+
|
|
5
|
+
REM Command file for Sphinx documentation
|
|
6
|
+
|
|
7
|
+
if "%SPHINXBUILD%" == "" (
|
|
8
|
+
set SPHINXBUILD=sphinx-build
|
|
9
|
+
)
|
|
10
|
+
set SOURCEDIR=.
|
|
11
|
+
set BUILDDIR=_build
|
|
12
|
+
|
|
13
|
+
%SPHINXBUILD% >NUL 2>NUL
|
|
14
|
+
if errorlevel 9009 (
|
|
15
|
+
echo.
|
|
16
|
+
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
|
|
17
|
+
echo.installed, then set the SPHINXBUILD environment variable to point
|
|
18
|
+
echo.to the full path of the 'sphinx-build' executable. Alternatively you
|
|
19
|
+
echo.may add the Sphinx directory to PATH.
|
|
20
|
+
echo.
|
|
21
|
+
echo.If you don't have Sphinx installed, grab it from
|
|
22
|
+
echo.https://www.sphinx-doc.org/
|
|
23
|
+
exit /b 1
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
if "%1" == "" goto help
|
|
27
|
+
|
|
28
|
+
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
|
|
29
|
+
goto end
|
|
30
|
+
|
|
31
|
+
:help
|
|
32
|
+
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
|
|
33
|
+
|
|
34
|
+
:end
|
|
35
|
+
popd
|