---
title: "Clients and SDKs"
url: https://docs.truemarkets.co/sdks/overview
description: "Call the Trading API from TypeScript or Python, with token minting and refresh handled by the SDK."
---

Docs index: https://docs.truemarkets.co/llms.txt

# Clients and SDKs

Call the Trading API from TypeScript or Python. The SDKs mint and refresh tokens for you from the key file that `TM_KEY_FILE` points at.

| Language | Package | Requires |
| --- | --- | --- |
| TypeScript | `@truemarkets/sdk` | Node 18+ or Bun |
| Python | `truemarkets` | Python 3.10+ |

Methods are generated from the OpenAPI spec and named after its `operationId`s: `listAssets`/`list_assets`, `createOrder`/`create_order`, `getOrderStatus`/`get_order_status`, and so on. They cover the core trading calls; for an endpoint an SDK doesn't wrap yet, call it over HTTP. Each SDK's README covers the DeFi flow and the Turnkey signing helpers. Both SDKs send usage telemetry unless you set `TM_TELEMETRY=0`.

> **Same venue, different credentials**
> 
> The SDKs wrap the [Trading API](https://docs.truemarkets.co/trading-api). The [CLI](https://docs.truemarkets.co/cli/overview) trades the same account from a terminal. The credentials differ: the SDKs use your API key file, while the CLI logs you in with an emailed code and keeps your keys on your device. Pick the CLI when you want to trade from a terminal without writing code.

## Set up an SDK

1.  **[Install](https://docs.truemarkets.co/sdks/installation)**: npm, bun, or pip.
2.  **[Authenticate](https://docs.truemarkets.co/sdks/authentication)**: point `TM_KEY_FILE` at your key file.
3.  **[List assets](https://docs.truemarkets.co/sdks/quickstart)**: the shortest useful call.

## Related

-   **[API reference](https://docs.truemarkets.co/api/gateway/true-markets-gateway-api)**: every endpoint, schema, and error code.
-   **[Trading API quickstart](https://docs.truemarkets.co/trading-api/quickstart)**: the same flow in raw HTTP, if you would rather see the wire format.
-   **[Discord](https://discord.gg/SC92xRUZqw)**: SDK questions and integration chat.

* * *

**[Next: Installation](https://docs.truemarkets.co/sdks/installation)**