@qtsurfer/sdk
    Preparing search index...

    Function authenticate

    • Exchange a long-lived API key for an authenticated session.

      If apikey is omitted, the SDK reads QTSURFER_APIKEY from the environment. The returned AuthenticatedClient caches the JWT, refreshes it on 401, and exposes the same surface as QTSurfer (executeBacktest, sweep, downloadTickers, downloadKlines, getExchanges, getInstruments, compileStrategy, validateStrategy, getStrategy, getStrategies, deleteStrategy, getStrategyCode).

      Parameters

      Returns Promise<AuthenticatedClient>

      if no apikey is supplied or available in env.