Interface OpenAlgoLiveConfig

interface OpenAlgoLiveConfig {
    apiKey: string;
    baseUrl: string;
    fetchImpl?: (
        input: RequestInfo | URL,
        init?: RequestInit,
    ) => Promise<Response>;
    socketFactory?: SocketFactory;
    volumeMode?: VolumeMode;
    wsUrl: string;
}

Hierarchy (View Summary)

Properties

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

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

Type declaration

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

      • input: RequestInfo | URL
      • Optionalinit: RequestInit

      Returns Promise<Response>

socketFactory?: SocketFactory

Inject a custom socket (tests, React Native, non-browser runtimes).

volumeMode?: VolumeMode

Volume accounting for the live candle builder (default 'ltq-sum').

wsUrl: string

WS proxy URL, e.g. ws://127.0.0.1:8765.