Hi everyone,
Is anyone else seeing this? I’m using the Demo (Invest/ISA) API key with Basic Auth. Requests like GET /api/v0/equity/account/summary work fine in Python and PowerShell, but GET /api/v0/equity/metadata/instruments keeps failing with:
HTTP 403 Access Denied (Cloudflare page)
If I call the same endpoint via docs.trading212.com (the built-in API explorer) it succeeds (HTTP 200) with the full JSON list, so the key/secret are correct. But as soon as I run the identical request in Python (t212_warm_cache.py --from-queue) or curl.exe from PowerShell, Cloudflare blocks it with the “Access Denied” HTML.
I’ve tried:
-
Regenerating the demo key
-
Running from different networks/VPNs
-
Using only Basic Auth (no “legacy API key” header)
Every non-browser request still returns 403. The queue submit workflow (t212_warm_cache.py) depends on this endpoint to resolve ticker → instrument mappings, so it’s blocking the whole paper-trading run.
Has anyone managed to get /api/v0/equity/metadata/instruments working programmatically recently? Did you have to ask support to whitelist your IP/API key, or is there another header/cookie CF expects now?
Thanks for any advice!