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/sdkInstallbash
npm install @turnqey/sdkQuickstartts
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
turnqeyInstallbash
pip install turnqeyQuickstartpython
from turnqey import TurnqeyClient
client = TurnqeyClient(token=os.environ["TURNQEY_TOKEN"])
summary = client.portfolio.summary()
print(summary.usd_value)Go
github.com/turnqey/turnqey-goInstallbash
go get github.com/turnqey/turnqey-goQuickstartgo
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.