// Minimal EnergiBridge: bridge DeltaMesh primitives to a vendor-agnostic CatOpt representation // This is a tiny, production-friendly adapter skeleton to demonstrate a canonical bridge // and deterministic data-plane mappings for MVP instrumentation. #ifndef ENERGY_BRIDGE_H #define ENERGY_BRIDGE_H #include "LocalMarket.h" #include "SharedSignals.h" #include "PlanDelta.h" // Canonical CatOpt-like object representation typedef struct CatOpt_Object { const char* venue; // venue identifier double inventory; // per-venue inventory proxy double risk_budget; // risk budget allocated to this venue unsigned long version; // per-message version for replayability } CatOpt_Object; // Canonical CatOpt-like signal representation (aggregated signals) typedef struct CatOpt_Signal { double aggregated_greeks; double implied_vol; unsigned long version; } CatOpt_Signal; // Canonical CatOpt-like plan delta representation (routing/hedge plan) typedef struct CatOpt_PlanDelta { double quote; double hedge; unsigned long timestamp; // monotonic timestamp for replay unsigned long version; } CatOpt_PlanDelta; // Map a LocalMarket instance to a CatOpt_Object. This is intentionally simple and side-effect free. void EnergiBridge_map_LocalMarket_to_CatOpt(const LocalMarket* lm, CatOpt_Object* out); #endif