A short "hello world" that authenticates with the Cryptohopper API and prints your account info plus the BTC/USDT price.
export CRYPTOHOPPER_TOKEN=your-40-char-bearer
go mod tidy
go run .- How to construct a client with
cryptohopper.NewClient(token) - One authenticated call:
ch.User.Get(ctx)returnsmap[string]any - One market-data call:
ch.Exchange.Ticker(ctx, exchange, market) - Typed error handling via
*cryptohopper.Errorwitherrors.As
cryptohopper.com developer dashboard → Create OAuth app → drive the consent flow once. See oauth/ for runnable OAuth examples in other languages, or use the cryptohopper CLI (cryptohopper login) which handles the flow for you.
Just one — github.com/cryptohopper/cryptohopper-go-sdk. Requires Go 1.22+.