◆ New — Backtest Health Check, overfitting detection & validators for 7 platforms. See what's new →
Home / Developers
Public API · v1

Validate through ForexCodes.

Run the same correctness engine behind the site from your own tool, marketplace or CI. One endpoint validates code for any of the 7 platforms and returns the Strategy Health Score™, every finding, and a verifiable fingerprint. The deterministic validators are free & open — generous per-key quotas, no card.

Authentication

Create a key in your Account (free, up to 10). Send it on every request as X-API-Key: fck_… (or Authorization: Bearer fck_…). Keep it secret — a key acts as you.

POST /api/v1/validate

Body: platform (one of the 7 ids below), code (the source), and optional share:true to mint a public badge + verify page.

curl -X POST https://forexcodes.com/api/v1/validate \
  -H "X-API-Key: fck_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "platform": "pine",
    "code": "//@version=6\nindicator(\"x\")\nplot(close)",
    "share": false
  }'

200 · application/json

{
  "platform": "pine",
  "score": 96,
  "band": "clean",
  "verified": true,
  "counts": { "critical": 0, "high": 0, "medium": 0, "info": 1 },
  "findings": [
    {
      "severity": "info",
      "code": "IN",
      "rule": "Style",
      "line": 2,
      "message": "…",
      "fix": "…"
    }
  ],
  "fingerprint": "sha256 hex of the normalized code",
  "quota": { "limit": 500, "remaining": 499, "resets": "daily" }
}
platform ids:
pinemqlpythonninjascriptctraderleaneasylanguage
GET /api/v1/verify/{id}

Public, no key. Confirm any badge is real and read what it attests to — the score, the pass/fail seal, and the code fingerprint. This is how a marketplace or prop firm can trust a “Verified by ForexCodes” badge on a listing.

{
  "id": "AbC12dEf",
  "platform": "pine",
  "score": 96,
  "verified": true,
  "counts": { "critical": 0, "high": 0, "medium": 0, "info": 1 },
  "fingerprint": "…",
  "issued_at": "2027-01-01T00:00:00Z",
  "verify_url": "https://forexcodes.com/r/AbC12dEf",
  "badge_url": "https://forexcodes.com/r/AbC12dEf/badge"
}
Limits & pricing
  • The deterministic validators are free & open — 500 calls per key per day (ask if you need more).
  • 429 when a quota is hit; quotas reset daily.
  • CORS is open, so you can call it from the browser as well as server-side.
  • AI-backed endpoints (auto-fix, translate) are Pro and will live under the same /api/v1 namespace.

Get a key

Sign in, create a key, and make your first call in a minute.

Create an API key

Correctness only — never a claim of profitability. Software & education, not financial advice.

Catch the bug that compiles.Validate your codeGet Pro