Currently cached token, if any.
Drop the cached token (in memory and in the store).
Compile and register source, returning its id and declared parameter hints.
Create a dataset and return its one-time presigned upload session.
Soft-delete a dataset. Refreshes once on 401.
Release a registered strategy. Refreshes the token once on 401 before
retrying. See QTSurfer.deleteStrategy for what this does and
does not undo.
Download one hour of klines. Refreshes the token once on 401 before retrying.
Download one hour of raw tickers. Refreshes the token once on 401 before retrying.
Load a previously-persisted token from the store. If none, mint one. Called automatically by every workflow method.
Run a backtest end-to-end (compile → prepare → execute), sending the
currently cached token (minting one first if none is cached). Unlike
downloadTickers()/downloadKlines(), a 401 here is not auto-retried: the underlying
stage errors carry no HTTP status, so a token that expires mid-backtest
surfaces as QTSPreparationError/QTSExecutionError rather than
triggering a refresh.
Optionalopts: BacktestOptionsQueue ingest after upload succeeds. Refreshes once on 401.
Read a dataset and its current-version metadata. Refreshes once on 401.
List datasets owned by the authenticated caller. Refreshes once on 401.
Read ingestion state for one upload session. Refreshes once on 401.
List the exchanges the platform serves. Refreshes the token once on 401
before retrying.
List an exchange's instruments, optionally for a specific segment.
Refreshes the token once on 401 before retrying. See
QTSurfer.getInstruments for what the unwrapped HAL envelope leaves
out.
Optionalsegment: InstrumentSegmentList every strategy you have registered and not deleted, most recently
compiled first. Refreshes the token once on 401 before retrying. See
QTSurfer.getStrategies.
Read a strategy's recorded state, including its validation verdict.
Refreshes the token once on 401 before retrying. See
StrategyState for why a 'passed' verdict is a floor rather than
a guarantee.
Read back a strategy's exact registered source. Refreshes the token
once on 401 before retrying. See QTSurfer.getStrategyCode for
what its 404 covers.
Optionalsegment: InstrumentSegmentOpen or recover an upload session for another version of a dataset.
Force a fresh JWT exchange. Bypasses the cache.
Run the full compile → prepare → executeSweep pipeline and resolve once the platform has accepted the sweep, handing back a Sweep that keeps polling the leaderboard in the background. See QTSurfer.sweep for why the sweep is one call rather than composable stages, and Sweep.result for how to read what it found.
The currently cached token is sent (minting one first if none is cached),
but as with backtest() a 401 here is not auto-retried: the
underlying stage errors carry no HTTP status, so a token that expires
mid-pipeline surfaces as QTSPreparationError/QTSExecutionError rather
than triggering a refresh.
The background leaderboard poll and Sweep.sensitivity sit outside the policy for a second, independent reason: both run after this promise has already resolved, so a token that expires while a sweep is in flight surfaces on Sweep.result whatever the stage errors carry.
Optionalopts: SweepOptionsPUT raw CSV bytes to the upload session's presigned URL.
Ask the platform to check that a registered strategy can actually run.
Refreshes the token once on 401 before retrying. Two-outcome — see
QTSurfer.validateStrategy; queued: true is not terminal and
must be followed by polling AuthenticatedClient.getStrategy under a
deadline of your own.
Authenticated SDK session.
Returned by authenticate. Wraps the underlying api-client, owns a JWT (in memory by default, or in the provided TokenStore), and transparently re-exchanges the apikey for a fresh JWT on 401.
Multi-session note: the session mutates the api-client singleton config on every call. Concurrent sessions in the same process will race; today the SDK targets the one-session-per-process pattern.