export function createSignalDedupeKey(input: {
  providerId?: string | null;
  eventId: string;
  marketType: string;
  selection: string;
  lineValue?: number | null;
}) {
  return [
    input.providerId ?? "manual",
    input.eventId.trim().toLowerCase(),
    input.marketType.trim().toLowerCase(),
    input.selection.trim().toLowerCase(),
    input.lineValue ?? "na"
  ].join(":");
}

