{"openapi":"3.1.0","info":{"title":"TradeGPT.art Agent API","version":"1.0.1","description":"Read-only access to published finance prompt templates. No key or account. Do not send private data. For custom generation, link the user to the website; generation is not available through this API. Prompts are research templates, not financial advice or live signals. Limits: 60 requests per client address and 600 requests shared per server process in 60 seconds. Limits include GET and HEAD, do not identify unique agents, and reset when the process restarts. On 429, wait for Retry-After; do not retry invalid parameters or missing IDs."},"servers":[{"url":"https://tradegpt.art"}],"externalDocs":{"url":"https://tradegpt.art/en/for-agents/","description":"Agent quickstart"},"paths":{"/api/v1/prompts/":{"get":{"operationId":"searchPrompts","summary":"Find published finance prompts","description":"Returns ranked localized summaries, or an empty results array. No pagination or catalog export.","parameters":[{"name":"q","in":"query","required":true,"description":"Search terms or exact prompt ID.","schema":{"type":"string","minLength":1,"maxLength":160},"example":"trading strategy backtesting"},{"name":"locale","in":"query","required":false,"description":"Use the language of the query. Defaults to English.","schema":{"type":"string","enum":["en","ru","es","zh","hi","fr","bn","pt","id","de","ja","vi","tr","ko","it","uz"],"default":"en"}},{"name":"subcategory","in":"query","required":false,"description":"Optional canonical subcategory ID.","schema":{"type":"string","enum":["beginner-guides","key-terms","resource-hub","stocks","bonds","real-estate","taxes","compliance","regulations","day-trading","swing-trading","scalping","derivatives","forex","commodities","technical-indicators","backtesting","chart-patterns","classic","strategies","ai-detection","walk-forward","templates","frameworks","central-banks","fiscal","macro-indicators","etf-portfolios","allocation","risks","biases","routines","burnout","security","defi-yield","trends"]}},{"name":"difficulty","in":"query","required":false,"description":"Optional difficulty filter.","schema":{"type":"string","enum":["beginner","medium","pro"]}},{"name":"limit","in":"query","required":false,"description":"Maximum results.","schema":{"type":"integer","minimum":1,"maximum":10,"default":5}}],"responses":{"200":{"description":"Matching prompt summaries and the localized generator URL.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResponse"},"example":{"apiVersion":"1","locale":"en","results":[{"id":390,"title":"Backtest Reality Scorecard","description":"Assesses whether a trading-bot backtest deserves deeper validation or still resembles an overfit demonstration.","difficulty":"pro","role":"start-here","source":"fresh-pack","category":{"id":"technical-analysis","label":"Technical Analysis"},"subcategory":{"id":"backtesting","label":"Strategy Backtesting"},"pack":{"slug":"bot-backtest-reality-check","title":"Bot Backtest Reality Check","url":"https://tradegpt.art/en/fresh-prompt-packs/bot-backtest-reality-check/"},"url":"https://tradegpt.art/en/fresh-prompt-packs/bot-backtest-reality-check/#prompt-390","detailsUrl":"https://tradegpt.art/api/v1/prompts/390/?locale=en"}],"generatorUrl":"https://tradegpt.art/en/prompt-generator/"}}}},"400":{"description":"Missing or invalid parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"invalid_parameter","parameter":"q"}}}},"429":{"description":"Request limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"rate_limited"}}},"headers":{"Retry-After":{"description":"Seconds until retry.","schema":{"type":"integer"}}}},"503":{"description":"Temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"unavailable"}}}}}}},"/api/v1/prompts/{id}/":{"get":{"operationId":"getPromptById","summary":"Read one full prompt by stable numeric ID","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"maximum":999999999},"example":164},{"name":"locale","in":"query","required":false,"description":"Use the language of the query. Defaults to English.","schema":{"type":"string","enum":["en","ru","es","zh","hi","fr","bn","pt","id","de","ja","vi","tr","ko","it","uz"],"default":"en"}},{"name":"If-None-Match","in":"header","schema":{"type":"string"},"description":"ETag from a previous response."}],"responses":{"200":{"description":"Full localized prompt, including original bracket placeholders.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptResponse"},"example":{"apiVersion":"1","locale":"en","prompt":{"id":164,"title":"Detecting Parameter Overfitting","description":"Checks whether a strategy depends on exact parameter values, excessive rules, a single regime, or repeated selection from many tested variants.","difficulty":"medium","role":"standard","source":"library-core","category":{"id":"technical-analysis","label":"Technical Analysis"},"subcategory":{"id":"backtesting","label":"Strategy Backtesting"},"pack":null,"url":"https://tradegpt.art/en/library/technical-analysis/backtesting/#prompt-164","detailsUrl":"https://tradegpt.art/api/v1/prompts/164/?locale=en","version":1,"promptText":"Act as a robustness analyst. I optimized [list]. Evaluate parameter sensitivity, plateaus versus isolated peaks, number of trials, rule complexity, out-of-sample decay, and regime dependence. Propose perturbation, holdout, and multiple-testing checks and a simpler version that preserves the stated hypothesis. Do not select parameters merely because they produced the best historical result.","placeholders":["list"]}}}},"headers":{"ETag":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string"}}}},"304":{"description":"Prompt unchanged."},"400":{"description":"Missing or invalid parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"invalid_parameter","parameter":"q"}}}},"404":{"description":"No published prompt for this ID in the requested locale.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"prompt_not_found"}}}},"429":{"description":"Request limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"rate_limited"}}},"headers":{"Retry-After":{"description":"Seconds until retry.","schema":{"type":"integer"}}}},"503":{"description":"Temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"unavailable"}}}}}}}},"components":{"schemas":{"PromptSummary":{"type":"object","required":["id","title","description","difficulty","role","source","category","subcategory","pack","url","detailsUrl"],"properties":{"id":{"type":"integer","minimum":1,"maximum":999999999},"title":{"type":"string"},"description":{"type":"string"},"difficulty":{"type":"string","enum":["beginner","medium","pro"]},"role":{"type":"string","enum":["universal-template","start-here","standard"]},"source":{"type":"string","enum":["library-core","fresh-pack"]},"category":{"type":"object","required":["id","label"],"properties":{"id":{"type":"string"},"label":{"type":"string"}},"additionalProperties":false},"subcategory":{"type":"object","required":["id","label"],"properties":{"id":{"type":"string"},"label":{"type":"string"}},"additionalProperties":false},"pack":{"anyOf":[{"type":"object","required":["slug","title","url"],"properties":{"slug":{"type":"string"},"title":{"type":"string"},"url":{"type":"string","format":"uri"}},"additionalProperties":false},{"type":"null"}]},"url":{"type":"string","format":"uri","description":"Human-readable localized source. Use this URL to cite the prompt."},"detailsUrl":{"type":"string","format":"uri","description":"Full prompt as JSON in the same locale."}},"additionalProperties":false},"Prompt":{"type":"object","required":["id","title","description","difficulty","role","source","category","subcategory","pack","url","detailsUrl","version","promptText","placeholders"],"properties":{"id":{"type":"integer","minimum":1,"maximum":999999999},"title":{"type":"string"},"description":{"type":"string"},"difficulty":{"type":"string","enum":["beginner","medium","pro"]},"role":{"type":"string","enum":["universal-template","start-here","standard"]},"source":{"type":"string","enum":["library-core","fresh-pack"]},"category":{"type":"object","required":["id","label"],"properties":{"id":{"type":"string"},"label":{"type":"string"}},"additionalProperties":false},"subcategory":{"type":"object","required":["id","label"],"properties":{"id":{"type":"string"},"label":{"type":"string"}},"additionalProperties":false},"pack":{"anyOf":[{"type":"object","required":["slug","title","url"],"properties":{"slug":{"type":"string"},"title":{"type":"string"},"url":{"type":"string","format":"uri"}},"additionalProperties":false},{"type":"null"}]},"url":{"type":"string","format":"uri","description":"Human-readable localized source. Use this URL to cite the prompt."},"detailsUrl":{"type":"string","format":"uri","description":"Full prompt as JSON in the same locale."},"version":{"type":"integer","minimum":1},"promptText":{"type":"string"},"placeholders":{"type":"array","uniqueItems":true,"items":{"type":"string"}}},"additionalProperties":false},"SearchResponse":{"type":"object","required":["apiVersion","locale","results","generatorUrl"],"properties":{"apiVersion":{"const":"1"},"locale":{"type":"string","enum":["en","ru","es","zh","hi","fr","bn","pt","id","de","ja","vi","tr","ko","it","uz"],"default":"en"},"results":{"type":"array","maxItems":10,"items":{"$ref":"#/components/schemas/PromptSummary"}},"generatorUrl":{"type":"string","format":"uri"}},"additionalProperties":false},"PromptResponse":{"type":"object","required":["apiVersion","locale","prompt"],"properties":{"apiVersion":{"const":"1"},"locale":{"type":"string","enum":["en","ru","es","zh","hi","fr","bn","pt","id","de","ja","vi","tr","ko","it","uz"],"default":"en"},"prompt":{"$ref":"#/components/schemas/Prompt"}},"additionalProperties":false},"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"parameter":{"type":"string"}},"additionalProperties":false}}}}