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.2.0.tar.gz (123.0 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.2.0-py3-none-any.whl (70.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hg_oap-0.2.0.tar.gz
  • Upload date:
  • Size: 123.0 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.2.0.tar.gz
Algorithm Hash digest
SHA256 6f89e60f7a5e960a1960d0be4e09da0ac4ad25bfd0cf7459111893a7e05ae14a
MD5 2155d9b481e8ae98b54d53bd71e51c52
BLAKE2b-256 e084c0a5cf40b4ab7a48f5257b558b5b8fe51602a67b35ded7f2e13fda942bce

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: hg_oap-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 70.1 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 517e1ab24ffc95086d9e36a6e17f6a58bc7a25df0e8274c0eaf50a0b663370ba
MD5 a5f3132cba45dca303a0c5cc2da4220c
BLAKE2b-256 e5ad8989f8e116bf49d0828b6c624e3944613d7906e7454612b281430da265b7

See more details on using hashes here.

Provenance

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

0.3.1

2 files

0.3.0

2 files

This release

0.2.0 This release

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