diff --git a/core/src/exchanges/limitless/auth.ts b/core/src/exchanges/limitless/auth.ts index 3bee4805..9fc63ae1 100644 --- a/core/src/exchanges/limitless/auth.ts +++ b/core/src/exchanges/limitless/auth.ts @@ -57,7 +57,10 @@ export class LimitlessAuth { } getApiKey(): string { - return this.apiKey!; + if (!this.apiKey) { + throw new Error('[limitless] apiKey is required for authenticated requests'); + } + return this.apiKey; } /**