interface OpenAlgoConfig {
    apiKey: string;
    baseUrl: string;
    fetchImpl?: (
        input: URL | RequestInfo,
        init?: RequestInit,
    ) => Promise<Response>;
    hasOpenInterest(request: Readonly<BarsRequest>): undefined | boolean;
}

Hierarchy (View Summary)

Properties

apiKey: string
baseUrl: string
fetchImpl?: (input: URL | RequestInfo, init?: RequestInit) => Promise<Response>

Injectable fetch (defaults to global fetch); lets the adapter be tested offline.

Type declaration

    • (input: URL | RequestInfo, init?: RequestInit): Promise<Response>
    • Parameters

      • input: URL | RequestInfo
      • Optionalinit: RequestInit

      Returns Promise<Response>

Methods

  • Instrument capability from host metadata. Explicit false omits the API's placeholder OI column before it can become a misleading cash reading. Missing/unknown capability preserves finite observations, including zero.

    Parameters

    Returns undefined | boolean