HGraph Orders and Pricing Library
Provides a library, based on the hgraph functional reactive framework to support creating order and pricing logic.
The core components of the library include:
- instruments
- positions
- portfolios
- orders
- pricing
This library is currently very green and is expected to have significant changes.
Development
This project now uses the uv package manager for dependency management and running tasks.
- uv homepage and install instructions: https://docs.astral.sh/uv/
Once you have checked out the project, you can set up a local virtual environment and install dependencies as follows:
- Create or reuse a virtual environment with Python 3.11 (recommended):
uv venv -p 3.11
- Activate the virtual environment (example for bash/zsh):
source .venv/bin/activate
- Install the project and all development dependencies (tests, docs, etc.):
uv sync --all-extras --all-groups
Notes:
uv syncreads pyproject.toml and uv.lock and installs the project in editable mode along with dependencies.- If you only want runtime dependencies, omit
--all-groups. - If you don't need optional extras, omit
--all-extras.
To see where the Python interpreter lives for IDE configuration (e.g., PyCharm), after activating the venv you can run:
which python
PyCharm can be pointed at the .venv interpreter in the project root.
Run Tests
# No Coverage
uv run pytest
# Generate Coverage Report
uv run pytest --cov=hg_oap --cov-report=xml
Metadata
Release files for hg-oap 0.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| hg_oap-0.3.3.tar.gz | 124.2 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hg_oap-0.3.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 194.5 kB
Release files / hg_oap-0.3.3.tar.gz
| Download URL | hg_oap-0.3.3.tar.gz |
|---|---|
| Size | 124.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c3254f421fc21a6d699e010d4e692364f40de38b55c81571f35172b698fd314a
|
|
BLAKE2b-256 checksum How to use checksums |
990ae1981b5d61db3639a24803a837dce8932cfd83ff0efbd7cd1ceb2cd0dc9e
|
| 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 Aug 10, 2026.
Transparency logRelease files / hg_oap-0.3.3-py3-none-any.whl
| Download URL | hg_oap-0.3.3-py3-none-any.whl |
|---|---|
| Size | 70.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9d40e146434d87fe17a0b92ef0874c26e7d4d93c657efab94eea49e4f399abea
|
|
BLAKE2b-256 checksum How to use checksums |
b9c32fc5c893060b4adaf19b78b8595e6909d6d69b722b5df00e75e26ea046cb
|
| 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 Aug 10, 2026.
Transparency logSecurity for hg-oap 0.3.3
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for hg_oap-0.3.3.tar.gz
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 Aug 10, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.