Read your strategies, signals, runs, positions and our candles from your own code, and queue a backtest. Part of Pro.
Console → Workspace → API tokens → New token. The token is shown once. Send it on every request:
curl -H "Authorization: Bearer tx_your_token" \ https://tradextool.com/api/v1/me
Up to 120 requests a minute per token, five tokens per account. A token only ever sees its own account and the strategies shared in its workspace.
| Call | What comes back |
|---|---|
GET /api/v1/me | Account, plan and workspace. |
GET /api/v1/strategies | Your strategies plus the ones shared in your workspace. |
GET /api/v1/strategies/{id} | One strategy, including every rule. |
GET /api/v1/runs | Everything you have running, with mode and status. |
GET /api/v1/signals?since_id=0 | Signals: symbol, entry, exit, stop, with the candle time. Poll with the last id you saw. |
GET /api/v1/positions?status=open | Open and closed positions with their result. |
GET /api/v1/instruments?market=stocks | What you can trade: crypto pairs or US stocks and ETFs. |
GET /api/v1/candles?symbol=AAPL&timeframe=1d&limit=500 | Our own history: five years, checked nightly for gaps. |
POST /api/v1/backtests?strategy_id=12&days=1825 | Queues a backtest and gives you an id. |
GET /api/v1/backtests/{id} | Status, and when it is done: result, costs and the buy-and-hold comparison. |
{
"ok": true,
"signals": [
{"id": 812, "run_id": 44, "symbol": "AAPL", "kind": "entry", "side": "long",
"price": 336.13, "candle_time": 1789689600000, "created_at": "2026-09-19T20:05:11Z"}
]
}
Every answer has ok. When something is wrong you get {"ok": false, "error": "…"} with a normal HTTP code: 401 no or wrong token, 402 your plan has no API, 404 not yours, 429 too fast.
Place orders. Nothing in TradeXtool does, for anyone. The API also never returns exchange keys, passwords or another account's data.