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

Go SDK

The official Go client for Forecite.

The Go SDK is a context-aware client with typed structs for feed items and scoring results.

Install

go get github.com/forecite/forecite-go

Quickstart

package main

import (
	"context"
	"fmt"
	"log"

	"github.com/forecite/forecite-go"
)

func main() {
	client := forecite.NewFromEnv() // reads FORECITE_API_KEY

	page, err := client.Feeds.List(context.Background(), &forecite.FeedListParams{
		Symbol:        "NVDA",
		Actionability: forecite.Bool(true),
		Limit:         10,
	})
	if err != nil {
		log.Fatal(err)
	}

	for _, item := range page.Data {
		fmt.Println(item.Title, item.Scoring.SentimentScore)
	}
}

See the API reference for every method and option.

On this page