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.1.tar.gz (124.1 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.1-py3-none-any.whl (70.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hg_oap-0.3.1.tar.gz
Algorithm Hash digest
SHA256 b4fb9489a5c036094c78e5a6786bc5b15ce6173729ef01421ce5ddd79a24ce9b
MD5 f4facb3e5647428d06646368f43331d4
BLAKE2b-256 a1f1e635d239e81344a0e162dba53f430ebe9802e28b22e6e9cd1d71ab481664

See more details on using hashes here.

Provenance

The following attestation bundles were made for hg_oap-0.3.1.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.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for hg_oap-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fbcf61703eec8e34f51240e14acc1a7d87a0ca34293bcc57f4e7cf3a40ea8fc9
MD5 4255787ece0000e066d23ae5e953b62e
BLAKE2b-256 a290cf5296878f2201fec7dfa93c6905d3b19df5cc63454ac4dd01e05197525d

See more details on using hashes here.

Provenance

The following attestation bundles were made for hg_oap-0.3.1-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

0.3.3

2 files

0.3.2

2 files

This release

0.3.1 This release

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