Modern TypeScript SDK for finlight.me platform providing fully-typed REST and WebSocket interfaces to access market-relevant news articles enriched with sentiment, metadata, and company tagging. Version 3.4.0 supports advanced article search with flexible query language, real-time article streaming via Enhanced and Raw WebSocket with automatic reconnection, webhook support with HMAC verification, configurable logging (console, winston, pino, custom), built-in retries, and secure API key authentication. Differentiators include dual WebSocket modes (enhanced with AI enrichment vs raw for speed), field-level filtering in raw mode, and first-class TypeScript support.
npm install finlight-clientNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes the FinlightApi client with an API key and fetches articles matching a query with filters.
Update instantiation: new FinlightApi({ apiKey: '...' }, { takeover: false }).Use only supported fields in raw WebSocket queries.
Use express.raw({ type: 'application/json' }) and pass req.body.toString() to constructEvent.Use import { FinlightApi } from 'finlight-client' directly.Use import { FinlightApi } from 'finlight-client'.Use only supported fields for Raw WebSocket: source:, title:, summary:.
Ensure the webhook secret matches the one configured in finlight dashboard and pass the correct header value.
Provide a valid apiKey in the constructor options.
No dependency data recorded yet.