SDK Quickstart
Use the TypeScript SDK to mirror Market Tracker parameters from CI — same metaphors as the home CONFIG panel.
Install
npm install @deploy-engine/sdk (illustrative package name for this template).
// CI gate before promote
import { DeployClient } from "@deploy-engine/sdk";
const client = new DeployClient({ token: process.env.DE_TOKEN });
const ok = await client.policy.check({
volatility: 0.5,
concentration: 0.8,
spread: 0.02
});
if (!ok.withinEnvelope) process.exit(1);
Map HUD → policy
| CONFIG control | SDK field | Typical gate |
|---|---|---|
| Market Volatility | volatility | Freeze if above desk max |
| Capital Concentration | concentration | Book-level cap |
| Execution Spread | spread | Pre-trade guard |
| Liquidity Vel. | liquidityVelocity | Rollout cadence |
Fail the pipeline if envelopes are breached, then attach audit metadata automatically.