SDKs

Official SDKs

Generated from the public Turnqey OpenAPI spec. Stable interfaces for all six product surfaces.

Generated, not hand-rolled
SDKs are produced from the spec on every release. Run npm run sdk:preview in this repo to render a local preview of the next release notes.

TypeScript / JavaScript

@turnqey/sdk
Installbash
npm install @turnqey/sdk
Quickstartts
import { TurnqeyClient } from "@turnqey/sdk";

const client = new TurnqeyClient({ token: process.env.TURNQEY_TOKEN! });

const summary = await client.portfolio.summary();
console.log(summary.usd_value);

Python

turnqey
Installbash
pip install turnqey
Quickstartpython
from turnqey import TurnqeyClient

client = TurnqeyClient(token=os.environ["TURNQEY_TOKEN"])
summary = client.portfolio.summary()
print(summary.usd_value)

Go

github.com/turnqey/turnqey-go
Installbash
go get github.com/turnqey/turnqey-go
Quickstartgo
client := turnqey.NewClient(os.Getenv("TURNQEY_TOKEN"))
summary, err := client.Portfolio.Summary(ctx)
if err != nil {
    log.Fatal(err)
}
fmt.Println(summary.USDValue)

Versioning

SDKs follow semver and are aligned with the API minor version. Breaking changes are announced six months ahead and tracked in the changelog.