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.
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);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.
- Need help? [email protected]
- Chat with us on Discord
- See what changed in the changelog