TypeScript SDK
The official TypeScript / Node.js client for Forecite.
The TypeScript SDK works in Node.js and modern runtimes, with full type definitions for every endpoint and feed payload.
Install
npm install @forecite/sdkQuickstart
import { Forecite } from "@forecite/sdk"
const client = new Forecite({ apiKey: process.env.FORECITE_API_KEY })
// Pull the latest actionable items for a ticker
const { data } = await client.feeds.list({
symbol: "NVDA",
actionability: true,
limit: 10,
})
for (const item of data) {
console.log(item.title, item.scoring.sentiment_score)
}Stream the feed
const stream = client.feeds.stream({ symbols: ["NVDA", "TSLA"] })
stream.on("item", (item) => {
console.log("new:", item.title)
})See the API reference for every method and option.