Skip to content
Skip to content
Modules Finance

Holoscan Finance#

Holoscan Finance decodes FIX Simple Binary Encoding (SBE) market data, builds event-time quote bars, and computes rolling volatility, covariance, and correlation on the GPU, with a CPU cross-check of every validated result. Run the included equity dashboard or benchmark on synthetic data with no network card, or import the operators into your own Holoscan application.

Package info#

Packageholoscan-finance, installed from a source checkout (not yet on PyPI)
GitHub repositorynvidia-holoscan/holoscan-finance
Version1.0.0
Python namespaceholoscan.finance (operators: holoscan_finance.operators)
Holoscan SDK5.0.0 or later, tested with 5.0.0
CUDA13.x for GPU paths; CPU-only tools run without a GPU
Platformsx86_64, aarch64
LanguagePython 3.12 or later
LicenseApache-2.0
MaintainersBruce Hashemian and Jake Goldberg, NVIDIA
Debian packageNot published
PyPI packageNot published

Operators#

The module provides ten Holoscan SDK 5 operators. Each one is a thin adapter around a library processor that is tested without Holoscan.

Ingest:

  • GpuSbeSourceOp receives packets with DAQIRI GPUDirect into GPU memory, then gathers and decodes them on the GPU.
  • GpuSbeReplaySourceOp replays packet captures from GPU memory through the same path, with no NIC.
  • UdpPacketSourceOp receives packets on a kernel UDP socket, as a host baseline.
  • DaqiriPacketSourceOp receives packets with DAQIRI into pinned host memory, as a host baseline.
  • SbeDecodeOp is a Python reference decoder for host packet batches.

Analytics:

  • QuoteBarsOp builds event-time quote bars on the GPU or with NumPy, and keeps rolling windows of returns.
  • RollingRiskOp computes the volatility, covariance, and correlation of the newest window at a bounded rate.
  • RiskCrossCheckOp recomputes validated GPU windows on the CPU and checks that they agree.

Output:

  • CallbackSinkOp passes every item to a Python callable on the producer's lane.
  • RiskSummaryOp produces a compact JSON risk summary for export over holomq.

The operator catalog lists each operator's ports, parameters, and recommended edges.

Quick Start#

Installation#

This module is not published as a Debian package.

This module is not yet published on PyPI. Install from a source checkout into an environment that has Holoscan SDK 5.0 available. The SDK is not a pip dependency of this module.

Bash
git clone https://github.com/nvidia-holoscan/holoscan-finance.git
cd holoscan-finance
python3 -m pip install -c requirements-dev.txt ".[gpu,analytics]"

Installing the module does not install the Holoscan SDK.

Run the included applications in the module's SDK 5.0 container, without installing anything on the host except the CLI:

Bash
git clone https://github.com/nvidia-holoscan/holoscan-finance.git
cd holoscan-finance
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install -r requirements-cli.txt
holoscan run equity_analytics replay

The first run downloads the SDK container, nvcr.io/nvidia/clara-holoscan/holoscan:v5.0.0-cuda13, and installs dependencies.

No Yocto recipe is provided.

Run the examples#

Two applications ship with the module. Both run on synthetic data:

  • holoscan run equity_analytics replay (default) replays a synthetic market day from GPU memory and serves a live dashboard at http://localhost:8080/. Each run also compares the GPU results with a CPU recomputation.
  • holoscan run market_data_bench smoke generates 50,000 packets, checks GPU quote bars against CPU references, checks for packet loss, and writes build/market_data_bench/bench_smoke.json. A nonzero exit status means a validation gate failed.

Use holoscan modes equity_analytics or holoscan modes market_data_bench to list the other presets, such as UDP input and the finite replay of a full day.

The dashboard binds to localhost and has no authentication. Before you expose it to a network, read the security policy.

Example usage#

Import the operators through the module alias in an application that runs in the SDK 5.0 environment:

Python
from holoscan.finance.operators import QuoteBarsOp, RollingRiskOp

The architecture guide shows how the examples connect these operators, and the equity_analytics and market_data_bench guides show complete graphs.

Inputs#

Input Requirements and behavior
GPU replay Generated packet captures are staged in GPU memory. No NIC or external sender is needed.
UDP A kernel socket receives packets. Decode and quote bars run on the CPU. Choose GPU analytics with a CPU cross-check (udp) or CPU analytics only (udp_cpu).
DAQIRI / GPUDirect A configured ConnectX NIC receives into pinned host memory or directly into GPU memory. Follow the IGX Thor deployment guide.

Inputs use the module's FIX SBE schema, with one SBE message per UDP datagram. Arbitrary exchange feeds and packet captures need adaptation to this format.

Examples#

Example What it shows
equity_analytics A live equity dashboard with GPU rolling risk and a CPU cross-check, from synthetic replay, UDP, or DAQIRI input
market_data_bench A finite GPU replay benchmark with correctness checks, packet-loss accounting, and replay-lag measurement

Performance gates in the validation guide are targets for validation. They are not guaranteed performance on your hardware.

Limits#

The examples use synthetic data with live computation. They are demonstrations and validation tools, not production risk controls. Generated quotes do not represent the National Best Bid and Offer (NBBO). With 60 returns, the covariance matrix has rank at most 59. Correlations are descriptive, and annualized volatility is not a forecast.

This module is a technical reference, not a production risk engine or investment, trading, accounting, regulatory, or risk-management advice.

All modules