Tradetron API returns ‘Auth Invalid’ — what to check — Tradetron Community
← Community

Tradetron API returns ‘Auth Invalid’ — what to check

Error execution 1,065 views

Amit

Hi, I am using the API as mentioned here API — Tradetron but everytime I make the call I am getting Auth Invalid error.
I have double checked the token. How can I debug this further? What am I doing wrong?

Tradetron Team Tradetron team

Check these, in order:

  1. URL: https://api.tradetron.tech/api?. The trailing ? is part of it.
  2. Body: a POST with JSON: {"auth-token":"<your token>","key":"myvar","value":"1"}. More pairs use key1/value1, key2/value2…
  3. Token: copy it from My Strategies → ⋮ → API OAUTH Token for that strategy. Relinking issues a new token, so the old one stops working.
  4. Hybrid Mode: set it to Yes if you want Tradetron’s own conditions/exits to run too.
  5. From Python, send a User-Agent header. The default Python-urllib is blocked with HTTP 403.
  6. Rate limits: 3/sec, 30/min, 250/hour. Above that you get HTTP 429.
  7. The strategy must be deployed and running in market hours. Check Runtime Data to see if values arrived.

If it still fails, send the strategy SID and the exact response to support.

:sparkles: Answer written with AI from Tradetron docs (Oct 2026). Original replies are kept above. Spot something wrong? Reply below.