SDKs

SDKs

OpenAPI-based client generation and package availability for Turnqey APIs.

Generated, not hand-rolled
Public registry packages are not published yet. Until package publishing is announced, use the OpenAPI files at openapi.json or openapi.yaml with your preferred client generator.

Package status

The package names below are reserved for the planned official SDKs. Do not add them to production builds until Turnqey publishes the corresponding registry packages.

TypeScript / JavaScript

@turnqey/sdk

Planned package

Preview shapets
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

Planned package

Preview shapepython
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

Planned package

Preview shapego
client := turnqey.NewClient(os.Getenv("TURNQEY_TOKEN"))
summary, err := client.Portfolio.Summary(ctx)
if err != nil {
    log.Fatal(err)
}
fmt.Println(summary.USDValue)

Versioning

When public SDK packages are released, they will follow semver and align with the API minor version. Breaking changes are announced six months ahead and tracked in the changelog.

Local preview

Run npm run sdk:preview in this repo to render a preview artifact from the current OpenAPI spec before package publishing.