Skip to content

X-Trader Public API reference

X-Trader Public API v1.0.0 lets a user manage their own sniper, copy-trade and transfer-snipe configurations, templates and labels over HTTPS with a bearer token. It does not execute trades, close positions or expose wallets. The pages below explain every endpoint, field and error code with curl and Python examples.

Primary source: X-Trader API reference. This page is an independent explanation of X-Trader Public API v1.0.0; it is not affiliated with X-Trader.

Page What it answers
Overview and authentication Scope of the API, bearer token, scopes, GET /me
Write rules Idempotency-Key, If-Match, ETag, decimal strings, body limits
Error codes All 17 error.code values, HTTP status, cause, fix
Pagination limit, next_cursor, filters
Sniper configs List, create, get, patch, delete, pause, resume
Copy-trade configs Same lifecycle, linked_wallets
Copy-trade check Measure slot delay, price delta, priority fee, tip and bots ahead for your config
Transfer-snipe Transfer-snipe tasks
Templates Sniper and copy-trade templates
Labels Shared task labels
Sniper config fields Every sniper config field
Copy-trade config fields Every copy-trade config field
auto_sell TP/SL stages, tp_trigger_basis, tp_multi_hit, trailing TP
auto_strategy Migration, timed sell, sl_protection, phased_sl, anti_pvp
timed_strategy Timed orders