Skip to main content

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.

Once you have checked out the project, you can set up a local virtual environment and install dependencies as follows:

  1. Create or reuse a virtual environment with Python 3.11 (recommended):
uv venv -p 3.11
  1. Activate the virtual environment (example for bash/zsh):
source .venv/bin/activate
  1. Install the project and all development dependencies (tests, docs, etc.):
uv sync --all-extras --all-groups

Notes:

  • uv sync reads 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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hg_oap-0.3.3.tar.gz (124.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hg_oap-0.3.3-py3-none-any.whl (70.3 kB view details)

Uploaded Python 3

File details

Details for the file hg_oap-0.3.3.tar.gz.

File metadata

  • Download URL: hg_oap-0.3.3.tar.gz
  • Upload date:
  • Size: 124.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for hg_oap-0.3.3.tar.gz
Algorithm Hash digest
SHA256 c3254f421fc21a6d699e010d4e692364f40de38b55c81571f35172b698fd314a
MD5 c37bdff086002ca27af4579e654897f1
BLAKE2b-256 990ae1981b5d61db3639a24803a837dce8932cfd83ff0efbd7cd1ceb2cd0dc9e

See more details on using hashes here.

Provenance

The following attestation bundles were made for hg_oap-0.3.3.tar.gz:

Publisher: deploy-on-tag.yml on hhenson/hg_oap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hg_oap-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: hg_oap-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 70.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for hg_oap-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9d40e146434d87fe17a0b92ef0874c26e7d4d93c657efab94eea49e4f399abea
MD5 aa47b8c8897704b7a867a9d78cddf399
BLAKE2b-256 b9c32fc5c893060b4adaf19b78b8595e6909d6d69b722b5df00e75e26ea046cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for hg_oap-0.3.3-py3-none-any.whl:

Publisher: deploy-on-tag.yml on hhenson/hg_oap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.3.3 This release

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

0.1.14

2 files

0.1.13

2 files

0.1.12

2 files

0.1.11

2 files

0.1.10

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page