New: unified Python, Go & Rust SDKs — available now in beta.

Python SDK

The official Python client for Forecite.

The Python SDK targets 3.10+ and ships sync and async clients, with typed models for feed items and scoring results.

Install

pip install forecite

Quickstart

import os
from forecite import Forecite

client = Forecite(api_key=os.environ["FORECITE_API_KEY"])

# Pull the latest actionable items for a ticker
page = client.feeds.list(symbol="NVDA", actionability=True, limit=10)

for item in page.data:
    print(item.title, item.scoring.sentiment_score)

Stream the feed

for item in client.feeds.stream(symbols=["NVDA", "TSLA"]):
    print("new:", item.title)

See the API reference for every method and option.

On this page