For AI agents: the documentation index is at /llms.txt, and this page is available as Markdown at /sdks/quickstart.md.
Quickstart
List the asset catalog and find one asset. You need the SDK installed and TM_KEY_FILE set as in Authentication; the client mints tokens for you from it.
- TypeScript
- Python
Find SOL on Solana and keep its id
import { Client } from "@truemarkets/sdk";
const client = new Client();
const { data } = await client.gateway.listAssets();
const sol = data.data.find((a) => a.symbol === "SOL" && a.chain === "solana");
console.log(sol.id, sol.type, sol.asset_class);
Find SOL on Solana and keep its id
from truemarkets import Client
c = Client()
assets = c.gateway.list_assets()
sol = next(a for a in assets.data if a.symbol == "SOL" and a.chain == "solana")
print(sol.id, sol.type_, sol.asset_class)
Keep the id. It's the asset_id you place orders with.
Place an order
To place an order, create it, sign the payloads, execute it, then read its status. The Trading API quickstart walks the whole sequence, and the SDK method names map straight onto it (createOrder, executeOrder, getOrderStatus).
Next steps
- CLI: trade the same venue from your terminal, no code required.
- API reference: every endpoint, schema, and error code.
- Discord: SDK questions, MCP setup help, and integration chat.