├── .codecov.yml ├── .flake8 ├── .github └── workflows │ ├── docs.yml │ ├── integration.yml │ └── main.yml ├── .gitignore ├── .pydocstyle ├── .pylintrc ├── .vscode └── settings.json ├── LICENSE ├── Makefile ├── Pipfile ├── Pipfile.lock ├── README.md ├── docker-compose.yml ├── docs ├── conf.py ├── index.rst ├── instructions.rst └── market.rst ├── notebooks ├── LocalDex.ipynb └── market.ipynb ├── pyserum ├── __init__.py ├── _layouts │ ├── __init__.py │ ├── account_flags.py │ ├── instructions.py │ ├── market.py │ ├── open_orders.py │ ├── queue.py │ └── slab.py ├── async_connection.py ├── async_open_orders_account.py ├── async_utils.py ├── connection.py ├── enums.py ├── instructions.py ├── market │ ├── __init__.py │ ├── _internal │ │ ├── __init__.py │ │ ├── queue.py │ │ └── slab.py │ ├── async_market.py │ ├── core.py │ ├── market.py │ ├── orderbook.py │ ├── state.py │ └── types.py ├── open_orders_account.py ├── py.typed └── utils.py ├── pytest.ini ├── scripts ├── bootstrap_dex.sh ├── clean_up.sh ├── run_async_int_tests.sh ├── run_coverage.sh └── run_int_tests.sh ├── setup.py └── tests ├── __init__.py ├── binary ├── ask_order_binary.bin ├── event_queue_binary.bin └── open_order_account_binary.bin ├── binary_file_path.py ├── conftest.py ├── integration ├── __init__.py ├── test_async_connection.py ├── test_async_market.py ├── test_bootstrap.py ├── test_connection.py └── test_market.py ├── test_account_flags_layout.py ├── test_instruction_layouts.py ├── test_instructions.py ├── test_market.py ├── test_open_orders_account.py ├── test_queue.py └── test_slab.py /.codecov.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/.codecov.yml -------------------------------------------------------------------------------- /.flake8: -------------------------------------------------------------------------------- 1 | [flake8] 2 | max-line-length=120 3 | -------------------------------------------------------------------------------- /.github/workflows/docs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/.github/workflows/docs.yml -------------------------------------------------------------------------------- /.github/workflows/integration.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/.github/workflows/integration.yml -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/.gitignore -------------------------------------------------------------------------------- /.pydocstyle: -------------------------------------------------------------------------------- 1 | [pydocstyle] 2 | ignore=D401,D203,D213 3 | -------------------------------------------------------------------------------- /.pylintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/.pylintrc -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/Makefile -------------------------------------------------------------------------------- /Pipfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/Pipfile -------------------------------------------------------------------------------- /Pipfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/Pipfile.lock -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/README.md -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /docs/conf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/docs/conf.py -------------------------------------------------------------------------------- /docs/index.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/docs/index.rst -------------------------------------------------------------------------------- /docs/instructions.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/docs/instructions.rst -------------------------------------------------------------------------------- /docs/market.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/docs/market.rst -------------------------------------------------------------------------------- /notebooks/LocalDex.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/notebooks/LocalDex.ipynb -------------------------------------------------------------------------------- /notebooks/market.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/notebooks/market.ipynb -------------------------------------------------------------------------------- /pyserum/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/pyserum/__init__.py -------------------------------------------------------------------------------- /pyserum/_layouts/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pyserum/_layouts/account_flags.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/pyserum/_layouts/account_flags.py -------------------------------------------------------------------------------- /pyserum/_layouts/instructions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/pyserum/_layouts/instructions.py -------------------------------------------------------------------------------- /pyserum/_layouts/market.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/pyserum/_layouts/market.py -------------------------------------------------------------------------------- /pyserum/_layouts/open_orders.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/pyserum/_layouts/open_orders.py -------------------------------------------------------------------------------- /pyserum/_layouts/queue.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/pyserum/_layouts/queue.py -------------------------------------------------------------------------------- /pyserum/_layouts/slab.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/pyserum/_layouts/slab.py -------------------------------------------------------------------------------- /pyserum/async_connection.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/pyserum/async_connection.py -------------------------------------------------------------------------------- /pyserum/async_open_orders_account.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/pyserum/async_open_orders_account.py -------------------------------------------------------------------------------- /pyserum/async_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/pyserum/async_utils.py -------------------------------------------------------------------------------- /pyserum/connection.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/pyserum/connection.py -------------------------------------------------------------------------------- /pyserum/enums.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/pyserum/enums.py -------------------------------------------------------------------------------- /pyserum/instructions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/pyserum/instructions.py -------------------------------------------------------------------------------- /pyserum/market/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/pyserum/market/__init__.py -------------------------------------------------------------------------------- /pyserum/market/_internal/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pyserum/market/_internal/queue.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/pyserum/market/_internal/queue.py -------------------------------------------------------------------------------- /pyserum/market/_internal/slab.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/pyserum/market/_internal/slab.py -------------------------------------------------------------------------------- /pyserum/market/async_market.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/pyserum/market/async_market.py -------------------------------------------------------------------------------- /pyserum/market/core.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/pyserum/market/core.py -------------------------------------------------------------------------------- /pyserum/market/market.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/pyserum/market/market.py -------------------------------------------------------------------------------- /pyserum/market/orderbook.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/pyserum/market/orderbook.py -------------------------------------------------------------------------------- /pyserum/market/state.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/pyserum/market/state.py -------------------------------------------------------------------------------- /pyserum/market/types.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/pyserum/market/types.py -------------------------------------------------------------------------------- /pyserum/open_orders_account.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/pyserum/open_orders_account.py -------------------------------------------------------------------------------- /pyserum/py.typed: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pyserum/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/pyserum/utils.py -------------------------------------------------------------------------------- /pytest.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/pytest.ini -------------------------------------------------------------------------------- /scripts/bootstrap_dex.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/scripts/bootstrap_dex.sh -------------------------------------------------------------------------------- /scripts/clean_up.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/scripts/clean_up.sh -------------------------------------------------------------------------------- /scripts/run_async_int_tests.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/scripts/run_async_int_tests.sh -------------------------------------------------------------------------------- /scripts/run_coverage.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/scripts/run_coverage.sh -------------------------------------------------------------------------------- /scripts/run_int_tests.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/scripts/run_int_tests.sh -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/setup.py -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | """Tests for Pyserum.""" 2 | -------------------------------------------------------------------------------- /tests/binary/ask_order_binary.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/tests/binary/ask_order_binary.bin -------------------------------------------------------------------------------- /tests/binary/event_queue_binary.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/tests/binary/event_queue_binary.bin -------------------------------------------------------------------------------- /tests/binary/open_order_account_binary.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/tests/binary/open_order_account_binary.bin -------------------------------------------------------------------------------- /tests/binary_file_path.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/tests/binary_file_path.py -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/tests/conftest.py -------------------------------------------------------------------------------- /tests/integration/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/integration/test_async_connection.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/tests/integration/test_async_connection.py -------------------------------------------------------------------------------- /tests/integration/test_async_market.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/tests/integration/test_async_market.py -------------------------------------------------------------------------------- /tests/integration/test_bootstrap.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/tests/integration/test_bootstrap.py -------------------------------------------------------------------------------- /tests/integration/test_connection.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/tests/integration/test_connection.py -------------------------------------------------------------------------------- /tests/integration/test_market.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/tests/integration/test_market.py -------------------------------------------------------------------------------- /tests/test_account_flags_layout.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/tests/test_account_flags_layout.py -------------------------------------------------------------------------------- /tests/test_instruction_layouts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/tests/test_instruction_layouts.py -------------------------------------------------------------------------------- /tests/test_instructions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/tests/test_instructions.py -------------------------------------------------------------------------------- /tests/test_market.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/tests/test_market.py -------------------------------------------------------------------------------- /tests/test_open_orders_account.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/tests/test_open_orders_account.py -------------------------------------------------------------------------------- /tests/test_queue.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/tests/test_queue.py -------------------------------------------------------------------------------- /tests/test_slab.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serum-community/pyserum/HEAD/tests/test_slab.py --------------------------------------------------------------------------------