{"openapi":"3.1.0","info":{"title":"TradingLookup Open Data API","version":"2.0.0","summary":"Read-only open data on prop firms, CFD loss rates, crypto exchange availability, Indian stockbrokers, economic releases and global market hours.","description":"Public, unauthenticated, read-only machine endpoints for TradingLookup open datasets (CC BY 4.0). Every figure is read from each firm's or official source's own pages on the date shown. Data, not financial or trading advice. Commercial or affiliate status never changes answers or ordering.","contact":{"name":"TradingLookup","url":"https://tradinglookup.com/data/"},"license":{"name":"CC BY 4.0","identifier":"CC-BY-4.0","url":"https://creativecommons.org/licenses/by/4.0/"}},"servers":[{"url":"https://tradinglookup.com","description":"TradingLookup production"}],"tags":[{"name":"REST v1","description":"Read-only REST JSON lookup endpoints for prop firms, market hours, economic calendar and CFD loss rates."},{"name":"MCP","description":"Model Context Protocol (Streamable HTTP JSON-RPC 2.0) endpoints and server metadata."},{"name":"Agent JSON","description":"Compact static JSON snapshots built from TradingLookup published ledgers."},{"name":"Catalogue","description":"Open data catalogue and machine-readable site indexes."},{"name":"Feeds","description":"Subscribable iCalendar (.ics) exchange holiday and session feeds."}],"paths":{"/api/v1/prop-firms/compare":{"get":{"tags":["REST v1"],"operationId":"comparePropFirms","summary":"Compare two prop firms side by side","description":"Compare two prop firms at an account size using published plans and rules. Prices exclude promo codes; partner status never changes results or order.","parameters":[{"name":"firm_a","in":"query","required":true,"description":"First prop firm slug or name (for example \"topstep\").","schema":{"type":"string"}},{"name":"firm_b","in":"query","required":true,"description":"Second prop firm slug or name (for example \"apex\").","schema":{"type":"string"}},{"name":"account_size","in":"query","required":false,"description":"Account size in USD (default 100000).","schema":{"type":"integer","default":100000,"minimum":1}}],"responses":{"200":{"description":"Side-by-side prop firm comparison JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropFirmCompareResponse"}}}},"400":{"description":"Missing or invalid query parameter."},"404":{"description":"One or both firms were not found."}}}},"/api/v1/prop-firms/{slug}":{"get":{"tags":["REST v1"],"operationId":"getPropFirmLookup","summary":"Look up one prop firm's plans, rules and true cost to funded","description":"Returns plans, rules, true cost to funded (eval plus activation fee), cheapest plan and any live firm-issued partner code (marked Ad) for one firm.","parameters":[{"name":"slug","in":"path","required":true,"description":"Prop firm slug (lowercase letters, digits and hyphens).","schema":{"type":"string","pattern":"^[a-z0-9-]+$"}},{"name":"account_size","in":"query","required":false,"description":"Optional account size filter in USD (for example 100000).","schema":{"type":"integer","minimum":1}},{"name":"market","in":"query","required":false,"description":"Optional market filter.","schema":{"type":"string","enum":["futures","forex","crypto"]}}],"responses":{"200":{"description":"Prop firm lookup JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropFirmLookupResponse"}}}},"400":{"description":"Invalid query parameter."},"404":{"description":"Prop firm not found."}}}},"/api/v1/market-hours":{"get":{"tags":["REST v1"],"operationId":"getMarketHoursStatus","summary":"Check global stock exchange open/closed status","description":"Evaluates exchange open, closed, pre-market, post-market and holiday status at a UTC timestamp from published exchange hours and holidays.","parameters":[{"name":"exchange","in":"query","required":false,"description":"Exchange slug, code or name (for example \"nyse\", \"lse\", \"nse\").","schema":{"type":"string"}},{"name":"at","in":"query","required":false,"description":"ISO 8601 date-time string (defaults to current UTC time).","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Market hours status JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketHoursStatusResponse"}}}},"400":{"description":"Invalid timestamp in \"at\"."},"404":{"description":"Requested exchange not found."}}}},"/api/v1/economic-calendar":{"get":{"tags":["REST v1"],"operationId":"getEconomicCalendar","summary":"Query scheduled central bank and macro releases","description":"Filters scheduled central bank decisions and macro releases (CPI, NFP, GDP, PCE, PPI) by currency, impact, event and start date.","parameters":[{"name":"currency","in":"query","required":false,"description":"Currency code filter (for example \"USD\", \"GBP\", \"EUR\").","schema":{"type":"string"}},{"name":"impact","in":"query","required":false,"description":"Impact filter (for example \"high\", \"medium\", \"low\").","schema":{"type":"string"}},{"name":"event","in":"query","required":false,"description":"Event slug or name substring (for example \"fomc\", \"cpi\").","schema":{"type":"string"}},{"name":"from","in":"query","required":false,"description":"Start date inclusive (YYYY-MM-DD).","schema":{"type":"string","format":"date"}},{"name":"limit","in":"query","required":false,"description":"Maximum rows to return (1-100, default 25).","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}}],"responses":{"200":{"description":"Economic calendar releases JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EconomicCalendarLookupResponse"}}}},"400":{"description":"Invalid query parameter."}}}},"/api/v1/cfd-loss-rates":{"get":{"tags":["REST v1"],"operationId":"getCfdLossRates","summary":"Query retail CFD loss rates (FCA COBS 22.5 notice)","description":"Published retail CFD account loss rates by broker or regulator. CFDs are complex instruments and come with a high risk of losing money rapidly due to leverage.","parameters":[{"name":"broker","in":"query","required":false,"description":"Broker slug or name substring (for example \"ig\", \"etoro\").","schema":{"type":"string"}},{"name":"regulator","in":"query","required":false,"description":"Regulator filter (for example \"FCA\", \"CySEC\").","schema":{"type":"string"}}],"responses":{"200":{"description":"CFD loss rates JSON with mandatory FCA COBS 22.5 risk warning.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CfdLossRatesLookupResponse"}}}}}}},"/mcp":{"post":{"tags":["MCP"],"operationId":"mcpRpc","summary":"TradingLookup MCP endpoint (Streamable HTTP, JSON-RPC 2.0)","description":"Stateless read-only Model Context Protocol server exposing 17 tools covering prop firms, CFD loss rates, crypto access (US states & UK FCA), economic releases, India brokerage calculations, prop risk calculations, market hours, payout proof, rule changes, open datasets and firm-issued promo codes.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonRpcRequest"},"example":{"jsonrpc":"2.0","id":1,"method":"tools/list"}}}},"responses":{"200":{"description":"JSON-RPC 2.0 response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonRpcResponse"}}}},"202":{"description":"Notification accepted (no body)."},"400":{"description":"Malformed JSON or invalid JSON-RPC 2.0 request."},"413":{"description":"Request body exceeds maximum size."},"429":{"description":"Rate limit exceeded."}}}},"/mcp/directory":{"post":{"tags":["MCP"],"operationId":"mcpDirectoryRpc","summary":"Directory-clean MCP endpoint (no promo codes or deal wording)","description":"Identical read-only Model Context Protocol endpoint with get_promo_code removed and all discount codes, affiliate links and deal wording stripped from responses (for app directories that exclude sponsored content).","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonRpcRequest"}}}},"responses":{"200":{"description":"JSON-RPC 2.0 response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonRpcResponse"}}}},"202":{"description":"Notification accepted (no body)."},"429":{"description":"Rate limit exceeded."}}}},"/.well-known/mcp/server-card.json":{"get":{"tags":["MCP"],"operationId":"getMcpServerCard","summary":"MCP Server Card metadata","description":"Read-only MCP server metadata, capabilities, protocol version and remote streamable-http URLs.","responses":{"200":{"description":"MCP server card JSON.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/data/catalog.json":{"get":{"tags":["Catalogue"],"operationId":"getDataCatalog","summary":"Open data catalogue","description":"Master index of every CC BY 4.0 dataset published on TradingLookup, including CSV/JSON download URLs, column schemas, row counts, data dates, licences and citation lines.","responses":{"200":{"description":"Dataset catalogue JSON.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/data/agent/prop-plans/{market}.json":{"get":{"tags":["Agent JSON"],"operationId":"getPropPlans","summary":"Prop firm plans and rules for one market","description":"Compact snapshot of every priced prop firm plan and firm-level rule record (drawdown, steps, consistency rule, time limit, news trading, platforms, country checks, on-chain payout proof) for one market. Prices are without promo codes.","parameters":[{"name":"market","in":"path","required":true,"description":"Prop firm market.","schema":{"type":"string","enum":["futures","forex","crypto"]}}],"responses":{"200":{"description":"Prop firm plans JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropPlansResponse"}}}}}}},"/data/agent/rule-changes.json":{"get":{"tags":["Agent JSON"],"operationId":"getRuleChangesIndex","summary":"Index of prop firms with recorded rule and price changes","description":"Lists every prop firm with at least one recorded difference between TradingLookup weekly reads, with change counts, latest date and per-firm JSON URL.","responses":{"200":{"description":"Rule changes index JSON.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/data/agent/rule-changes/{slug}.json":{"get":{"tags":["Agent JSON"],"operationId":"getFirmRuleChanges","summary":"Recorded rule and price changes for one prop firm","description":"Chronological record (newest first) of differences observed between weekly reads of one prop firm's own pages, with source and Internet Archive links.","parameters":[{"name":"slug","in":"path","required":true,"description":"Firm slug from /data/agent/rule-changes.json.","schema":{"type":"string","pattern":"^[a-z0-9-]+$"}}],"responses":{"200":{"description":"Firm rule changes JSON.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/data/agent/cfd-loss-rates.json":{"get":{"tags":["Agent JSON"],"operationId":"getAgentCfdLossRates","summary":"Retail CFD account loss rates (with COBS 22.5 risk warning)","description":"Published retail CFD account loss-rate percentages read from UK and EU providers' own pages, including legal entity, regulator, check date, source URL, TradingLookup page URL and mandatory FCA COBS 22.5 risk warning.","responses":{"200":{"description":"CFD loss rates JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CfdLossRatesResponse"}}}}}}},"/data/agent/crypto-access.json":{"get":{"tags":["Agent JSON"],"operationId":"getCryptoAccess","summary":"US 50-state crypto exchange availability & UK FCA register status","description":"Combined US state-by-state (50 states, DC and territories) crypto exchange availability matrix and UK FCA cryptoasset register (FRNs, authorised-firm promotion approvers, Warning List entries).","responses":{"200":{"description":"Crypto exchange access JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CryptoAccessResponse"}}}}}}},"/data/agent/economic-releases.json":{"get":{"tags":["Agent JSON"],"operationId":"getEconomicReleases","summary":"Scheduled official central bank and macro release dates","description":"Official scheduled dates and times for central bank policy decisions (FOMC, BoE, ECB, RBA, SARB, RBI, BoJ, BoC, SNB and more) and macro indicators (CPI, NFP, GDP, PCE, PPI) read from official agency calendars.","responses":{"200":{"description":"Economic releases JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EconomicReleasesResponse"}}}}}}},"/data/agent/india-brokers.json":{"get":{"tags":["Agent JSON"],"operationId":"getIndiaBrokers","summary":"Indian stockbroker fee schedules and statutory charges","description":"Brokerage fee schedules (equity delivery, equity intraday, futures, options, DP charges) for Indian stockbrokers (Zerodha, Groww, AngelOne, Kotak Neo, HDFC Sky, Upstox, Dhan, Fyers, 5paisa) plus NSE/SEBI/STT/stamp-duty/GST statutory rates.","responses":{"200":{"description":"India brokers JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IndiaBrokersResponse"}}}}}}},"/data/market-hours.json":{"get":{"tags":["Agent JSON"],"operationId":"getMarketHours","summary":"Global stock exchange trading hours and holiday calendars","description":"Published trading sessions, timezones, holidays and early closes for global stock exchanges (NYSE, Nasdaq, LSE, NSE, BSE, PSX, NGX, JSE, Tadawul, DFM, B3 and more) and CME FX futures.","responses":{"200":{"description":"Market hours JSON.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/llms.txt":{"get":{"tags":["Catalogue"],"operationId":"getLlmsTxt","summary":"Concise machine-readable site index (llms.txt)","description":"Plain-text Markdown guide listing TradingLookup's datasets, tools, methodology, licence and machine endpoints.","responses":{"200":{"description":"llms.txt Markdown text.","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/llms-full.txt":{"get":{"tags":["Catalogue"],"operationId":"getLlmsFullTxt","summary":"Extended machine-readable site guide (llms-full.txt)","description":"Expanded plain-text Markdown reference of TradingLookup datasets, URLs and key figures for language models.","responses":{"200":{"description":"llms-full.txt Markdown text.","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/market-hours/feeds/{feed}.ics":{"get":{"tags":["Feeds"],"operationId":"getMarketHoursFeed","summary":"Subscribable iCalendar (.ics) market holiday feed","description":"RFC 5545 iCalendar feed of published exchange holidays and early closes for a market slug (for example nyse, nasdaq, nse, lse, tadawul).","parameters":[{"name":"feed","in":"path","required":true,"description":"Exchange or market feed slug (for example \"nyse\", \"nasdaq\", \"nse\").","schema":{"type":"string","pattern":"^[a-z0-9-]+$"}}],"responses":{"200":{"description":"iCalendar file.","content":{"text/calendar":{"schema":{"type":"string"}}}}}}}},"components":{"schemas":{"JsonRpcRequest":{"type":"object","required":["jsonrpc","method"],"properties":{"jsonrpc":{"type":"string","const":"2.0"},"id":{"type":["string","integer","null"]},"method":{"type":"string","description":"MCP method: initialize, ping, tools/list, tools/call, prompts/list, prompts/get, or notifications/*."},"params":{"type":"object"}}},"JsonRpcResponse":{"type":"object","required":["jsonrpc","id"],"properties":{"jsonrpc":{"type":"string","const":"2.0"},"id":{"type":["string","integer","null"]},"result":{"type":"object"},"error":{"type":"object","properties":{"code":{"type":"integer"},"message":{"type":"string"}}}}},"PropPlansResponse":{"type":"object","properties":{"about":{"type":"string"},"licence":{"type":"string"},"market":{"type":"string","enum":["futures","forex","crypto"]},"updated":{"type":["string","null"]},"firms":{"type":"object","additionalProperties":{"type":"object"}},"plans":{"type":"array","items":{"type":"object"}}}},"CfdLossRatesResponse":{"type":"object","required":["risk_warning","brokers"],"properties":{"about":{"type":"string"},"risk_warning":{"type":"string","description":"Mandatory FCA COBS 22.5 risk sentence."},"licence":{"type":"string"},"updated":{"type":["string","null"]},"source_page":{"type":"string","format":"uri"},"count":{"type":"integer"},"brokers":{"type":"array","items":{"type":"object","properties":{"broker":{"type":"string"},"slug":{"type":"string"},"loss_pct":{"type":"number"},"legal_entity":{"type":"string"},"regulator":{"type":["string","null"]},"checked":{"type":"string"},"source_url":{"type":"string","format":"uri"},"page_url":{"type":"string","format":"uri"}}}}}},"CryptoAccessResponse":{"type":"object","properties":{"about":{"type":"string"},"licence":{"type":"string"},"updated":{"type":["string","null"]},"states":{"type":"object","additionalProperties":{"type":"string"}},"exchanges":{"type":"array","items":{"type":"object"}}}},"EconomicReleasesResponse":{"type":"object","properties":{"about":{"type":"string"},"licence":{"type":"string"},"updated":{"type":["string","null"]},"event_types":{"type":"array","items":{"type":"object"}},"releases":{"type":"array","items":{"type":"object"}}}},"IndiaBrokersResponse":{"type":"object","properties":{"about":{"type":"string"},"licence":{"type":"string"},"updated":{"type":["string","null"]},"statutory":{"type":"object"},"brokers":{"type":"array","items":{"type":"object"}}}},"PropFirmPlan":{"type":"object","properties":{"plan":{"type":"string"},"account_size_usd":{"type":["integer","null"]},"eval_fee_usd":{"type":["number","null"]},"activation_fee_usd":{"type":["number","null"]},"true_cost_to_funded_usd":{"type":["number","null"]},"billing":{"type":["string","null"]},"drawdown":{"type":["string","null"]},"profit_split":{"type":["string","null"]},"steps":{"type":["string","null"]}}},"PropFirmLookupResponse":{"type":"object","required":["firm","rules","plans","cheapest_true_cost_plan","canonical_url","last_checked","license","verified_partner_code"],"properties":{"firm":{"type":"object"},"rules":{"type":"object"},"all_plans_count":{"type":"integer"},"plans":{"type":"array","items":{"$ref":"#/components/schemas/PropFirmPlan"}},"cheapest_true_cost_plan":{"oneOf":[{"$ref":"#/components/schemas/PropFirmPlan"},{"type":"null"}]},"canonical_url":{"type":"string","format":"uri"},"last_checked":{"type":["string","null"]},"license":{"type":"string","const":"CC BY 4.0"},"verified_partner_code":{"type":["object","null"],"description":"Live discount code issued directly to TradingLookup by this firm, or null.","properties":{"code":{"type":"string"},"gives":{"type":"string"},"percent_off":{"type":["number","null"]},"issued_to_tradinglookup_on":{"type":["string","null"]},"last_day":{"type":["string","null"]},"page":{"type":["string","null"],"format":"uri"},"disclosure":{"type":"string","const":"Ad"}},"required":["code","gives","disclosure"]}}},"PropFirmCompareResponse":{"type":"object","required":["canonical_url","last_checked","license","firm_a","firm_b","comparison"],"properties":{"canonical_url":{"type":"string","format":"uri"},"last_checked":{"type":["string","null"]},"license":{"type":"string","const":"CC BY 4.0"},"account_size_usd":{"type":"integer"},"firm_a":{"type":"object"},"firm_b":{"type":"object"},"comparison":{"type":"object"}}},"MarketHoursStatusResponse":{"type":"object","required":["as_of_utc","markets","canonical_url","last_checked","license"],"properties":{"as_of_utc":{"type":"string","format":"date-time"},"markets":{"type":"array","items":{"type":"object"}},"canonical_url":{"type":"string","format":"uri"},"last_checked":{"type":["string","null"]},"license":{"type":"string","const":"CC BY 4.0"}}},"EconomicCalendarLookupResponse":{"type":"object","required":["count","releases","canonical_url","last_checked","license"],"properties":{"count":{"type":"integer"},"total_matched":{"type":"integer"},"releases":{"type":"array","items":{"type":"object"}},"canonical_url":{"type":"string","format":"uri"},"last_checked":{"type":["string","null"]},"license":{"type":"string","const":"CC BY 4.0"}}},"CfdLossRatesLookupResponse":{"type":"object","required":["risk_warning","brokers","canonical_url","last_checked","license"],"properties":{"risk_warning":{"type":"string","const":"CFDs are complex instruments and come with a high risk of losing money rapidly due to leverage.","description":"Mandatory FCA COBS 22.5 sentence: \"CFDs are complex instruments and come with a high risk of losing money rapidly due to leverage.\""},"count":{"type":"integer"},"brokers":{"type":"array","items":{"type":"object"}},"canonical_url":{"type":"string","format":"uri"},"last_checked":{"type":["string","null"]},"license":{"type":"string","const":"CC BY 4.0"}}}}}}