Buzzr Sports Engine API
    Preparing search index...

    Interface DfsEngineWithPolicySnapshots

    Engine returned by createDfsEngine, including immutable policy snapshots added after the original v5 DfsEngine contract.

    interface DfsEngineWithPolicySnapshots {
        explainSettlement(result: DfsSettlementResult): string;
        extractLegStat(
            leg: DfsLegInput,
            context?: DfsSettlementContext,
            entry?: DfsEntryInput,
        ): Promise<DfsLegStatResult>;
        getBookPolicies(): readonly Readonly<
            {
                displayName: string;
                effectiveFrom: string;
                id: string;
                playTypes: readonly Readonly<DfsBookPlayType>[];
                sources: readonly Readonly<DfsBookSourceRef>[];
                status: DfsPolicyStatus;
                verification: Readonly<DfsPolicyVerification> | null;
                version: string;
            },
        >[];
        getRegisteredBooks(): string[];
        gradeLeg(
            leg: DfsLegInput,
            actual: number,
            entry?: DfsEntryInput,
        ): DfsLegOutcome;
        lookupPayout(input: DfsPayoutLookupInput): DfsPayoutResolution | null;
        normalizeEntry(input: DfsEntryInput): DfsEntryInput;
        registerBookPolicy(policy: DfsBookPolicy): void;
        registerLeagueAdapter(adapter: DfsLeagueAdapterDefinition): void;
        registerPayoutTable(table: DfsPayoutTableDefinition): void;
        registerStatProvider(provider: StatProvider): void;
        settleEntries(
            inputs: readonly DfsEntryInput[],
            context?: DfsBatchSettlementContext,
        ): Promise<DfsBatchSettlementResult>;
        settleEntry(
            input: DfsEntryInput,
            context?: DfsSettlementContext,
        ): Promise<DfsSettlementResult>;
        validateEntry(input: DfsEntryInput): DfsValidationResult<DfsEntryInput>;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • Returns readonly Readonly<
          {
              displayName: string;
              effectiveFrom: string;
              id: string;
              playTypes: readonly Readonly<DfsBookPlayType>[];
              sources: readonly Readonly<DfsBookSourceRef>[];
              status: DfsPolicyStatus;
              verification: Readonly<DfsPolicyVerification> | null;
              version: string;
          },
      >[]