This commit is contained in:
parent
65139bf8d0
commit
44431c4e66
71 changed files with 2262 additions and 1173 deletions
|
|
@ -293,4 +293,3 @@ describe("compute classifiers", () => {
|
|||
expect(hit!.explanations[0]).toMatch(/Consistent with/i);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -17,16 +17,18 @@ export const TEST_CLASSIFIER_CONFIG: ClassifierConfig = {
|
|||
zeroDteMinSize: 400
|
||||
};
|
||||
|
||||
export const buildFlowPacket = (opts: {
|
||||
id?: string;
|
||||
source_ts?: number;
|
||||
ingest_ts?: number;
|
||||
seq?: number;
|
||||
trace_id?: string;
|
||||
members?: string[];
|
||||
features?: FlowPacket["features"];
|
||||
join_quality?: FlowPacket["join_quality"];
|
||||
} = {}): FlowPacket => {
|
||||
export const buildFlowPacket = (
|
||||
opts: {
|
||||
id?: string;
|
||||
source_ts?: number;
|
||||
ingest_ts?: number;
|
||||
seq?: number;
|
||||
trace_id?: string;
|
||||
members?: string[];
|
||||
features?: FlowPacket["features"];
|
||||
join_quality?: FlowPacket["join_quality"];
|
||||
} = {}
|
||||
): FlowPacket => {
|
||||
const id = opts.id ?? "flowpacket:test";
|
||||
const source_ts = opts.source_ts ?? Date.parse("2025-01-01T14:30:00Z");
|
||||
const ingest_ts = opts.ingest_ts ?? source_ts;
|
||||
|
|
@ -66,4 +68,3 @@ export const buildFlowPacket = (opts: {
|
|||
export const getHit = (hits: ClassifierHit[], id: string): ClassifierHit | null => {
|
||||
return hits.find((hit) => hit.classifier_id === id) ?? null;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,9 @@ const placements = (overrides?: Partial<LegEvidence["placements"]>): LegEvidence
|
|||
...overrides
|
||||
});
|
||||
|
||||
const leg = (input: Partial<LegEvidence> & Pick<LegEvidence, "contractId" | "right" | "strike">): LegEvidence => {
|
||||
const leg = (
|
||||
input: Partial<LegEvidence> & Pick<LegEvidence, "contractId" | "right" | "strike">
|
||||
): LegEvidence => {
|
||||
return {
|
||||
contractId: input.contractId,
|
||||
root: "SPY",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue