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.0.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.0-py3-none-any.whl (70.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hg_oap-0.3.0.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.0.tar.gz
Algorithm Hash digest
SHA256 5a4eb1f0170eb63e3bd3ea8f73c58388a9c52c59792f3bd133f12d9040b4a349
MD5 cab7c5d42b3843fc38b3906962fef9ed
BLAKE2b-256 edaccc3ad9e9d6b6e4b9a4d1b27e1634421e392774b524c7cc8bc0286d1f13d3

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: hg_oap-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 70.4 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0648ab7c420b30bff53473f4b38eb18633c53565702993927593e561e8ea98a6
MD5 be3819c4ef0f256812742f66ae107b12
BLAKE2b-256 c4cd520650443532a973212d77fde06c561748aa44f5b16c13613118a64c6d68

See more details on using hashes here.

Provenance

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

This release

0.3.0 This release

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