A library to faciliate building order and pricing strategies
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hg_oap-0.1.14.tar.gz.
File metadata
- Download URL: hg_oap-0.1.14.tar.gz
- Upload date:
- Size: 138.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e23f3790b7b54cae804ef7694d737f71c3396b94689ee1806f2ae5f4537ca7d
|
|
| MD5 |
85dd9635812843e589b665970429981a
|
|
| BLAKE2b-256 |
323408a533e4a4e0537ee2225e144e06789bc541da27512a886ad37ec78b7450
|
Provenance
The following attestation bundles were made for hg_oap-0.1.14.tar.gz:
Publisher:
deploy-on-tag.yml on hhenson/hg_oap
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hg_oap-0.1.14.tar.gz -
Subject digest:
8e23f3790b7b54cae804ef7694d737f71c3396b94689ee1806f2ae5f4537ca7d - Sigstore transparency entry: 756634168
- Sigstore integration time:
-
Permalink:
hhenson/hg_oap@5de55d44cccffb1fb14bdaa00db6ead8d386ec2b -
Branch / Tag:
refs/tags/v_0.1.14 - Owner: https://github.com/hhenson
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy-on-tag.yml@5de55d44cccffb1fb14bdaa00db6ead8d386ec2b -
Trigger Event:
push
-
Statement type:
File details
Details for the file hg_oap-0.1.14-py3-none-any.whl.
File metadata
- Download URL: hg_oap-0.1.14-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.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
865e8adc039a57f567053263c85870fbbd4c325396da6a613676bfdce5b22f82
|
|
| MD5 |
0cc149fa75fc1bcb5bc1013582a5d877
|
|
| BLAKE2b-256 |
64881b332b4d0385ac5271cd74e78c753e2f5084e9415dbfd0032431b500f870
|
Provenance
The following attestation bundles were made for hg_oap-0.1.14-py3-none-any.whl:
Publisher:
deploy-on-tag.yml on hhenson/hg_oap
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hg_oap-0.1.14-py3-none-any.whl -
Subject digest:
865e8adc039a57f567053263c85870fbbd4c325396da6a613676bfdce5b22f82 - Sigstore transparency entry: 756634190
- Sigstore integration time:
-
Permalink:
hhenson/hg_oap@5de55d44cccffb1fb14bdaa00db6ead8d386ec2b -
Branch / Tag:
refs/tags/v_0.1.14 - Owner: https://github.com/hhenson
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy-on-tag.yml@5de55d44cccffb1fb14bdaa00db6ead8d386ec2b -
Trigger Event:
push
-
Statement type: