obook
Python bindings for the orderbook matching engine, over its C ABI, with the standard library only.
pip install obook # Linux x86_64 and aarch64 (glibc 2.28+), macOS 12+ on arm64 and x86_64
From a checkout, make python builds the library into the package and runs the tests.
import obook
with obook.Book() as b:
b.submit(user=1, side=obook.SELL, price=1010, qty=5)
r = b.submit(user=2, side=obook.BUY, price=1012, qty=3)
print(r.status.name, b.events(), b.book())
Prices are integer ticks and quantities integer lots. A refused command is a result
with a Reason, not an exception. The full interface, and how it is tested, is in
docs/PYTHON.md.
Metadata
Release files for obook 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| obook-0.1.0-py3-none-manylinux_2_28_x86_64.whl | Python 3 | none | Linux glibc 2.28+ x86-64 | Details |
| obook-0.1.0-py3-none-manylinux_2_28_aarch64.whl | Python 3 | none | Linux glibc 2.28+ ARM64 | Details |
| obook-0.1.0-py3-none-macosx_12_0_x86_64.whl | Python 3 | none | macOS 12.0+ x86-64 | Details |
| obook-0.1.0-py3-none-macosx_12_0_arm64.whl | Python 3 | none | macOS 12.0+ ARM64 | Details |
Total release size: 6.0 MB
Release files / obook-0.1.0-py3-none-manylinux_2_28_x86_64.whl
| Download URL | obook-0.1.0-py3-none-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | Linux glibc 2.28+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
ac537e890b7888e6369bce23e912f9729bc5e04ab1ab7913c9c8b9871b0164d8
|
|
BLAKE2b-256 checksum How to use checksums |
8a30e43ab0c4f41fa1e32ae7da67fb6ee4c1dab6850f6a59049511ca3da1007d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency logRelease files / obook-0.1.0-py3-none-manylinux_2_28_aarch64.whl
| Download URL | obook-0.1.0-py3-none-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 1.9 MB |
| Tags | Linux glibc 2.28+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
eb9f14fb767da53da69f54f5aaf3b3c1e3179e899ab2aca073b10542c2b914d0
|
|
BLAKE2b-256 checksum How to use checksums |
a84dac1faaa40c9a2f7bda7472ddac18eae7f3d356a0bf87aadb2e4a78b5a21f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency logRelease files / obook-0.1.0-py3-none-macosx_12_0_x86_64.whl
| Download URL | obook-0.1.0-py3-none-macosx_12_0_x86_64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | Python 3 macOS 12.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
a1a4de13e4dddacf178bd17dff81fea01a82222dc84b71c6a5c458bf72c92f4c
|
|
BLAKE2b-256 checksum How to use checksums |
53c73ebf27bdeddf798ff13d44a7e06e7413d6174fb0e3acace5f8e9e91cd202
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency logRelease files / obook-0.1.0-py3-none-macosx_12_0_arm64.whl
| Download URL | obook-0.1.0-py3-none-macosx_12_0_arm64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | Python 3 macOS 12.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
e275ee8c48c03f5029ff96a73d6aaac6f84f7b8a5e43988e30bdde31661c9ebd
|
|
BLAKE2b-256 checksum How to use checksums |
fcc52b9c0ad8a09855e648db9da8494955320fba22bf5c4b3ad5e628ae2b29dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency log