Server definition
- Hash
- sha256:cb299de08a1fef6f6a61bd33d68928637bee9fa01050df129672ffb362710709
- What it is
- What a remote MCP server returned when asked what it offers: 19 tools
The blob, as servednamed by its sha256
{
"instructions": "ForexDemo.com tools. The calculate_* tools run the same calculations as the calculator pages on forexdemo.com and return a one-paragraph answer, every figure, the inputs used and any assumption made. No live prices are fetched: when a price is left out, the page's dated example price is used and the answer says so. find_demo_accounts and get_demo_account return Forex demo account research taken from each broker's own website, with the date it was checked, the broker's demo sign-up page and the ForexDemo.com page for that broker. search and fetch cover the same calculators and research. Every result includes the address of the ForexDemo.com page it comes from. For education. Not financial advice. Check figures with your broker before trading.",
"tools": [
{
"description": "The chance that a trading account loses a set share of its money (risk of ruin) within a number of trades, from the win rate, the average win and the risk per trade. Same calculation as the Account Survival Calculator page at https://forexdemo.com/account-survival-calculator.html. Every input is optional unless marked required; left-out inputs use the page's defaults, which are listed in the reply.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"reward": {
"description": "Average win as a multiple of the risk, such as 1.5.",
"type": "number"
},
"risk": {
"default": 2,
"description": "Risk per trade in percent. Give 2 for 2%.",
"type": "number"
},
"riskBase": {
"default": "current",
"description": "current: risk is a share of the current balance. start: of the starting balance.",
"enum": [
"current",
"start"
],
"type": "string"
},
"ruin": {
"default": 30,
"description": "Ruin level: the share of the account lost that counts as ruin. Give 2 for 2%.",
"type": "number"
},
"ruinType": {
"default": "start",
"description": "Where the ruin level is measured from: start or peak.",
"enum": [
"start",
"peak"
],
"type": "string"
},
"target": {
"description": "Optional profit target in percent. Give 2 for 2%.",
"type": "number"
},
"trades": {
"default": 200,
"description": "Number of trades to look ahead.",
"type": "number"
},
"winRate": {
"description": "Win rate in percent. Give 2 for 2%.",
"type": "number"
}
},
"required": [
"winRate",
"reward"
],
"type": "object"
},
"name": "calculate_account_survival",
"outputSchema": null
},
{
"description": "How an account grows when the same percentage gain is made every trade, day, week, month or year, with optional deposits, withdrawals and losing periods. Same calculation as the Forex Compounding Calculator page at https://forexdemo.com/forex-compounding-calculator.html. Every input is optional unless marked required; left-out inputs use the page's defaults, which are listed in the reply.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"balance": {
"default": 10000,
"description": "Starting balance.",
"type": "number"
},
"currency": {
"default": "USD",
"description": "The currency the trading account is held in.",
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CHF",
"CAD",
"AUD",
"NZD"
],
"type": "string"
},
"flow": {
"description": "Amount (or percentage for share) of each deposit or withdrawal.",
"type": "number"
},
"flowEvery": {
"description": "How many periods between deposits or withdrawals. Defaults to about once a month.",
"type": "string"
},
"flowType": {
"default": "none",
"description": "Optional regular money in or out: deposit, withdraw (an amount) or share (a percentage of the profit).",
"enum": [
"none",
"deposit",
"withdraw",
"share"
],
"type": "string"
},
"gain": {
"default": 2,
"description": "Gain per period in percent. Negative for a loss. Give 2 for 2%.",
"type": "number"
},
"lossCount": {
"description": "Not for period trade: how many losing periods in each group of lossEvery.",
"type": "number"
},
"lossEvery": {
"description": "Not for period trade: the size of the group, such as 1 loss every 4 months.",
"type": "number"
},
"lossPercent": {
"description": "The percentage lost in each losing period or losing trade. Give 2 for 2%.",
"type": "number"
},
"period": {
"default": "month",
"description": "How often the gain is made.",
"enum": [
"trade",
"day",
"week",
"month",
"year"
],
"type": "string"
},
"periods": {
"default": 12,
"description": "Number of periods.",
"type": "number"
},
"target": {
"description": "Optional target balance.",
"type": "number"
},
"winRate": {
"description": "Only for period trade: the share of trades that win. Give 2 for 2%.",
"type": "number"
}
},
"type": "object"
},
"name": "calculate_compounding",
"outputSchema": null
},
{
"description": "What a run of losing trades does to an account, the gain needed to win it back, how likely such a run is, and the chance of reaching a drawdown limit. Same calculation as the Forex Drawdown Calculator page at https://forexdemo.com/forex-drawdown-calculator.html. Every input is optional unless marked required; left-out inputs use the page's defaults, which are listed in the reply.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"balance": {
"default": 10000,
"description": "Account balance.",
"type": "number"
},
"currency": {
"default": "USD",
"description": "The currency the trading account is held in.",
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CHF",
"CAD",
"AUD",
"NZD"
],
"type": "string"
},
"limit": {
"default": 20,
"description": "Drawdown limit in percent, such as a prop firm's. Give 2 for 2%.",
"type": "number"
},
"limitType": {
"default": "peak",
"description": "Where the limit is measured from: peak (highest balance), start (starting balance) or lock (trailing until it locks at the start).",
"enum": [
"peak",
"start",
"lock"
],
"type": "string"
},
"losses": {
"default": 10,
"description": "Losing trades in a row.",
"type": "number"
},
"reward": {
"default": 1.5,
"description": "Average win as a multiple of the risk, such as 1.5.",
"type": "number"
},
"risk": {
"default": 2,
"description": "Risk per trade in percent. Give 2 for 2%.",
"type": "number"
},
"riskBase": {
"default": "current",
"description": "current: risk is a share of the current balance. start: of the starting balance.",
"enum": [
"current",
"start"
],
"type": "string"
},
"trades": {
"default": 100,
"description": "Number of trades to look ahead.",
"type": "number"
},
"winRate": {
"default": 50,
"description": "Win rate in percent, for the chance of a losing run. Give 2 for 2%.",
"type": "number"
}
},
"type": "object"
},
"name": "calculate_drawdown",
"outputSchema": null
},
{
"description": "Tick value, the value of a one-point move and the profit or loss of a trade for CME Group futures such as ES, MES, NQ, MNQ, CL, GC and 6E. Same calculation as the Futures Calculator page at https://forexdemo.com/futures-calculator.html. Every input is optional unless marked required; left-out inputs use the page's defaults, which are listed in the reply.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"amount": {
"description": "Dollar amount (mode dollars).",
"type": "number"
},
"contract": {
"description": "Contract symbol, or custom with tickSize and tickValue.",
"enum": [
"ES",
"MES",
"NQ",
"MNQ",
"YM",
"MYM",
"RTY",
"M2K",
"6E",
"M6E",
"6J",
"MJY",
"6B",
"M6B",
"6A",
"M6A",
"6C",
"MCD",
"6S",
"MSF",
"6N",
"GC",
"MGC",
"SI",
"SIL",
"HG",
"MHG",
"CL",
"MCL",
"NG",
"MNG",
"MBT",
"custom"
],
"type": "string"
},
"contracts": {
"default": 1,
"description": "Number of contracts.",
"type": "number"
},
"entry": {
"description": "Entry price (mode prices).",
"type": "number"
},
"exit": {
"description": "Exit price (mode prices).",
"type": "number"
},
"fee": {
"description": "Optional fee per contract, in US dollars.",
"type": "number"
},
"feeBasis": {
"default": "side",
"description": "side or round trip.",
"enum": [
"side",
"round"
],
"type": "string"
},
"mode": {
"default": "prices",
"description": "prices: profit or loss from entry and exit prices. move: value of a move. dollars: the move that makes a dollar amount.",
"enum": [
"prices",
"move",
"dollars"
],
"type": "string"
},
"moveSize": {
"description": "Size of the move (mode move).",
"type": "number"
},
"moveUnit": {
"default": "move",
"description": "Unit of moveSize: move (the contract's own point, pip or dollar step) or ticks.",
"enum": [
"move",
"ticks"
],
"type": "string"
},
"side": {
"default": "buy",
"description": "buy (long) or sell (short).",
"enum": [
"buy",
"sell"
],
"type": "string"
},
"stop": {
"description": "Optional stop price (mode prices).",
"type": "number"
},
"tickSize": {
"description": "Custom contract only: tick size.",
"type": "number"
},
"tickValue": {
"description": "Custom contract only: tick value in US dollars.",
"type": "number"
}
},
"required": [
"contract"
],
"type": "object"
},
"name": "calculate_futures",
"outputSchema": null
},
{
"description": "How many futures contracts fit the amount a trader is willing to lose at the stop, with the micro contract as a finer alternative. Same calculation as the Futures Calculator: how many contracts page at https://forexdemo.com/futures-calculator.html#how-many-contracts. Every input is optional unless marked required; left-out inputs use the page's defaults, which are listed in the reply.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"risk": {
"description": "The most you are willing to lose on the trade, in US dollars.",
"type": "number"
},
"sizeContract": {
"description": "Contract symbol.",
"enum": [
"ES",
"MES",
"NQ",
"MNQ",
"YM",
"MYM",
"RTY",
"M2K",
"6E",
"M6E",
"6J",
"MJY",
"6B",
"M6B",
"6A",
"M6A",
"6C",
"MCD",
"6S",
"MSF",
"6N",
"GC",
"MGC",
"SI",
"SIL",
"HG",
"MHG",
"CL",
"MCL",
"NG",
"MNG",
"MBT"
],
"type": "string"
},
"sizeEntry": {
"description": "Entry price (stopUnit prices).",
"type": "number"
},
"sizeFee": {
"description": "Optional fee per contract, in US dollars.",
"type": "number"
},
"sizeFeeBasis": {
"default": "side",
"description": "side or round trip.",
"enum": [
"side",
"round"
],
"type": "string"
},
"sizeStopPrice": {
"description": "Stop price (stopUnit prices).",
"type": "number"
},
"stopDistance": {
"description": "Distance to the stop, in stopUnit (move or ticks).",
"type": "number"
},
"stopUnit": {
"default": "move",
"description": "How the stop is given: move (the contract's own point, pip or dollar step), ticks, or prices (sizeEntry and sizeStopPrice).",
"enum": [
"move",
"ticks",
"prices"
],
"type": "string"
}
},
"required": [
"sizeContract",
"risk"
],
"type": "object"
},
"name": "calculate_futures_contracts",
"outputSchema": null
},
{
"description": "The share of an account to risk on each trade that grows it fastest over many trades (the Kelly criterion), half and quarter Kelly, and what a chosen risk gives. Same calculation as the Kelly Criterion Calculator page at https://forexdemo.com/kelly-criterion-calculator.html. Every input is optional unless marked required; left-out inputs use the page's defaults, which are listed in the reply.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"balance": {
"description": "Optional account balance, to show amounts.",
"type": "number"
},
"reward": {
"description": "Average win as a multiple of the average loss, such as 1.5.",
"type": "number"
},
"risk": {
"default": 2,
"description": "Risk per trade in percent, to compare with Kelly. Give 2 for 2%.",
"type": "number"
},
"sample": {
"description": "Optional: how many past trades the win rate comes from, to show how sure it is.",
"type": "number"
},
"trades": {
"default": 200,
"description": "Number of trades to look ahead.",
"type": "number"
},
"winRate": {
"description": "Win rate in percent. Give 2 for 2%.",
"type": "number"
}
},
"required": [
"winRate",
"reward"
],
"type": "object"
},
"name": "calculate_kelly",
"outputSchema": null
},
{
"description": "Margin needed to open a Forex or gold trade at a given leverage or margin percentage, and, with a balance, the free margin, margin level and the prices of the margin call and stop out. Same calculation as the Margin and Leverage Calculator page at https://forexdemo.com/forex-margin-calculator.html. Every input is optional unless marked required; left-out inputs use the page's defaults, which are listed in the reply.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"balance": {
"description": "Optional account balance, for free margin, margin level and margin call prices.",
"type": "number"
},
"currency": {
"default": "USD",
"description": "The currency the trading account is held in.",
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CHF",
"CAD",
"AUD",
"NZD"
],
"type": "string"
},
"leverage": {
"default": "50",
"description": "Leverage, such as 30 or 1:30.",
"type": "string"
},
"marginCallLevel": {
"default": 100,
"description": "Margin call level in percent.",
"type": "number"
},
"marginMode": {
"default": "leverage",
"description": "leverage: give leverage. percent: give the margin requirement as a percentage.",
"enum": [
"leverage",
"percent"
],
"type": "string"
},
"marginPercent": {
"description": "Margin requirement in percent (marginMode percent). Give 2 for 2%.",
"type": "number"
},
"pair": {
"default": "EUR/USD",
"description": "Currency pair or gold (XAU/USD). EURUSD and eur-usd are accepted too.",
"enum": [
"EUR/USD",
"GBP/USD",
"USD/JPY",
"USD/CHF",
"USD/CAD",
"AUD/USD",
"NZD/USD",
"EUR/GBP",
"EUR/JPY",
"GBP/JPY",
"AUD/JPY",
"CAD/JPY",
"CHF/JPY",
"NZD/JPY",
"EUR/CHF",
"EUR/CAD",
"EUR/AUD",
"EUR/NZD",
"GBP/CHF",
"GBP/CAD",
"GBP/AUD",
"GBP/NZD",
"AUD/CAD",
"AUD/CHF",
"AUD/NZD",
"NZD/CAD",
"NZD/CHF",
"CAD/CHF",
"XAU/USD"
],
"type": "string"
},
"price": {
"description": "Pair price when the trade opens. Leave it out to use the example price.",
"type": "number"
},
"rate": {
"description": "Only needed when the account currency is not in the pair: the price of the market pair that converts it (for example the GBP/USD price for EUR/GBP in a USD account). Leave it out to use the example price.",
"type": "number"
},
"side": {
"default": "buy",
"description": "buy (long) or sell (short).",
"enum": [
"buy",
"sell"
],
"type": "string"
},
"size": {
"default": 1,
"description": "Trade size, counted in sizeUnit.",
"type": "number"
},
"sizeUnit": {
"default": "standard",
"description": "How the size is given: standard (100,000 units), mini (10,000), micro (1,000), nano (100) lots, or units.",
"enum": [
"standard",
"mini",
"micro",
"nano",
"units"
],
"type": "string"
},
"stopOutLevel": {
"default": 50,
"description": "Stop out level in percent.",
"type": "number"
}
},
"type": "object"
},
"name": "calculate_margin",
"outputSchema": null
},
{
"description": "What one pip is worth in the account currency for a Forex pair or gold at a given trade size, and optionally the profit or loss of a move in pips. Same calculation as the Pip Calculator page at https://forexdemo.com/pip-calculator.html. Every input is optional unless marked required; left-out inputs use the page's defaults, which are listed in the reply.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"currency": {
"default": "USD",
"description": "The currency the trading account is held in.",
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CHF",
"CAD",
"AUD",
"NZD"
],
"type": "string"
},
"goldPip": {
"default": "0.01",
"description": "Gold only: the price change your broker calls one pip.",
"enum": [
"0.01",
"0.10"
],
"type": "string"
},
"moveUnit": {
"default": "pips",
"description": "Unit of pipsMoved: pips, points (MetaTrader, 10 points = 1 pip) or, for gold only, dollars an ounce.",
"enum": [
"pips",
"points",
"dollars"
],
"type": "string"
},
"pair": {
"default": "EUR/USD",
"description": "Currency pair or gold (XAU/USD). EURUSD and eur-usd are accepted too.",
"enum": [
"EUR/USD",
"GBP/USD",
"USD/JPY",
"USD/CHF",
"USD/CAD",
"AUD/USD",
"NZD/USD",
"EUR/GBP",
"EUR/JPY",
"GBP/JPY",
"AUD/JPY",
"CAD/JPY",
"CHF/JPY",
"NZD/JPY",
"EUR/CHF",
"EUR/CAD",
"EUR/AUD",
"EUR/NZD",
"GBP/CHF",
"GBP/CAD",
"GBP/AUD",
"GBP/NZD",
"AUD/CAD",
"AUD/CHF",
"AUD/NZD",
"NZD/CAD",
"NZD/CHF",
"CAD/CHF",
"XAU/USD"
],
"type": "string"
},
"pipsMoved": {
"description": "Optional price move to value. Negative for a loss.",
"type": "number"
},
"rate": {
"description": "Only needed when the account currency is not in the pair: the price of the market pair that converts it (for example the GBP/USD price for EUR/GBP in a USD account). Leave it out to use the example price shown on the page.",
"type": "number"
},
"size": {
"default": 1,
"description": "Trade size, counted in sizeUnit.",
"type": "number"
},
"sizeUnit": {
"default": "standard",
"description": "How the size is given: standard (100,000 units), mini (10,000), micro (1,000), nano (100) lots, or units.",
"enum": [
"standard",
"mini",
"micro",
"nano",
"units"
],
"type": "string"
}
},
"type": "object"
},
"name": "calculate_pip",
"outputSchema": null
},
{
"description": "How many lots to trade so that hitting the stop-loss loses a set percentage or amount of the account. Same calculation as the Position Size Calculator page at https://forexdemo.com/position-size-calculator.html. Every input is optional unless marked required; left-out inputs use the page's defaults, which are listed in the reply.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"balance": {
"default": 10000,
"description": "Account balance in the account currency. Needed when riskMode is percent.",
"type": "number"
},
"commission": {
"description": "Optional commission per standard lot, in the account currency.",
"type": "number"
},
"commissionBasis": {
"default": "side",
"description": "side: charged when opening and again when closing. round: once per round trip.",
"enum": [
"side",
"round"
],
"type": "string"
},
"costUnit": {
"default": "pips",
"description": "Unit of spread and slippage.",
"enum": [
"pips",
"points"
],
"type": "string"
},
"currency": {
"default": "USD",
"description": "The currency the trading account is held in.",
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CHF",
"CAD",
"AUD",
"NZD"
],
"type": "string"
},
"entry": {
"description": "Entry price (stopMode prices).",
"type": "number"
},
"lotStep": {
"default": "0.01",
"description": "The smallest size step your broker allows.",
"enum": [
"1",
"0.1",
"0.01",
"0.001",
"units"
],
"type": "string"
},
"pair": {
"default": "EUR/USD",
"description": "Currency pair, such as EUR/USD. EURUSD and eur-usd are accepted too.",
"enum": [
"EUR/USD",
"GBP/USD",
"USD/JPY",
"USD/CHF",
"USD/CAD",
"AUD/USD",
"NZD/USD",
"EUR/GBP",
"EUR/JPY",
"GBP/JPY",
"AUD/JPY",
"CAD/JPY",
"CHF/JPY",
"NZD/JPY",
"EUR/CHF",
"EUR/CAD",
"EUR/AUD",
"EUR/NZD",
"GBP/CHF",
"GBP/CAD",
"GBP/AUD",
"GBP/NZD",
"AUD/CAD",
"AUD/CHF",
"AUD/NZD",
"NZD/CAD",
"NZD/CHF",
"CAD/CHF"
],
"type": "string"
},
"price": {
"description": "Optional pair price, for the position value. Leave it out to use the example price.",
"type": "number"
},
"rate": {
"description": "Only needed when the account currency is not in the pair: the price of the market pair that converts it (for example the GBP/USD price for EUR/GBP in a USD account). Required when the account currency is not in the pair.",
"type": "number"
},
"risk": {
"default": 1,
"description": "Risk per trade: a percentage (1 for 1%) or an amount, per riskMode.",
"type": "number"
},
"riskMode": {
"default": "percent",
"description": "percent: risk is a percentage of the balance. money: risk is an amount in the account currency.",
"enum": [
"percent",
"money"
],
"type": "string"
},
"side": {
"default": "buy",
"description": "buy (long) or sell (short).",
"enum": [
"buy",
"sell"
],
"type": "string"
},
"slippage": {
"description": "Optional stop slippage allowance, in costUnit.",
"type": "number"
},
"spread": {
"description": "Optional spread to add to the stop distance, in costUnit (buys only, as on the page).",
"type": "number"
},
"stop": {
"description": "Stop-loss price (stopMode prices).",
"type": "number"
},
"stopMode": {
"default": "pips",
"description": "pips: give the stop distance in stopPips. prices: give the entry and stop prices.",
"enum": [
"pips",
"prices"
],
"type": "string"
},
"stopPips": {
"default": 50,
"description": "Stop-loss distance (stopMode pips).",
"type": "number"
},
"stopUnit": {
"default": "pips",
"description": "Unit of stopPips: pips or points (10 points = 1 pip).",
"enum": [
"pips",
"points"
],
"type": "string"
}
},
"type": "object"
},
"name": "calculate_position_size",
"outputSchema": null
},
{
"description": "Profit or loss of one Forex or gold trade from its open and close prices, in pips and in the account currency, before and after spread, commission and swap. Same calculation as the Forex Profit Calculator page at https://forexdemo.com/forex-profit-calculator.html. Every input is optional unless marked required; left-out inputs use the page's defaults, which are listed in the reply.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"balance": {
"description": "Optional account balance, to show the result as a percentage.",
"type": "number"
},
"close": {
"description": "Close price, or the price you expect.",
"type": "number"
},
"commission": {
"description": "Optional commission per standard lot, in the account currency.",
"type": "number"
},
"commissionBasis": {
"default": "side",
"description": "side: charged when opening and again when closing. round: once per round trip.",
"enum": [
"side",
"round"
],
"type": "string"
},
"currency": {
"default": "USD",
"description": "The currency the trading account is held in.",
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CHF",
"CAD",
"AUD",
"NZD"
],
"type": "string"
},
"open": {
"description": "Open price.",
"type": "number"
},
"pair": {
"default": "EUR/USD",
"description": "Currency pair or gold (XAU/USD). EURUSD and eur-usd are accepted too.",
"enum": [
"EUR/USD",
"GBP/USD",
"USD/JPY",
"USD/CHF",
"USD/CAD",
"AUD/USD",
"NZD/USD",
"EUR/GBP",
"EUR/JPY",
"GBP/JPY",
"AUD/JPY",
"CAD/JPY",
"CHF/JPY",
"NZD/JPY",
"EUR/CHF",
"EUR/CAD",
"EUR/AUD",
"EUR/NZD",
"GBP/CHF",
"GBP/CAD",
"GBP/AUD",
"GBP/NZD",
"AUD/CAD",
"AUD/CHF",
"AUD/NZD",
"NZD/CAD",
"NZD/CHF",
"CAD/CHF",
"XAU/USD"
],
"type": "string"
},
"rate": {
"description": "Only needed when the account currency is not in the pair: the price of the market pair that converts it (for example the GBP/USD price for EUR/GBP in a USD account). Required when neither currency of the pair is the account currency.",
"type": "number"
},
"side": {
"default": "buy",
"description": "buy (long) or sell (short).",
"enum": [
"buy",
"sell"
],
"type": "string"
},
"size": {
"default": 1,
"description": "Trade size, counted in sizeUnit.",
"type": "number"
},
"sizeUnit": {
"default": "standard",
"description": "How the size is given: standard (100,000 units), mini (10,000), micro (1,000), nano (100) lots, or units.",
"enum": [
"standard",
"mini",
"micro",
"nano",
"units"
],
"type": "string"
},
"spread": {
"description": "Optional spread, in spreadUnit.",
"type": "number"
},
"spreadUnit": {
"default": "pips",
"description": "Unit of spread: pips, or points as MetaTrader shows it.",
"enum": [
"pips",
"points"
],
"type": "string"
},
"stop": {
"description": "Optional stop-loss price.",
"type": "number"
},
"swap": {
"description": "Optional overnight swap for all nights held, in the account currency. A charge has a minus sign, such as -12.50.",
"type": "string"
},
"target": {
"description": "Optional take-profit price.",
"type": "number"
}
},
"required": [
"open",
"close"
],
"type": "object"
},
"name": "calculate_profit",
"outputSchema": null
},
{
"description": "Risk-reward ratio of a trade from its entry, stop-loss and take-profit, the win rate at which trades of that shape break even, and the likely result over many trades. Same calculation as the Risk Reward Calculator page at https://forexdemo.com/risk-reward-calculator.html. Every input is optional unless marked required; left-out inputs use the page's defaults, which are listed in the reply.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"currency": {
"default": "USD",
"description": "The currency the trading account is held in.",
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CHF",
"CAD",
"AUD",
"NZD"
],
"type": "string"
},
"distanceUnit": {
"default": "pips",
"description": "Unit of the distances (mode distance).",
"enum": [
"pips",
"points",
"ticks",
"other"
],
"type": "string"
},
"entry": {
"description": "Entry price (mode prices). Leave all three prices out to use the example trade.",
"type": "number"
},
"mode": {
"default": "prices",
"description": "prices: give entry, stop and target prices. distance: give stopDistance and targetDistance.",
"enum": [
"prices",
"distance"
],
"type": "string"
},
"pair": {
"default": "EUR/USD",
"description": "Pair, used for pip size in prices mode. EURUSD and eur-usd are accepted too.",
"enum": [
"EUR/USD",
"GBP/USD",
"USD/JPY",
"USD/CHF",
"USD/CAD",
"AUD/USD",
"NZD/USD",
"EUR/GBP",
"EUR/JPY",
"GBP/JPY",
"AUD/JPY",
"CAD/JPY",
"CHF/JPY",
"NZD/JPY",
"EUR/CHF",
"EUR/CAD",
"EUR/AUD",
"EUR/NZD",
"GBP/CHF",
"GBP/CAD",
"GBP/AUD",
"GBP/NZD",
"AUD/CAD",
"AUD/CHF",
"AUD/NZD",
"NZD/CAD",
"NZD/CHF",
"CAD/CHF",
"XAU/USD"
],
"type": "string"
},
"riskAmount": {
"description": "Optional amount risked per trade, in the account currency.",
"type": "number"
},
"spread": {
"description": "Optional spread, in pips (prices mode) or the distance unit.",
"type": "number"
},
"stop": {
"description": "Stop-loss price (mode prices).",
"type": "number"
},
"stopDistance": {
"description": "Stop-loss distance (mode distance).",
"type": "number"
},
"target": {
"description": "Take-profit price (mode prices).",
"type": "number"
},
"targetDistance": {
"description": "Take-profit distance (mode distance).",
"type": "number"
},
"trades": {
"default": 100,
"description": "Number of trades for the result over many trades.",
"type": "number"
},
"winRate": {
"default": 40,
"description": "Win rate in percent, for the result over many trades. Give 2 for 2%.",
"type": "number"
}
},
"type": "object"
},
"name": "calculate_risk_reward",
"outputSchema": null
},
{
"description": "What slippage (the difference between the price asked for and the price filled) costs per trade, per month and over a period. Same calculation as the Forex Slippage Calculator page at https://forexdemo.com/forex-slippage-calculator.html. Every input is optional unless marked required; left-out inputs use the page's defaults, which are listed in the reply.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"averageWinPips": {
"description": "Optional average win in pips, to compare the slippage with the average win.",
"type": "number"
},
"currency": {
"default": "quote",
"description": "Currency to show costs in: quote (the pair's second currency) or another currency.",
"enum": [
"quote",
"EUR",
"GBP",
"JPY",
"CHF",
"CAD",
"AUD",
"NZD"
],
"type": "string"
},
"entry": {
"description": "Slippage on entry per trade, in slippageUnit.",
"type": "number"
},
"exit": {
"description": "Slippage on exit per trade, in slippageUnit.",
"type": "number"
},
"months": {
"default": 12,
"description": "Number of months.",
"type": "number"
},
"pair": {
"default": "EUR/USD",
"description": "Currency pair, such as EUR/USD. EURUSD and eur-usd are accepted too.",
"enum": [
"EUR/USD",
"GBP/USD",
"USD/JPY",
"USD/CHF",
"USD/CAD",
"AUD/USD",
"NZD/USD",
"EUR/GBP",
"EUR/JPY",
"GBP/JPY",
"AUD/JPY",
"CAD/JPY",
"CHF/JPY",
"NZD/JPY",
"EUR/CHF",
"EUR/CAD",
"EUR/AUD",
"EUR/NZD",
"GBP/CHF",
"GBP/CAD",
"GBP/AUD",
"GBP/NZD",
"AUD/CAD",
"AUD/CHF",
"AUD/NZD",
"NZD/CAD",
"NZD/CHF",
"CAD/CHF"
],
"type": "string"
},
"precision": {
"default": "fractional",
"description": "Only for points: fractional when prices have 5 decimals (3 for yen pairs), whole when they have 4 (2 for yen pairs).",
"enum": [
"fractional",
"whole"
],
"type": "string"
},
"rate": {
"description": "Only needed when the account currency is not in the pair: the price of the market pair that converts it (for example the GBP/USD price for EUR/GBP in a USD account). Required when currency is not quote.",
"type": "number"
},
"size": {
"default": 1,
"description": "Average size per trade, in sizeUnit.",
"type": "number"
},
"sizeUnit": {
"default": "lots",
"description": "lots (100,000 units each) or units.",
"enum": [
"lots",
"units"
],
"type": "string"
},
"slippageUnit": {
"default": "pips",
"description": "pips or points.",
"enum": [
"pips",
"points"
],
"type": "string"
},
"stopPips": {
"description": "Optional stop distance in pips, to compare the slippage with the risk.",
"type": "number"
},
"trades": {
"default": 40,
"description": "Completed trades per month.",
"type": "number"
}
},
"required": [
"entry",
"exit"
],
"type": "object"
},
"name": "calculate_slippage",
"outputSchema": null
},
{
"description": "Overnight swap (rollover) cost or credit of holding a Forex position, night by night including the triple day, from the swap rates a platform shows. Same calculation as the Forex Swap Calculator page at https://forexdemo.com/forex-swap-calculator.html. Every input is optional unless marked required; left-out inputs use the page's defaults, which are listed in the reply.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"amountCurrency": {
"default": "quote",
"description": "Only for money: the currency the swap amounts are in.",
"enum": [
"quote",
"base",
"account"
],
"type": "string"
},
"balance": {
"description": "Optional account balance, for effective leverage.",
"type": "number"
},
"currency": {
"default": "USD",
"description": "The currency the trading account is held in.",
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CHF",
"CAD",
"AUD",
"NZD"
],
"type": "string"
},
"long": {
"description": "Swap long (for buys), exactly as the platform shows it, in swapUnit. A charge has a minus sign, such as -9.17.",
"type": "string"
},
"nights": {
"default": 7,
"description": "Nights the trade is held.",
"type": "number"
},
"openDay": {
"default": "Monday",
"description": "Day the trade is opened.",
"enum": [
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday",
"Sunday"
],
"type": "string"
},
"pair": {
"default": "EUR/USD",
"description": "Currency pair, such as EUR/USD. EURUSD and eur-usd are accepted too.",
"enum": [
"EUR/USD",
"GBP/USD",
"USD/JPY",
"USD/CHF",
"USD/CAD",
"AUD/USD",
"NZD/USD",
"EUR/GBP",
"EUR/JPY",
"GBP/JPY",
"AUD/JPY",
"CAD/JPY",
"CHF/JPY",
"NZD/JPY",
"EUR/CHF",
"EUR/CAD",
"EUR/AUD",
"EUR/NZD",
"GBP/CHF",
"GBP/CAD",
"GBP/AUD",
"GBP/NZD",
"AUD/CAD",
"AUD/CHF",
"AUD/NZD",
"NZD/CAD",
"NZD/CHF",
"CAD/CHF"
],
"type": "string"
},
"precision": {
"default": "fractional",
"description": "Only for points: fractional when prices have 5 decimals (3 for yen pairs), whole when they have 4 (2 for yen pairs).",
"enum": [
"fractional",
"whole"
],
"type": "string"
},
"price": {
"description": "Pair price. Needed for percent swaps, base-currency money swaps, and when the account currency is the pair's first currency.",
"type": "number"
},
"rate": {
"description": "Only needed when the account currency is not in the pair: the price of the market pair that converts it (for example the GBP/USD price for EUR/GBP in a USD account). Required when neither currency of the pair is the account currency.",
"type": "number"
},
"short": {
"description": "Swap short (for sells), exactly as the platform shows it, in swapUnit.",
"type": "string"
},
"side": {
"default": "buy",
"description": "buy (long) or sell (short).",
"enum": [
"buy",
"sell"
],
"type": "string"
},
"size": {
"default": 1,
"description": "Trade size, counted in sizeUnit.",
"type": "number"
},
"sizeUnit": {
"default": "lots",
"description": "lots (100,000 units each) or units.",
"enum": [
"lots",
"units"
],
"type": "string"
},
"swapUnit": {
"default": "points",
"description": "The unit the platform shows the swap in: points (MetaTrader), pips, percent a year, or money per standard lot per night.",
"enum": [
"points",
"pips",
"percent",
"money"
],
"type": "string"
},
"tripleDay": {
"default": "Wednesday",
"description": "The night that counts three days of interest. Usually Wednesday (Thursday for USD/CAD at some brokers).",
"enum": [
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday"
],
"type": "string"
},
"yearBasis": {
"default": "365",
"description": "Only for percent: the number of days in the broker's interest year.",
"enum": [
"365",
"360"
],
"type": "string"
}
},
"required": [
"long",
"short"
],
"type": "object"
},
"name": "calculate_swap",
"outputSchema": null
},
{
"description": "Win rate from the number of winning and losing trades, how sure that win rate is, and, with the average win and loss, the break-even win rate, profit factor and expectancy. Same calculation as the Win Rate Calculator page at https://forexdemo.com/win-rate-calculator.html. Every input is optional unless marked required; left-out inputs use the page's defaults, which are listed in the reply.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"averageLoss": {
"description": "Optional average loss, in money, without a minus sign.",
"type": "number"
},
"averageWin": {
"description": "Optional average win, in money.",
"type": "number"
},
"cost": {
"description": "Optional cost per trade (spread and commission), in money.",
"type": "number"
},
"flat": {
"description": "Optional number of break-even trades.",
"type": "number"
},
"losses": {
"description": "Number of losing trades.",
"type": "number"
},
"target": {
"description": "Optional win rate to reach, in percent. Give 2 for 2%.",
"type": "number"
},
"wins": {
"description": "Number of winning trades.",
"type": "number"
}
},
"required": [
"wins",
"losses"
],
"type": "object"
},
"name": "calculate_win_rate",
"outputSchema": null
},
{
"description": "What a carry trade earns or pays in swap over a holding period, its yearly carry yield, how far the price can move against it before the swap is used up, and what a sharp unwind like 2024 would cost. Same calculation as the Yen Carry Trade Calculator page at https://forexdemo.com/yen-carry-trade-calculator.html. Every input is optional unless marked required; left-out inputs use the page's defaults, which are listed in the reply.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"amountCurrency": {
"default": "quote",
"description": "Only for money: the currency the swap amounts are in.",
"enum": [
"quote",
"base",
"account"
],
"type": "string"
},
"balance": {
"description": "Optional account balance.",
"type": "number"
},
"currency": {
"default": "USD",
"description": "The currency the trading account is held in.",
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CHF",
"CAD",
"AUD",
"NZD"
],
"type": "string"
},
"holding": {
"default": 3,
"description": "Holding period, in holdingUnit.",
"type": "number"
},
"holdingUnit": {
"default": "months",
"description": "Unit of the holding period.",
"enum": [
"days",
"weeks",
"months"
],
"type": "string"
},
"long": {
"description": "Swap long (for buys), exactly as the platform shows it, in swapUnit. A charge has a minus sign, such as -9.17.",
"type": "string"
},
"openDay": {
"default": "Monday",
"description": "Day the trade is opened.",
"enum": [
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday",
"Sunday"
],
"type": "string"
},
"pair": {
"default": "USD/JPY",
"description": "Currency pair. The yen pairs are the classic carry trades; the other pairs work too.",
"enum": [
"EUR/USD",
"GBP/USD",
"USD/JPY",
"USD/CHF",
"USD/CAD",
"AUD/USD",
"NZD/USD",
"EUR/GBP",
"EUR/JPY",
"GBP/JPY",
"AUD/JPY",
"CAD/JPY",
"CHF/JPY",
"NZD/JPY",
"EUR/CHF",
"EUR/CAD",
"EUR/AUD",
"EUR/NZD",
"GBP/CHF",
"GBP/CAD",
"GBP/AUD",
"GBP/NZD",
"AUD/CAD",
"AUD/CHF",
"AUD/NZD",
"NZD/CAD",
"NZD/CHF",
"CAD/CHF"
],
"type": "string"
},
"precision": {
"default": "fractional",
"description": "Only for points: fractional when prices have 5 decimals (3 for yen pairs), whole when they have 4 (2 for yen pairs).",
"enum": [
"fractional",
"whole"
],
"type": "string"
},
"price": {
"description": "Pair price now.",
"type": "number"
},
"rate": {
"description": "Only needed when the account currency is not in the pair: the price of the market pair that converts it (for example the GBP/USD price for EUR/GBP in a USD account). Required when the account currency is not in the pair.",
"type": "number"
},
"short": {
"description": "Swap short (for sells), exactly as the platform shows it, in swapUnit.",
"type": "string"
},
"side": {
"default": "buy",
"description": "buy (long) or sell (short).",
"enum": [
"buy",
"sell"
],
"type": "string"
},
"size": {
"default": 1,
"description": "Trade size, counted in sizeUnit.",
"type": "number"
},
"sizeUnit": {
"default": "lots",
"description": "lots (100,000 units each) or units.",
"enum": [
"lots",
"units"
],
"type": "string"
},
"swapUnit": {
"default": "points",
"description": "The unit the platform shows the swap in: points (MetaTrader), pips, percent a year, or money per standard lot per night.",
"enum": [
"points",
"pips",
"percent",
"money"
],
"type": "string"
},
"tripleDay": {
"default": "Wednesday",
"description": "The night that counts three days of interest.",
"enum": [
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday"
],
"type": "string"
},
"yearBasis": {
"default": "365",
"description": "Only for percent: the number of days in the broker's interest year.",
"enum": [
"365",
"360"
],
"type": "string"
}
},
"required": [
"price",
"long",
"short"
],
"type": "object"
},
"name": "calculate_yen_carry",
"outputSchema": null
},
{
"description": "Read one ForexDemo.com search result in full by its id from search: a calculator with its inputs and a worked example, a broker with all its researched demo accounts, or one demo account.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"id": {
"description": "An id from search, such as \"calculator:pip\", \"broker:oanda\" or \"demo:oanda-mt4-us\".",
"maxLength": 120,
"type": "string"
}
},
"required": [
"id"
],
"type": "object"
},
"name": "fetch",
"outputSchema": null
},
{
"description": "Search ForexDemo.com's research on Forex demo accounts at 59 brokers by broker, platform, the country of the broker company and how long the demo lasts. Returns each demo's time limit, starting virtual money, the date it was checked, the broker's demo sign-up page and the ForexDemo.com page.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"broker": {
"description": "Broker name or part of it, such as \"IG\", \"OANDA\" or \"FOREX.com\". Leave out for every broker.",
"maxLength": 80,
"type": "string"
},
"limit": {
"default": 10,
"description": "How many demo accounts to return, 1 to 25.",
"maximum": 25,
"minimum": 1,
"type": "integer"
},
"platform": {
"default": "any",
"description": "Trading platform: mt4 (MetaTrader 4), mt5 (MetaTrader 5), ctrader, tradingview, web (the broker's own platform or app), jforex, ticktrader, tws (Interactive Brokers) or rstockstrader.",
"enum": [
"any",
"mt4",
"mt5",
"ctrader",
"tradingview",
"web",
"jforex",
"ticktrader",
"tws",
"rstockstrader"
],
"type": "string"
},
"region": {
"description": "Country of the broker company that provides the demo, as a name or code, such as \"United States\", \"US\", \"UK\" or \"Australia\". This is where the company is licensed, not a list of countries it accepts.",
"maxLength": 60,
"type": "string"
},
"timeLimit": {
"default": "any",
"description": "none: demos with no time limit. fixed: demos that close a set number of days after opening. active: demos that stay open while you keep logging in or trading. unknown: the broker does not say.",
"enum": [
"any",
"none",
"fixed",
"active",
"unknown"
],
"type": "string"
}
},
"type": "object"
},
"name": "find_demo_accounts",
"outputSchema": null
},
{
"description": "Full ForexDemo.com research for one demo account, by the id from find_demo_accounts: the company that provides it, how long it lasts, the virtual money, the date checked, the sign-up page and the broker's own pages the facts come from.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"id": {
"description": "The demo account id from find_demo_accounts, such as \"oanda-mt4-us\".",
"maxLength": 100,
"type": "string"
}
},
"required": [
"id"
],
"type": "object"
},
"name": "get_demo_account",
"outputSchema": null
},
{
"description": "Search ForexDemo.com's calculators, brokers and demo account research by keywords. Returns up to 10 results, each with an id for fetch, a title and the ForexDemo.com address.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"query": {
"description": "Words to search for, such as \"pip value\", \"swap\" or \"OANDA demo\".",
"maxLength": 200,
"type": "string"
}
},
"required": [
"query"
],
"type": "object"
},
"name": "search",
"outputSchema": null
}
]
}Verify it yourself
curl -s https://api.teppi.xyz/v1/evidence/sha256:cb299de08a1fef6f6a61bd33d68928637bee9fa01050df129672ffb362710709 | sha256sum