Environment And Flags¶
This page centralizes the user-facing environment variables, secret-loading variables, dashboard launch variables, and build flags used across RegimeFlow docs, examples, and workflows.
Runtime Environment¶
Python From The Repo¶
PYTHONPATH=python:build/libUsed when running Python examples directly from a source checkout.PYTHONPATH=build/lib:build/python:pythonUsed when Python bindings and helper modules are both needed from the local build tree.
Live Dashboard Launch¶
HOSTBind address fortools/launch_live_dashboard_prod.shand related launch scripts.PORTBind port for the dashboard server.
Alpaca¶
ALPACA_API_KEYAlpaca trading API key.ALPACA_API_SECRETAlpaca trading API secret.ALPACA_PAPER_BASE_URLPaper trading REST base URL. Typical value:https://paper-api.alpaca.marketsALPACA_STREAM_URLMarket-data stream URL. Typical equity paper/demo value:wss://stream.data.alpaca.markets/v2/iex
Mounted-secret variants:
ALPACA_API_KEY_FILEALPACA_API_SECRET_FILE
Binance¶
BINANCE_API_KEYBinance API key expected by the current live adapter.BINANCE_SECRET_KEYBinance secret key expected by the current live adapter.BINANCE_BASE_URLSpot REST base URL. Demo Mode example:https://demo-api.binance.comBINANCE_STREAM_URLSpot market stream URL. Demo Mode example:wss://demo-stream.binance.com/wsBINANCE_RECV_WINDOW_MSOptional recv-window override for signed requests.
Mounted-secret variants:
BINANCE_API_KEY_FILEBINANCE_SECRET_KEY_FILE
Interactive Brokers¶
IB_HOSTTWS or IB Gateway host.IB_PORTTWS or IB Gateway API port.IB_CLIENT_IDAPI client id used for the IB session.
Secret-Manager Overrides¶
These variables override the command name used when resolving secret-manager references:
REGIMEFLOW_VAULT_BINREGIMEFLOW_AWS_BINREGIMEFLOW_GCLOUD_BINREGIMEFLOW_AZ_BIN
They are only needed when the provider CLI is not available under the default executable name.
Example Build Variables¶
These are used by plugin and example builds launched from a source checkout:
REGIMEFLOW_ROOTRepository root used by example/pluginCMakeLists.txt.REGIMEFLOW_BUILDBuild directory used for linking example plugins against locally built RegimeFlow libraries.
Test And CI Variables¶
REGIMEFLOW_TEST_ROOTTest fixture root used by C++ tests.
Build Flags¶
Core Optional Components¶
-DENABLE_OPENSSL=ONEnable TLS and secure WebSocket support.-DENABLE_CURL=ONEnable HTTP-based data sources and clients.-DENABLE_POSTGRES=ONEnable Postgres-backed data sources and live performance sinks.-DENABLE_ZMQ=ONEnable ZeroMQ message-bus support.-DENABLE_REDIS=ONEnable Redis Streams message-bus support.-DENABLE_KAFKA=ONEnable Kafka message-bus support.-DENABLE_IBAPI=ONEnable Interactive Brokers adapter build support.
Developer And Quality Flags¶
-DENABLE_CLANG_TIDY=ONRun clang-tidy during the build.-DENABLE_WERROR=ONTreat warnings as errors.-DENABLE_SANITIZERS=ONEnable sanitizer builds where supported.-DBUILD_TESTS=ONBuild the test suite.-DBUILD_PYTHON_BINDINGS=ONBuild Python bindings.-DREGIMEFLOW_FETCH_DEPS=ONAllow RegimeFlow-managed dependency fetching where the build supports it.
Workflow Trigger Mode¶
Repository workflows are currently configured for:
workflow_dispatch
That means CI, docs, wheels, and publish workflows are manual-trigger only from GitHub Actions.