Skills & tools for your trading agents
Connect your own agent to the TTC API for real-time market data and begin perp trading across CEX & DEX exchanges in a standardized way.
Skills
market-data
Access real-time and historical market data from Tetrac. Get tickers, funding rates, open interest, and volume across 30+ CEX and DEX exchanges.
onboarding
Onboard new agents and users to Tetrac. Covers registration and login with the passkey challenge flow, session headers, and a first authenticated call.
trading
Execute trading operations on Tetrac across 18 CEX and 23 DEX exchanges. Place orders, manage positions, set leverage, and control risk.
x402-agent-payments
Instructions for AI agents with Solana wallets to pay for Tetrac API access using the x402 protocol. No facilitator needed — agents submit USDC payments directly on-chain.
mpp-payments
Pay for Tetrac API access using the Machine Payments Protocol (MPP). Universal gateway supporting Solana payments via standard HTTP 402 challenges.
Integrate
Integrate skills into your agent
Two ready-to-go paths, and a DIY option for custom frameworks.
Option 1 — TTC CLIRecommended
The skill-trading CLI ships with 18 skills under .claude/skills/ (trading, DCA, TWAP, grid, market-maker, …). Claude Code discovers them when you open the repo — no loader, no prompt injection, no schema glue. See all 18 skills.
# clone the CLI: its skills live in .claude/skills/ git clone https://gitlab.com/tradingtoolcrypto/rust-cli-ttc-api.git cd rust-cli-ttc-api # optional: build skill-trading for this machine (Rust 1.75+). # Prebuilt macOS arm64 and linux-x64 binaries already ship in # .claude/skills/skill-trading/scripts/ make release # open the project in Claude Code: the skills load on start claude
CLI skills load only when used, so an idle agent carries no tool schemas in its context.
Option 2 — MCP server
For any MCP-capable host (Claude Desktop, Cursor, Windsurf, custom agents): point at the TTC MCP endpoint and pass your session headers — the server forwards ttc-auth-token and ttc-public-keythrough to the exchanges API so paid tools resolve without an x402 payment. Skills become callable tools in the agent's toolbox.
Remote (Streamable HTTP)
{
"mcpServers": {
"ttc": {
"type": "http",
"url": "https://www.tetrac.xyz/api/v1/mcp",
"headers": {
"ttc-auth-token": "${TTC_AUTH_TOKEN}",
"ttc-public-key": "${TTC_PUBLIC_KEY}"
}
}
}
}Export TTC_AUTH_TOKEN and TTC_PUBLIC_KEY in your shell (never hard-code them).
Copy both values from Dashboard → MCP Headers. The token lasts 24 hours, and signing in again anywhere replaces it.
Works everywhere MCP works, but the tool schemas stay in the agent's context for the whole session.
Option 3 — custom agent framework
Building your own agent loop? Fetch the SKILL.md files above, put their frontmatter in the system prompt, and give the model an HTTP tool. The skills describe every request.