{
  "openapi": "3.1.0",
  "info": {
    "title": "Match My Firm API",
    "version": "1.0.0",
    "description": "Free, read-only API over Match My Firm's verified broker terms, on the same engine as the MCP server. Parameters go in JSON POST bodies; query strings are rejected. No key, no cookies. Attribution is required: show \"Data: Match My Firm, https://matchmyfirm.com\" with a plain link wherever you display the figures. Disclosure: Match My Firm may earn a commission when someone opens an account with a broker it lists. Ranking and inclusion are pure arithmetic on verified fields and never depend on commercial relationships. General information only, not financial advice."
  },
  "servers": [
    {
      "url": "/"
    }
  ],
  "paths": {
    "/api/v1/compare": {
      "post": {
        "operationId": "compare",
        "summary": "Monthly all-in cost of a trading scenario, ranked",
        "description": "Ranks only options whose every cost input is verified. Options with unverified inputs are listed under incomplete and are never cheapest. avg_trade_value is optional; without it each trade is priced at the account size and the assumptions say so.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "scenario": {
                    "type": "object",
                    "properties": {
                      "country": {
                        "type": "string",
                        "pattern": "^[A-Z]{2}$"
                      },
                      "base_currency": {
                        "type": "string",
                        "pattern": "^[A-Z]{3}$"
                      },
                      "account_size": {
                        "type": "object",
                        "properties": {
                          "amount": {
                            "type": "number",
                            "minimum": 0
                          },
                          "currency": {
                            "type": "string",
                            "pattern": "^[A-Z]{3}$"
                          }
                        },
                        "required": [
                          "amount",
                          "currency"
                        ],
                        "additionalProperties": false
                      },
                      "trades": {
                        "minItems": 1,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "market": {
                              "type": "string",
                              "pattern": "^[A-Z][A-Z0-9_]*$"
                            },
                            "round_trips_per_month": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "avg_trade_value": {
                              "type": "object",
                              "properties": {
                                "amount": {
                                  "type": "number",
                                  "minimum": 0
                                },
                                "currency": {
                                  "type": "string",
                                  "pattern": "^[A-Z]{3}$"
                                }
                              },
                              "required": [
                                "amount",
                                "currency"
                              ],
                              "additionalProperties": false
                            },
                            "shares": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "contracts": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "instrument": {
                              "type": "string",
                              "minLength": 1
                            }
                          },
                          "required": [
                            "market",
                            "round_trips_per_month"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "fx_mode": {
                        "type": "string",
                        "enum": [
                          "convert_per_trade",
                          "hold_foreign_currency"
                        ]
                      },
                      "deposit_method": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "required": [
                      "country",
                      "base_currency",
                      "account_size",
                      "trades"
                    ],
                    "additionalProperties": false,
                    "description": "Scenario parameters only; no personal details. avg_trade_value is optional per trade; when omitted each trade is assumed to use the whole account size, which compare states in its assumptions."
                  },
                  "broker_ids": {
                    "description": "Limit to these broker ids. Omit to price every broker. Known ids: charles-schwab, cmc-invest, cmc-markets, commsec, degiro, etoro, fidelity, firstrade, flatex, fp-markets, freetrade, ic-markets, ig, interactive-brokers, lightyear, moomoo, oanda, pepperstone, plus500, public, revolut, robinhood, scalable-capital, stake, superhero, tastytrade, tiger-brokers, totality, trade-republic, trading212, webull, xtb",
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                    }
                  }
                },
                "required": [
                  "scenario"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "firm_risk",
                    "disclosure",
                    "attribution"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "description": "The engine result. Every amount carries source_url, verified_at and a verbatim evidence quote."
                    },
                    "firm_risk": {
                      "type": "array",
                      "description": "For each broker listed: entity_id (the legal entity that serves the country asked for, or null when no country applies), the verdict and warnings for that entity, and group_notes for warnings that concern a different company in the same group. With no entity, warnings lists every flag and each names the company in concerns. Never affects ranking.",
                      "items": {
                        "type": "object"
                      }
                    },
                    "disclosure": {
                      "type": "string"
                    },
                    "attribution": {
                      "type": "object",
                      "description": "Required: show attribution.text with a plain link to attribution.url wherever you display the figures."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid body, or a query string was sent"
          },
          "413": {
            "description": "Body over 16 KB"
          },
          "429": {
            "description": "Rate limited by the edge firewall"
          }
        }
      }
    },
    "/api/v1/find-brokers": {
      "post": {
        "operationId": "findBrokers",
        "summary": "Brokers a resident can use, filtered by features",
        "description": "Every filter is matched against a verified field. Does not calculate costs.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "country": {
                    "description": "Residency as ISO 3166-1 alpha-2, e.g. GB, US, DE, AU",
                    "type": "string",
                    "pattern": "^[A-Z]{2}$"
                  },
                  "market": {
                    "description": "Market id, e.g. US_STOCKS, AU_STOCKS, FX",
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]*$"
                  },
                  "platform": {
                    "description": "Platform name substring, e.g. TradingView, MT5, iOS",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 40
                  },
                  "regulator": {
                    "description": "Regulator acronym, e.g. ASIC, FCA, SEC",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 40
                  },
                  "base_currency": {
                    "description": "Account base currency the user wants, ISO 4217",
                    "type": "string",
                    "pattern": "^[A-Z]{3}$"
                  },
                  "max_min_deposit": {
                    "description": "Exclude account types whose minimum deposit exceeds this",
                    "type": "object",
                    "properties": {
                      "amount": {
                        "type": "number",
                        "minimum": 0
                      },
                      "currency": {
                        "type": "string",
                        "pattern": "^[A-Z]{3}$"
                      }
                    },
                    "required": [
                      "amount",
                      "currency"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "firm_risk",
                    "disclosure",
                    "attribution"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "description": "The engine result. Every amount carries source_url, verified_at and a verbatim evidence quote."
                    },
                    "firm_risk": {
                      "type": "array",
                      "description": "For each broker listed: entity_id (the legal entity that serves the country asked for, or null when no country applies), the verdict and warnings for that entity, and group_notes for warnings that concern a different company in the same group. With no entity, warnings lists every flag and each names the company in concerns. Never affects ranking.",
                      "items": {
                        "type": "object"
                      }
                    },
                    "disclosure": {
                      "type": "string"
                    },
                    "attribution": {
                      "type": "object",
                      "description": "Required: show attribution.text with a plain link to attribution.url wherever you display the figures."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid body, or a query string was sent"
          },
          "413": {
            "description": "Body over 16 KB"
          },
          "429": {
            "description": "Rate limited by the edge firewall"
          }
        }
      }
    },
    "/api/v1/brokers/{id}": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "enum": [
              "charles-schwab",
              "cmc-invest",
              "cmc-markets",
              "commsec",
              "degiro",
              "etoro",
              "fidelity",
              "firstrade",
              "flatex",
              "fp-markets",
              "freetrade",
              "ic-markets",
              "ig",
              "interactive-brokers",
              "lightyear",
              "moomoo",
              "oanda",
              "pepperstone",
              "plus500",
              "public",
              "revolut",
              "robinhood",
              "scalable-capital",
              "stake",
              "superhero",
              "tastytrade",
              "tiger-brokers",
              "totality",
              "trade-republic",
              "trading212",
              "webull",
              "xtb"
            ]
          }
        }
      ],
      "get": {
        "operationId": "getBroker",
        "summary": "Whole broker record with status and sources per field",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "firm_risk",
                    "disclosure",
                    "attribution"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "description": "The engine result. Every amount carries source_url, verified_at and a verbatim evidence quote."
                    },
                    "firm_risk": {
                      "type": "array",
                      "description": "For each broker listed: entity_id (the legal entity that serves the country asked for, or null when no country applies), the verdict and warnings for that entity, and group_notes for warnings that concern a different company in the same group. With no entity, warnings lists every flag and each names the company in concerns. Never affects ranking.",
                      "items": {
                        "type": "object"
                      }
                    },
                    "disclosure": {
                      "type": "string"
                    },
                    "attribution": {
                      "type": "object",
                      "description": "Required: show attribution.text with a plain link to attribution.url wherever you display the figures."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid body, or a query string was sent"
          },
          "404": {
            "description": "Unknown broker"
          },
          "413": {
            "description": "Body over 16 KB"
          },
          "429": {
            "description": "Rate limited by the edge firewall"
          }
        }
      },
      "post": {
        "operationId": "getBrokerFields",
        "summary": "Selected fields of one broker, for the entity serving a country",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "country": {
                    "description": "Residency (ISO 3166-1 alpha-2); selects the legal entity whose terms apply",
                    "type": "string",
                    "pattern": "^[A-Z]{2}$"
                  },
                  "fields": {
                    "description": "Field paths or prefixes",
                    "maxItems": 40,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 120
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "firm_risk",
                    "disclosure",
                    "attribution"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "description": "The engine result. Every amount carries source_url, verified_at and a verbatim evidence quote."
                    },
                    "firm_risk": {
                      "type": "array",
                      "description": "For each broker listed: entity_id (the legal entity that serves the country asked for, or null when no country applies), the verdict and warnings for that entity, and group_notes for warnings that concern a different company in the same group. With no entity, warnings lists every flag and each names the company in concerns. Never affects ranking.",
                      "items": {
                        "type": "object"
                      }
                    },
                    "disclosure": {
                      "type": "string"
                    },
                    "attribution": {
                      "type": "object",
                      "description": "Required: show attribution.text with a plain link to attribution.url wherever you display the figures."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid body, or a query string was sent"
          },
          "404": {
            "description": "Unknown broker"
          },
          "413": {
            "description": "Body over 16 KB"
          },
          "429": {
            "description": "Rate limited by the edge firewall"
          }
        }
      }
    },
    "/api/v1/openapi.json": {
      "get": {
        "operationId": "openApi",
        "summary": "This document",
        "responses": {
          "200": {
            "description": "OpenAPI 3.1 document"
          }
        }
      }
    },
    "/api/v1/trading-tools/compare": {
      "post": {
        "operationId": "compareTradingTools",
        "summary": "Monthly cost of trading platforms, charting and market data, ranked",
        "description": "Calculate what a trader pays each month for a trading platform or charting package plus exchange market data, and rank providers cheapest first. Use this for 'cheapest platform for futures order flow', 'what does TradingView plus CME data cost', 'NinjaTrader lease or lifetime', 'what does CME depth-of-market data cost for a non-professional', or 'platform cost on top of a prop firm' (set data to 'provided' when the firm supplies the data feed). The total covers the plan or licence (monthly, annual and lifetime are compared over horizon_months), per-exchange data fees for non-professional or professional users, connection fees and per-contract platform fees. Only verified list prices rank; 'from' and promo-only prices are lower bounds and never ranked; a provider with an unverified input or capability is listed separately and must not be called cheapest. Broker commission and exchange execution fees are not included; use compare for broker costs. Known provider ids: agenatrader, amibroker, atas, bookmap, cqg, databento, exocharts, finviz, gocharting, iqfeed, jigsaw-daytradr, koyfin, medved-trader, metastock, motivewave, ninjatrader, optimus-flow, prorealtime, quantower, rithmic, sierra-chart, tc2000, tickblaze, tiger-trade, tradingview, tradovate, trendspider, volfix.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "scenario": {
                    "type": "object",
                    "properties": {
                      "needs": {
                        "description": "What the platform must do: charting, futures_execution (place live futures orders), order_flow (depth of market, footprint, heatmap), automation, backtesting. Omit or leave empty to compare market data alone, data feeds included",
                        "maxItems": 5,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "charting",
                            "futures_execution",
                            "order_flow",
                            "automation",
                            "backtesting"
                          ]
                        }
                      },
                      "exchanges": {
                        "description": "Exchanges whose real-time data is needed, e.g. ['CME'] for ES/NQ, ['CBOT'] for YM/ZN, ['NYMEX'] for CL, ['COMEX'] for GC",
                        "maxItems": 16,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "CME",
                            "CBOT",
                            "NYMEX",
                            "COMEX",
                            "EUREX",
                            "ICE_US",
                            "ICE_EU",
                            "CFE",
                            "NASDAQ",
                            "NYSE",
                            "NYSE_ARCA",
                            "OPRA",
                            "LSE",
                            "ASX",
                            "SGX",
                            "HKEX"
                          ]
                        }
                      },
                      "user_type": {
                        "description": "Exchange status: non_pro (default) or pro. Professional data fees are much higher",
                        "type": "string",
                        "enum": [
                          "non_pro",
                          "pro"
                        ]
                      },
                      "depth": {
                        "description": "Data depth needed. Default: depth_of_market when order_flow is needed, else top_of_book",
                        "type": "string",
                        "enum": [
                          "top_of_book",
                          "depth_of_market",
                          "market_by_order"
                        ]
                      },
                      "monthly_contracts": {
                        "description": "Round-turn contracts traded per month, for per-contract platform fees. Default 0",
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1000000
                      },
                      "horizon_months": {
                        "description": "Months of use the cost is averaged over (default 12). A lifetime licence is spread over this",
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 120
                      },
                      "data": {
                        "description": "'provided' when a prop firm or broker already supplies the market data, so only platform cost is priced. Default buy",
                        "type": "string",
                        "enum": [
                          "buy",
                          "provided"
                        ]
                      },
                      "base_currency": {
                        "description": "Currency for the totals, ISO 4217. Default USD",
                        "type": "string",
                        "pattern": "^[A-Z]{3}$"
                      }
                    },
                    "description": "Scenario parameters only; no personal details."
                  },
                  "provider_ids": {
                    "description": "Limit to these provider ids. Known: agenatrader, amibroker, atas, bookmap, cqg, databento, exocharts, finviz, gocharting, iqfeed, jigsaw-daytradr, koyfin, medved-trader, metastock, motivewave, ninjatrader, optimus-flow, prorealtime, quantower, rithmic, sierra-chart, tc2000, tickblaze, tiger-trade, tradingview, tradovate, trendspider, volfix",
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                    }
                  }
                },
                "required": [
                  "scenario"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK: { data, disclosure, attribution }. Every amount in data carries source_url, verified_at and a verbatim evidence quote."
          },
          "400": {
            "description": "Invalid body, or a query string was sent"
          }
        }
      }
    },
    "/api/v1/trading-tools/{id}": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "enum": [
              "agenatrader",
              "amibroker",
              "atas",
              "bookmap",
              "cqg",
              "databento",
              "exocharts",
              "finviz",
              "gocharting",
              "iqfeed",
              "jigsaw-daytradr",
              "koyfin",
              "medved-trader",
              "metastock",
              "motivewave",
              "ninjatrader",
              "optimus-flow",
              "prorealtime",
              "quantower",
              "rithmic",
              "sierra-chart",
              "tc2000",
              "tickblaze",
              "tiger-trade",
              "tradingview",
              "tradovate",
              "trendspider",
              "volfix"
            ]
          }
        }
      ],
      "get": {
        "operationId": "getTradingTool",
        "summary": "One provider's verified prices with status and sources per field",
        "responses": {
          "200": {
            "description": "OK: { data, disclosure, attribution }. Every amount in data carries source_url, verified_at and a verbatim evidence quote."
          },
          "404": {
            "description": "Unknown provider"
          }
        }
      }
    },
    "/api/v1/money-transfer/compare": {
      "post": {
        "operationId": "compareMoneyTransfers",
        "summary": "Monthly cost of sending money abroad, ranked",
        "description": "Calculate what it costs to send money abroad with each provider (Wise, Revolut, banks, PayPal and others) and rank them cheapest first. Use this for any question about sending money overseas, international transfer fees, exchange-rate margins, or 'cheapest way to send X to Y'. The cost is the transfer fee plus the FX margin over the mid-market rate, times transfers per month, plus any plan fee, in the send currency. Only options whose fee, margin and plan fee are all verified from the provider's own published terms are ranked. A provider that only shows its rate in a live quote has an unknown margin: it is listed under incomplete and must not be called cheapest. 'From' prices and margins measured against a rate other than mid-market are listed under lower_bound as 'at least' figures and are never ranked. Every line item lists its source URL, verification date and quote. Input is scenario numbers only: send country, send currency, receive currency, amount and transfers per month.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "scenario": {
                    "type": "object",
                    "properties": {
                      "send_country": {
                        "type": "string",
                        "pattern": "^[A-Z]{2}$",
                        "description": "Sender's country of residence, ISO 3166-1 alpha-2"
                      },
                      "send_currency": {
                        "type": "string",
                        "pattern": "^[A-Z]{3}$",
                        "description": "Currency the sender pays in, ISO 4217"
                      },
                      "receive_currency": {
                        "type": "string",
                        "pattern": "^[A-Z]{3}$",
                        "description": "Currency the recipient is paid in, ISO 4217"
                      },
                      "amount": {
                        "type": "number",
                        "exclusiveMinimum": 0,
                        "maximum": 10000000,
                        "description": "Amount sent per transfer, in send_currency"
                      },
                      "transfers_per_month": {
                        "default": 1,
                        "description": "How many transfers a month; use 0.25 for one a quarter",
                        "type": "number",
                        "exclusiveMinimum": 0,
                        "maximum": 100
                      },
                      "pay_in": {
                        "description": "How the sender funds the transfer. Omit to take each provider's cheapest verified method.",
                        "type": "string",
                        "enum": [
                          "bank_transfer",
                          "debit_card",
                          "credit_card",
                          "account_balance",
                          "cash",
                          "direct_debit",
                          "wire"
                        ]
                      },
                      "pay_out": {
                        "default": "bank_account",
                        "description": "How the recipient is paid",
                        "type": "string",
                        "enum": [
                          "bank_account",
                          "cash_pickup",
                          "mobile_wallet",
                          "provider_account",
                          "card"
                        ]
                      }
                    },
                    "required": [
                      "send_country",
                      "send_currency",
                      "receive_currency",
                      "amount"
                    ],
                    "additionalProperties": false,
                    "description": "Scenario parameters only; no names, account numbers or other personal details."
                  },
                  "provider_ids": {
                    "description": "Limit to these provider ids. Omit to price every provider. Known ids: airwallex, anz, bendigo-bank, bunq, chase, commbank, currencyfair, first-direct, hsbc-au, hsbc-uk, instarem, monzo, n26, nab, nationwide, natwest, ofx, revolut, starling-bank, truist, us-bank, wells-fargo, western-union, westpac, worldfirst",
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                    }
                  }
                },
                "required": [
                  "scenario"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "disclosure",
                    "attribution"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "description": "The engine result. Every amount carries source_url, verified_at and a verbatim evidence quote."
                    },
                    "disclosure": {
                      "type": "string"
                    },
                    "attribution": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid body, or a query string was sent"
          },
          "413": {
            "description": "Body over 16 KB"
          },
          "429": {
            "description": "Rate limited by the edge firewall"
          }
        }
      }
    },
    "/api/v1/money-transfer/providers/{id}": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "enum": [
              "airwallex",
              "anz",
              "bendigo-bank",
              "bunq",
              "chase",
              "commbank",
              "currencyfair",
              "first-direct",
              "hsbc-au",
              "hsbc-uk",
              "instarem",
              "monzo",
              "n26",
              "nab",
              "nationwide",
              "natwest",
              "ofx",
              "revolut",
              "starling-bank",
              "truist",
              "us-bank",
              "wells-fargo",
              "western-union",
              "westpac",
              "worldfirst"
            ]
          }
        }
      ],
      "get": {
        "operationId": "getTransferProvider",
        "summary": "Whole provider record with status and sources per field",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "disclosure",
                    "attribution"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "description": "The engine result. Every amount carries source_url, verified_at and a verbatim evidence quote."
                    },
                    "disclosure": {
                      "type": "string"
                    },
                    "attribution": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid body, or a query string was sent"
          },
          "404": {
            "description": "Unknown provider"
          },
          "413": {
            "description": "Body over 16 KB"
          },
          "429": {
            "description": "Rate limited by the edge firewall"
          }
        }
      },
      "post": {
        "operationId": "getTransferProviderForCountry",
        "summary": "One provider's terms for the entity serving a country",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "country": {
                    "description": "Sender's country of residence (ISO 3166-1 alpha-2); selects the legal entity whose terms apply",
                    "type": "string",
                    "pattern": "^[A-Z]{2}$"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "disclosure",
                    "attribution"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "description": "The engine result. Every amount carries source_url, verified_at and a verbatim evidence quote."
                    },
                    "disclosure": {
                      "type": "string"
                    },
                    "attribution": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid body, or a query string was sent"
          },
          "404": {
            "description": "Unknown provider"
          },
          "413": {
            "description": "Body over 16 KB"
          },
          "429": {
            "description": "Rate limited by the edge firewall"
          }
        }
      }
    },
    "/api/v1/money-transfer/measured": {
      "get": {
        "operationId": "getMeasuredFxMargins",
        "summary": "Measured AU bank FX margins vs the RBA 4pm rate; never ranked",
        "description": "Return Measured exchange-rate margins for Australian banks' international money transfers from AUD to USD, GBP and EUR: each bank's public IMT sell rate read near 4.00 pm Sydney on business days, compared with the Reserve Bank of Australia's 4.00 pm rate. This is a separate evidence tier from verified published fees: label every figure 'Measured' and say 'Not a published fee; your rate can differ.' Measured figures never rank, never enter a cost total and must never be used to call a provider cheapest. Each series gives the median of the last 20 business days with the range and count, or, before 20 days exist, only the samples so far. Every sample carries both rates, both timestamps, source URLs and snapshot ids.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "disclosure",
                    "attribution"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "description": "The engine result. Every amount carries source_url, verified_at and a verbatim evidence quote."
                    },
                    "disclosure": {
                      "type": "string"
                    },
                    "attribution": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid body, or a query string was sent"
          },
          "413": {
            "description": "Body over 16 KB"
          },
          "429": {
            "description": "Rate limited by the edge firewall"
          }
        }
      },
      "post": {
        "operationId": "getMeasuredFxMarginsFiltered",
        "summary": "Measured margins for one provider or currency",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "provider_id": {
                    "description": "Limit to one provider id, for example anz or commbank",
                    "type": "string",
                    "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                  },
                  "receive_currency": {
                    "description": "Limit to one receive currency; the send currency is AUD",
                    "type": "string",
                    "enum": [
                      "USD",
                      "GBP",
                      "EUR"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "disclosure",
                    "attribution"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "description": "The engine result. Every amount carries source_url, verified_at and a verbatim evidence quote."
                    },
                    "disclosure": {
                      "type": "string"
                    },
                    "attribution": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid body, or a query string was sent"
          },
          "413": {
            "description": "Body over 16 KB"
          },
          "429": {
            "description": "Rate limited by the edge firewall"
          }
        }
      }
    },
    "/api/v1/crypto/compare": {
      "post": {
        "operationId": "compareCryptoExchanges",
        "summary": "Monthly cost of a deposit, buy and withdrawal scenario, ranked. Only options with every cost input verified are ranked; the rest are listed as incomplete lower bounds.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "scenario": {
                    "type": "object",
                    "properties": {
                      "country": {
                        "type": "string",
                        "pattern": "^[A-Z]{2}$"
                      },
                      "base_currency": {
                        "type": "string",
                        "pattern": "^[A-Z]{3}$"
                      },
                      "deposit": {
                        "type": "object",
                        "properties": {
                          "amount": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "number",
                                "minimum": 0
                              },
                              "currency": {
                                "type": "string",
                                "pattern": "^[A-Z]{3}$"
                              }
                            },
                            "required": [
                              "amount",
                              "currency"
                            ],
                            "additionalProperties": false
                          },
                          "per_month": {
                            "default": 1,
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "method": {
                            "type": "string",
                            "enum": [
                              "bank_transfer",
                              "payid",
                              "osko",
                              "bpay",
                              "card",
                              "apple_pay",
                              "google_pay",
                              "paypal",
                              "sepa",
                              "sepa_instant",
                              "faster_payments",
                              "chaps",
                              "ach",
                              "wire",
                              "swift",
                              "cash"
                            ]
                          }
                        },
                        "required": [
                          "amount"
                        ],
                        "additionalProperties": false
                      },
                      "monthly_buy_volume": {
                        "type": "object",
                        "properties": {
                          "amount": {
                            "type": "number",
                            "minimum": 0
                          },
                          "currency": {
                            "type": "string",
                            "pattern": "^[A-Z]{3}$"
                          }
                        },
                        "required": [
                          "amount",
                          "currency"
                        ],
                        "additionalProperties": false
                      },
                      "buys_per_month": {
                        "default": 1,
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 1000
                      },
                      "order_type": {
                        "type": "string",
                        "enum": [
                          "simple_buy",
                          "exchange_taker",
                          "exchange_maker"
                        ]
                      },
                      "fiat_withdrawals": {
                        "type": "object",
                        "properties": {
                          "amount": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "number",
                                "minimum": 0
                              },
                              "currency": {
                                "type": "string",
                                "pattern": "^[A-Z]{3}$"
                              }
                            },
                            "required": [
                              "amount",
                              "currency"
                            ],
                            "additionalProperties": false
                          },
                          "per_month": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100
                          },
                          "method": {
                            "type": "string",
                            "enum": [
                              "bank_transfer",
                              "payid",
                              "osko",
                              "bpay",
                              "card",
                              "apple_pay",
                              "google_pay",
                              "paypal",
                              "sepa",
                              "sepa_instant",
                              "faster_payments",
                              "chaps",
                              "ach",
                              "wire",
                              "swift",
                              "cash"
                            ]
                          }
                        },
                        "required": [
                          "amount",
                          "per_month"
                        ],
                        "additionalProperties": false
                      },
                      "crypto_withdrawals": {
                        "type": "object",
                        "properties": {
                          "asset": {
                            "type": "string",
                            "pattern": "^[A-Z0-9]{2,10}$"
                          },
                          "network": {
                            "type": "string",
                            "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                          },
                          "per_month": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100
                          },
                          "asset_price": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "number",
                                "minimum": 0
                              },
                              "currency": {
                                "type": "string",
                                "pattern": "^[A-Z]{3}$"
                              }
                            },
                            "required": [
                              "amount",
                              "currency"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "asset",
                          "per_month",
                          "asset_price"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "country",
                      "base_currency",
                      "deposit",
                      "monthly_buy_volume",
                      "order_type"
                    ],
                    "additionalProperties": false,
                    "description": "Scenario numbers only; no personal details. asset_price is the user's own price assumption for converting a fixed network fee."
                  },
                  "exchange_ids": {
                    "description": "Limit to these exchange ids. Omit to price every exchange. Known ids: bamboo, bison, bitonic, bsdex, coinbase, coinmerce, coinpass, etoro, finst, gemini, hardblock, interactive-brokers, luno, newton, okx, relai, revolut, robinhood, trade-republic, trading212, wayex, webull",
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                    }
                  }
                },
                "required": [
                  "scenario"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK: { data, disclosure, attribution }. Every amount in data carries source_url, verified_at and a verbatim evidence quote."
          },
          "400": {
            "description": "Invalid body, or a query string was sent"
          }
        }
      }
    },
    "/api/v1/crypto/find": {
      "post": {
        "operationId": "findCryptoExchanges",
        "summary": "Exchanges a resident can use, filtered on verified fields. Does not calculate costs.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "country": {
                    "description": "Residency as ISO 3166-1 alpha-2, e.g. AU, GB, US, DE",
                    "type": "string",
                    "pattern": "^[A-Z]{2}$"
                  },
                  "product": {
                    "description": "simple_buy: instant buy priced by the provider. exchange: order book with maker and taker fees",
                    "type": "string",
                    "enum": [
                      "simple_buy",
                      "exchange"
                    ]
                  },
                  "registration": {
                    "description": "Require this licence or registration, as stated on the provider's own site",
                    "type": "string",
                    "enum": [
                      "AUSTRAC_DCE",
                      "ASIC_AFSL",
                      "FCA_CRYPTOASSET",
                      "FCA_EMI",
                      "FINCEN_MSB",
                      "NYDFS_BITLICENSE",
                      "NYDFS_TRUST_CHARTER",
                      "US_STATE_MTL",
                      "MICA_CASP",
                      "EU_VASP",
                      "EU_MIFID",
                      "EU_BANK",
                      "OTHER"
                    ]
                  },
                  "deposit_method": {
                    "description": "Require a verified fee for this deposit rail",
                    "type": "string",
                    "enum": [
                      "bank_transfer",
                      "payid",
                      "osko",
                      "bpay",
                      "card",
                      "apple_pay",
                      "google_pay",
                      "paypal",
                      "sepa",
                      "sepa_instant",
                      "faster_payments",
                      "chaps",
                      "ach",
                      "wire",
                      "swift",
                      "cash"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK: { data, disclosure, attribution }. Every amount in data carries source_url, verified_at and a verbatim evidence quote."
          },
          "400": {
            "description": "Invalid body, or a query string was sent"
          }
        }
      }
    },
    "/api/v1/crypto/exchanges/{id}": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "enum": [
              "bamboo",
              "bison",
              "bitonic",
              "bsdex",
              "coinbase",
              "coinmerce",
              "coinpass",
              "etoro",
              "finst",
              "gemini",
              "hardblock",
              "interactive-brokers",
              "luno",
              "newton",
              "okx",
              "relai",
              "revolut",
              "robinhood",
              "trade-republic",
              "trading212",
              "wayex",
              "webull"
            ]
          }
        }
      ],
      "get": {
        "operationId": "getCryptoExchange",
        "summary": "Whole record with status and sources per field",
        "responses": {
          "200": {
            "description": "OK: { data, disclosure, attribution }. Every amount in data carries source_url, verified_at and a verbatim evidence quote."
          },
          "404": {
            "description": "Unknown exchange"
          }
        }
      },
      "post": {
        "operationId": "getCryptoExchangeForCountry",
        "summary": "Fields of the entity serving a country",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "country": {
                    "description": "Residency (ISO 3166-1 alpha-2); selects the legal entity whose terms apply",
                    "type": "string",
                    "pattern": "^[A-Z]{2}$"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK: { data, disclosure, attribution }. Every amount in data carries source_url, verified_at and a verbatim evidence quote."
          },
          "404": {
            "description": "Unknown exchange"
          }
        }
      }
    },
    "/api/v1/prop-firms/compare": {
      "post": {
        "operationId": "comparePropFirms",
        "summary": "Compare expected cost to first payout at futures prop firms",
        "description": "Calculate the expected cost to reach a first payout on a futures prop-firm account (e.g. 50K) at each firm, from verified list prices, reset, activation and data/platform fees, and rank cheapest first. The user must supply their own pass probability per attempt (p_pass) and the probability a funded account reaches its first payout (q_reach_payout); Match My Firm publishes no industry pass rate, so ask for them or show a range. Promo codes never change the ranking; current public offers are shown separately. Programs with any unverified cost field are listed as incomplete and never called cheapest. Returns line items with sources, assumptions and a sensitivity strip at 5/10/20/35% pass. Known firm ids: alpha-capital-group, alpha-futures, apex-trader-funding, aquafunded, blue-guardian, blusky, bulenox, day-traders, e8-markets, earn2trade, ftmo, funded-futures-family, fundednext, fundingtraders, fxify-futures, legends-trading, lucid-trading, maven-trading, myfundedfutures, phidias, purdia, savius, take-profit-trader, the5ers-futures, top-one-futures, topstep, tradeday, tradeify, uprofit, ylos-trading.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "scenario": {
                    "type": "object",
                    "properties": {
                      "account_size": {
                        "type": "object",
                        "properties": {
                          "amount": {
                            "type": "number",
                            "minimum": 0
                          },
                          "currency": {
                            "type": "string",
                            "pattern": "^[A-Z]{3}$"
                          }
                        },
                        "required": [
                          "amount",
                          "currency"
                        ],
                        "additionalProperties": false,
                        "description": "Account size, e.g. {amount: 50000, currency: USD}"
                      },
                      "p_pass": {
                        "type": "number",
                        "exclusiveMinimum": 0,
                        "maximum": 1,
                        "description": "The user's own probability of passing one evaluation attempt (0-1). Ask the user; there is no industry default"
                      },
                      "q_reach_payout": {
                        "type": "number",
                        "exclusiveMinimum": 0,
                        "maximum": 1,
                        "description": "The user's own probability that a funded account reaches its first payout before breaching (0-1)"
                      },
                      "months_per_attempt": {
                        "description": "Months to pass or fail one attempt. Default 1",
                        "type": "number",
                        "exclusiveMinimum": 0,
                        "maximum": 24
                      },
                      "months_funded_to_first_payout": {
                        "description": "Months funded before the first payout. Default 1",
                        "type": "number",
                        "exclusiveMinimum": 0,
                        "maximum": 24
                      },
                      "retry_mode": {
                        "description": "Retry with the reset fee where offered (default) or buy a new evaluation",
                        "type": "string",
                        "enum": [
                          "reset",
                          "rebuy"
                        ]
                      },
                      "country": {
                        "type": "string",
                        "pattern": "^[A-Z]{2}$"
                      },
                      "profile": {
                        "maxItems": 7,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "scalper",
                            "news",
                            "overnight",
                            "weekend",
                            "algo",
                            "copy",
                            "big_day"
                          ]
                        }
                      },
                      "platform": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 40
                      },
                      "stage": {
                        "description": "Stage the profile rules must hold for. Default both",
                        "type": "string",
                        "enum": [
                          "evaluation",
                          "funded",
                          "both"
                        ]
                      }
                    },
                    "required": [
                      "account_size",
                      "p_pass",
                      "q_reach_payout"
                    ],
                    "description": "Scenario parameters only; no personal details."
                  },
                  "firm_ids": {
                    "description": "Limit to these firm ids. Known: alpha-capital-group, alpha-futures, apex-trader-funding, aquafunded, blue-guardian, blusky, bulenox, day-traders, e8-markets, earn2trade, ftmo, funded-futures-family, fundednext, fundingtraders, fxify-futures, legends-trading, lucid-trading, maven-trading, myfundedfutures, phidias, purdia, savius, take-profit-trader, the5ers-futures, top-one-futures, topstep, tradeday, tradeify, uprofit, ylos-trading",
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                    }
                  }
                },
                "required": [
                  "scenario"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "firm_risk",
                    "disclosure",
                    "attribution"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "description": "Expected cost to first payout: ranked, incomplete, cant_confirm, ineligible, sensitivity, assumptions, reported_unverified."
                    },
                    "firm_risk": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "disclosure": {
                      "type": "string"
                    },
                    "attribution": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid body, or a query string was sent"
          },
          "413": {
            "description": "Body over 16 KB"
          },
          "429": {
            "description": "Rate limited by the edge firewall"
          }
        }
      }
    },
    "/api/v1/prop-firms/find": {
      "post": {
        "operationId": "findPropFirms",
        "summary": "Find futures prop firms by rules",
        "description": "List futures prop-firm programs whose verified rules fit a trader: country (checked against each firm's own restricted list), trading style (scalper, news, overnight, weekend, algo, copy, big_day = no consistency rule), platform, and no activation fee. Use this for 'which prop firms allow news trading / overnight / bots / copy trading', 'prop firms without a consistency rule', 'prop firms with no activation fee'. Results are alphabetical, not ranked; unverified rules land in cant_confirm and are never reported as allowed. Only firms whose website terms allow automated collection are in the verified results; firms we can't read may appear under reported_unverified with third-party figures, which are never ranked and must be presented as reported, not confirmed on the firm's own page. Known firm ids: alpha-capital-group, alpha-futures, apex-trader-funding, aquafunded, blue-guardian, blusky, bulenox, day-traders, e8-markets, earn2trade, ftmo, funded-futures-family, fundednext, fundingtraders, fxify-futures, legends-trading, lucid-trading, maven-trading, myfundedfutures, phidias, purdia, savius, take-profit-trader, the5ers-futures, top-one-futures, topstep, tradeday, tradeify, uprofit, ylos-trading.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "account_size": {
                    "description": "Account size, e.g. {amount: 50000, currency: USD}. Default 50,000 USD",
                    "type": "object",
                    "properties": {
                      "amount": {
                        "type": "number",
                        "minimum": 0
                      },
                      "currency": {
                        "type": "string",
                        "pattern": "^[A-Z]{3}$"
                      }
                    },
                    "required": [
                      "amount",
                      "currency"
                    ],
                    "additionalProperties": false
                  },
                  "country": {
                    "description": "Residency or citizenship as ISO 3166-1 alpha-2; checked against each firm's own restricted list",
                    "type": "string",
                    "pattern": "^[A-Z]{2}$"
                  },
                  "profile": {
                    "description": "Trading styles the rules must allow: scalper, news, overnight, weekend, algo, copy, big_day (no consistency rule)",
                    "maxItems": 7,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "scalper",
                        "news",
                        "overnight",
                        "weekend",
                        "algo",
                        "copy",
                        "big_day"
                      ]
                    }
                  },
                  "platform": {
                    "description": "Platform the user wants, e.g. Tradovate, Rithmic",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 40
                  },
                  "no_activation_fee": {
                    "description": "Only programs with no funded-account activation fee",
                    "type": "boolean"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "firm_risk",
                    "disclosure",
                    "attribution"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "description": "matches, excluded, reported_unverified. Filters run on verified rules only."
                    },
                    "firm_risk": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "disclosure": {
                      "type": "string"
                    },
                    "attribution": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid body, or a query string was sent"
          },
          "413": {
            "description": "Body over 16 KB"
          },
          "429": {
            "description": "Rate limited by the edge firewall"
          }
        }
      }
    },
    "/api/v1/prop-firms/firms/{id}": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "enum": [
              "alpha-capital-group",
              "alpha-futures",
              "apex-trader-funding",
              "aquafunded",
              "blue-guardian",
              "blusky",
              "bulenox",
              "day-traders",
              "e8-markets",
              "earn2trade",
              "ftmo",
              "funded-futures-family",
              "fundednext",
              "fundingtraders",
              "fxify-futures",
              "legends-trading",
              "lucid-trading",
              "maven-trading",
              "myfundedfutures",
              "phidias",
              "purdia",
              "savius",
              "take-profit-trader",
              "the5ers-futures",
              "top-one-futures",
              "topstep",
              "tradeday",
              "tradeify",
              "uprofit",
              "ylos-trading"
            ]
          }
        }
      ],
      "get": {
        "operationId": "getPropFirm",
        "summary": "Get one prop firm's verified terms",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "firm_risk",
                    "disclosure",
                    "attribution"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "description": "Every field with its status; verified fields carry source_url, verified_at and evidence, reported values carry a reported block."
                    },
                    "firm_risk": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "disclosure": {
                      "type": "string"
                    },
                    "attribution": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid body, or a query string was sent"
          },
          "404": {
            "description": "Unknown firm"
          },
          "413": {
            "description": "Body over 16 KB"
          },
          "429": {
            "description": "Rate limited by the edge firewall"
          }
        }
      },
      "post": {
        "operationId": "getPropFirmFields",
        "summary": "Get one prop firm's verified terms",
        "description": "Return one prop firm's terms field by field (prices, resets, activation, profit targets, drawdown amount and type, daily loss, consistency, payout split, schedule and caps, trading rules, restricted countries, entity, firm risk), each with its status and, when verified, the source URL, verification date and verbatim quote. Use it to quote a specific rule. Known firm ids: alpha-capital-group, alpha-futures, apex-trader-funding, aquafunded, blue-guardian, blusky, bulenox, day-traders, e8-markets, earn2trade, ftmo, funded-futures-family, fundednext, fundingtraders, fxify-futures, legends-trading, lucid-trading, maven-trading, myfundedfutures, phidias, purdia, savius, take-profit-trader, the5ers-futures, top-one-futures, topstep, tradeday, tradeify, uprofit, ylos-trading.",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "fields": {
                    "description": "Field id prefixes, e.g. phidias/program:fundamental",
                    "maxItems": 40,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 160
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "firm_risk",
                    "disclosure",
                    "attribution"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "description": "Every field with its status; verified fields carry source_url, verified_at and evidence, reported values carry a reported block."
                    },
                    "firm_risk": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "disclosure": {
                      "type": "string"
                    },
                    "attribution": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid body, or a query string was sent"
          },
          "404": {
            "description": "Unknown firm"
          },
          "413": {
            "description": "Body over 16 KB"
          },
          "429": {
            "description": "Rate limited by the edge firewall"
          }
        }
      }
    },
    "/api/v1/prop-firms/challenges": {
      "get": {
        "operationId": "listPropChallengesAll",
        "summary": "List prop firm challenges as a table (no filters)",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "firm_risk",
                    "disclosure",
                    "attribution"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "description": "{ query, verified: Row[], reported: Row[], price_sorted_rows, filtered_out, note }. Row: id, tier, firm_id, firm_name, program_id, program_name, asset_class, model, steps, size, and the cells price, profit_target, max_drawdown, daily_loss, min_trading_days, consistency, profit_split, payout_frequency, first_payout_conditions, activation_fee, reset_fee, plus later_phases[] for multi-step challenges and firm_risk. Each cell is { state: verified | reported | unverified | not_applicable, value, field, ... }: verified adds source_url, verified_at and evidence; reported adds publishers, as_of, age_days, confidence, label and sources."
                    },
                    "firm_risk": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "disclosure": {
                      "type": "string"
                    },
                    "attribution": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid body, or a query string was sent"
          },
          "413": {
            "description": "Body over 16 KB"
          },
          "429": {
            "description": "Rate limited by the edge firewall"
          }
        }
      },
      "post": {
        "operationId": "listPropChallenges",
        "summary": "List prop firm challenges as a table",
        "description": "List prop firm challenges, one row per program and account size, across futures, forex/CFD and crypto: list price, profit target, max drawdown and its type, daily loss, minimum days, consistency rule, profit split, payout timing, activation fee and reset fee. Every cell carries its evidence state: verified (firm's own page, with source and quote), reported (a third party said so, with publisher and age), unverified or not applicable. Use it to browse or filter challenges, or to show a table. Sorting by price orders only rows with a verified list price; reported rows are a separate group and are never ranked. For expected cost to a funded account use compare_prop_firms. Known firm ids: alpha-capital-group, alpha-futures, apex-trader-funding, aquafunded, blue-guardian, blusky, bulenox, day-traders, e8-markets, earn2trade, ftmo, funded-futures-family, fundednext, fundingtraders, fxify-futures, legends-trading, lucid-trading, maven-trading, myfundedfutures, phidias, purdia, savius, take-profit-trader, the5ers-futures, top-one-futures, topstep, tradeday, tradeify, uprofit, ylos-trading.",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "asset_class": {
                    "description": "FUTURES, FX_CFD or CRYPTO_PERPS. Omit for all",
                    "type": "string",
                    "enum": [
                      "FUTURES",
                      "FX_CFD",
                      "CRYPTO_PERPS"
                    ]
                  },
                  "account_size": {
                    "description": "Account size as a number, e.g. 50000. Omit for every size",
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "firm_ids": {
                    "description": "Limit to these firm ids. Known: alpha-capital-group, alpha-futures, apex-trader-funding, aquafunded, blue-guardian, blusky, bulenox, day-traders, e8-markets, earn2trade, ftmo, funded-futures-family, fundednext, fundingtraders, fxify-futures, legends-trading, lucid-trading, maven-trading, myfundedfutures, phidias, purdia, savius, take-profit-trader, the5ers-futures, top-one-futures, topstep, tradeday, tradeify, uprofit, ylos-trading",
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                    }
                  },
                  "model": {
                    "type": "string",
                    "enum": [
                      "one_step",
                      "two_step",
                      "three_step",
                      "instant",
                      "straight_to_funded"
                    ]
                  },
                  "drawdown_type": {
                    "description": "Keep only rows whose verified drawdown is this type",
                    "type": "string",
                    "enum": [
                      "static",
                      "eod_trailing",
                      "intraday_trailing",
                      "balance_trailing",
                      "equity_static"
                    ]
                  },
                  "max_price": {
                    "description": "Keep only rows whose verified list price is at most this",
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "no_activation_fee": {
                    "description": "Keep only rows with a verified no-activation-fee answer",
                    "type": "boolean"
                  },
                  "sort": {
                    "description": "firm (default), size, or price. Price orders only rows with a verified list price",
                    "type": "string",
                    "enum": [
                      "firm",
                      "price",
                      "size"
                    ]
                  },
                  "order": {
                    "type": "string",
                    "enum": [
                      "asc",
                      "desc"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "firm_risk",
                    "disclosure",
                    "attribution"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "description": "{ query, verified: Row[], reported: Row[], price_sorted_rows, filtered_out, note }. Row: id, tier, firm_id, firm_name, program_id, program_name, asset_class, model, steps, size, and the cells price, profit_target, max_drawdown, daily_loss, min_trading_days, consistency, profit_split, payout_frequency, first_payout_conditions, activation_fee, reset_fee, plus later_phases[] for multi-step challenges and firm_risk. Each cell is { state: verified | reported | unverified | not_applicable, value, field, ... }: verified adds source_url, verified_at and evidence; reported adds publishers, as_of, age_days, confidence, label and sources."
                    },
                    "firm_risk": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "disclosure": {
                      "type": "string"
                    },
                    "attribution": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid body, or a query string was sent"
          },
          "413": {
            "description": "Body over 16 KB"
          },
          "429": {
            "description": "Rate limited by the edge firewall"
          }
        }
      }
    },
    "/api/v1/prop-firms/offers": {
      "get": {
        "operationId": "listPropOffersAll",
        "summary": "List prop firms' public discount codes (no filters)",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "firm_risk",
                    "disclosure",
                    "attribution"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "description": "{ query, offers: Offer[], note }. Offer: id, firm_id, firm_name, code, pct_off?, amount_off?, includes_activation_waiver?, applies_to[{ program_id, program_name, asset_class, sizes? }], starts, ends, ends_stated, seen_at, source_url, evidence, used_in_ranking: false."
                    },
                    "firm_risk": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "disclosure": {
                      "type": "string"
                    },
                    "attribution": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid body, or a query string was sent"
          },
          "413": {
            "description": "Body over 16 KB"
          },
          "429": {
            "description": "Rate limited by the edge firewall"
          }
        }
      },
      "post": {
        "operationId": "listPropOffers",
        "summary": "List prop firms' public discount codes",
        "description": "List discount codes and promotions that prop firms publish on their own pages, with the date we saw each one and the end date when the firm states it. Use it for questions about current deals or promo codes. A promo never replaces the list price in any ranking, and no affiliate codes are included. Known firm ids: alpha-capital-group, alpha-futures, apex-trader-funding, aquafunded, blue-guardian, blusky, bulenox, day-traders, e8-markets, earn2trade, ftmo, funded-futures-family, fundednext, fundingtraders, fxify-futures, legends-trading, lucid-trading, maven-trading, myfundedfutures, phidias, purdia, savius, take-profit-trader, the5ers-futures, top-one-futures, topstep, tradeday, tradeify, uprofit, ylos-trading.",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "asset_class": {
                    "type": "string",
                    "enum": [
                      "FUTURES",
                      "FX_CFD",
                      "CRYPTO_PERPS"
                    ]
                  },
                  "firm_ids": {
                    "description": "Limit to these firm ids. Known: alpha-capital-group, alpha-futures, apex-trader-funding, aquafunded, blue-guardian, blusky, bulenox, day-traders, e8-markets, earn2trade, ftmo, funded-futures-family, fundednext, fundingtraders, fxify-futures, legends-trading, lucid-trading, maven-trading, myfundedfutures, phidias, purdia, savius, take-profit-trader, the5ers-futures, top-one-futures, topstep, tradeday, tradeify, uprofit, ylos-trading",
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "firm_risk",
                    "disclosure",
                    "attribution"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "description": "{ query, offers: Offer[], note }. Offer: id, firm_id, firm_name, code, pct_off?, amount_off?, includes_activation_waiver?, applies_to[{ program_id, program_name, asset_class, sizes? }], starts, ends, ends_stated, seen_at, source_url, evidence, used_in_ranking: false."
                    },
                    "firm_risk": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "disclosure": {
                      "type": "string"
                    },
                    "attribution": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid body, or a query string was sent"
          },
          "413": {
            "description": "Body over 16 KB"
          },
          "429": {
            "description": "Rate limited by the edge firewall"
          }
        }
      }
    },
    "/api/v1/brokers/offers": {
      "get": {
        "operationId": "offers_brokers",
        "summary": "Current offers published by brokers providers on their own sites; never used in ranking",
        "responses": {
          "200": {
            "description": "OK: { data, attribution }."
          }
        }
      }
    },
    "/api/v1/crypto/offers": {
      "get": {
        "operationId": "offers_crypto",
        "summary": "Current offers published by crypto providers on their own sites; never used in ranking",
        "responses": {
          "200": {
            "description": "OK: { data, attribution }."
          }
        }
      }
    },
    "/api/v1/money-transfer/offers": {
      "get": {
        "operationId": "offers_money_transfer",
        "summary": "Current offers published by money-transfer providers on their own sites; never used in ranking",
        "responses": {
          "200": {
            "description": "OK: { data, attribution }."
          }
        }
      }
    },
    "/api/v1/trading-tools/offers": {
      "get": {
        "operationId": "offers_trading_tools",
        "summary": "Current offers published by trading-tools providers on their own sites; never used in ranking",
        "responses": {
          "200": {
            "description": "OK: { data, attribution }."
          }
        }
      }
    },
    "/api/v1/history/{category}/{provider_id}": {
      "parameters": [
        {
          "name": "category",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "enum": [
              "brokers",
              "prop-firms",
              "crypto",
              "money-transfer",
              "trading-tools"
            ]
          }
        },
        {
          "name": "provider_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ],
      "get": {
        "operationId": "feeHistory",
        "summary": "Every change event for one provider, newest first: date, field, old and new value, kind (fee_change, correction or evidence_lost), source host",
        "responses": {
          "200": {
            "description": "OK: { data, disclosure, attribution }."
          },
          "404": {
            "description": "No history for that provider"
          }
        }
      }
    },
    "/api/v1/history/at": {
      "post": {
        "operationId": "feeHistoryAt",
        "summary": "A provider's verified field values as of a date, rebuilt from the change events",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "category": {
                    "type": "string",
                    "enum": [
                      "brokers",
                      "prop-firms",
                      "crypto",
                      "money-transfer",
                      "trading-tools"
                    ]
                  },
                  "provider_id": {
                    "type": "string",
                    "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                    "description": "Provider id, e.g. interactive-brokers, wise, topstep"
                  },
                  "date": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                    "description": "Date as YYYY-MM-DD (UTC end of day)"
                  }
                },
                "required": [
                  "category",
                  "provider_id",
                  "date"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK: { data, disclosure, attribution }."
          },
          "400": {
            "description": "Invalid request"
          },
          "404": {
            "description": "No history for that provider"
          }
        }
      }
    }
  }
}