sifting/io
Go 1.23+

Go SDK.

Official SiftingIO Go SDK. Install one package and pull live and historical market data over REST and WebSocket (crypto, forex, stocks, and commodities) with typed responses.

View on GitHub
1 · Install
install · go get
go get github.com/siftingio/sdk-go@latest
2 · Fetch a price

Set your API key and request the latest price. The same call works for every market, just change the asset class and symbol.

main.go
package main import (	"context"	"fmt"	"os" 	siftingio "github.com/siftingio/sdk-go") func main() {	client := siftingio.New(		siftingio.WithAPIKey(os.Getenv("SIFTING_API_KEY")),	) 	// Latest Bitcoin price	trade, _ := client.Last.Trade(context.Background(), "crypto", "BTCUSD")	fmt.Println(trade.Price, trade.Time)}
3 · stream live ticks
stream live ticks
sock := client.WS()sock.OnTick(func(t *siftingio.Tick) {	fmt.Println(t.Symbol, t.Price)}) sock.Connect(context.Background())defer sock.Close() sock.Subscribe(context.Background(),	siftingio.ProductCEX, "BTCUSD", "ETHUSD")