Forex, gold and futures trading calculators and Forex demo account research at 59 brokers.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
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.
Average win as a multiple of the risk, such as 1.5.
Win rate in percent. Give 2 for 2%.
Risk per trade in percent. Give 2 for 2%.
Ruin level: the share of the account lost that counts as ruin. Give 2 for 2%.
Optional profit target in percent. Give 2 for 2%.
Number of trades to look ahead.
current: risk is a share of the current balance. start: of the starting balance.
Where the ruin level is measured from: start or peak.
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add --transport http forexdemo https://forexdemo.com/mcp
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.
| Argument | Type | Description |
|---|---|---|
| risk | number | Risk per trade in percent. Give 2 for 2%. |
| ruin | number | Ruin level: the share of the account lost that counts as ruin. Give 2 for 2%. |
| reward* | number | Average win as a multiple of the risk, such as 1.5. |
| target | number | Optional profit target in percent. Give 2 for 2%. |
| trades | number | Number of trades to look ahead. |
| winRate* | number | Win rate in percent. Give 2 for 2%. |
| riskBase | string | current: risk is a share of the current balance. start: of the starting balance. |
| ruinType | string | Where the ruin level is measured from: start or peak. |
{
"type": "object",
"required": [
"winRate",
"reward"
],
"properties": {
"risk": {
"type": "number",
"default": 2,
"description": "Risk per trade in percent. Give 2 for 2%."
},
"ruin": {
"type": "number",
"default": 30,
"description": "Ruin level: the share of the account lost that counts as ruin. Give 2 for 2%."
},
"reward": {
"type": "number",
"description": "Average win as a multiple of the risk, such as 1.5."
},
"target": {
"type": "number",
"description": "Optional profit target in percent. Give 2 for 2%."
},
"trades": {
"type": "number",
"default": 200,
"description": "Number of trades to look ahead."
},
"winRate": {
"type": "number",
"description": "Win rate in percent. Give 2 for 2%."
},
"riskBase": {
"enum": [
"current",
"start"
],
"type": "string",
"default": "current",
"description": "current: risk is a share of the current balance. start: of the starting balance."
},
"ruinType": {
"enum": [
"start",
"peak"
],
"type": "string",
"default": "start",
"description": "Where the ruin level is measured from: start or peak."
}
},
"additionalProperties": false
}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.
| Argument | Type | Description |
|---|---|---|
| flow | number | Amount (or percentage for share) of each deposit or withdrawal. |
| gain | number | Gain per period in percent. Negative for a loss. Give 2 for 2%. |
| period | string | How often the gain is made. |
| target | number | Optional target balance. |
| balance | number | Starting balance. |
| periods | number | Number of periods. |
| winRate | number | Only for period trade: the share of trades that win. Give 2 for 2%. |
| currency | string | The currency the trading account is held in. |
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.
| Argument | Type | Description |
|---|---|---|
| risk | number | Risk per trade in percent. Give 2 for 2%. |
| limit | number | Drawdown limit in percent, such as a prop firm's. Give 2 for 2%. |
| losses | number | Losing trades in a row. |
| reward | number | Average win as a multiple of the risk, such as 1.5. |
| trades | number | Number of trades to look ahead. |
| balance | number | Account balance. |
| winRate | number | Win rate in percent, for the chance of a losing run. Give 2 for 2%. |
| currency | string | The currency the trading account is held in. |
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.
| Argument | Type | Description |
|---|---|---|
| fee | number | Optional fee per contract, in US dollars. |
| exit | number | Exit price (mode prices). |
| mode | string | prices: profit or loss from entry and exit prices. move: value of a move. dollars: the move that makes a dollar amount. |
| side | string | buy (long) or sell (short). |
| stop | number | Optional stop price (mode prices). |
| entry | number | Entry price (mode prices). |
| amount | number | Dollar amount (mode dollars). |
| contract* | string | Contract symbol, or custom with tickSize and tickValue. |
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.
| Argument | Type | Description |
|---|---|---|
| risk* | number | The most you are willing to lose on the trade, in US dollars. |
| sizeFee | number | Optional fee per contract, in US dollars. |
| stopUnit | string | How the stop is given: move (the contract's own point, pip or dollar step), ticks, or prices (sizeEntry and sizeStopPrice). |
| sizeEntry | number | Entry price (stopUnit prices). |
| sizeContract* | string | Contract symbol. |
| sizeFeeBasis | string | side or round trip. |
| stopDistance | number | Distance to the stop, in stopUnit (move or ticks). |
| sizeStopPrice |
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.
| Argument | Type | Description |
|---|---|---|
| risk | number | Risk per trade in percent, to compare with Kelly. Give 2 for 2%. |
| reward* | number | Average win as a multiple of the average loss, such as 1.5. |
| sample | number | Optional: how many past trades the win rate comes from, to show how sure it is. |
| trades | number | Number of trades to look ahead. |
| balance | number | Optional account balance, to show amounts. |
| winRate* | number | Win rate in percent. Give 2 for 2%. |
{
"type": "object",
"required": [
"winRate",
"reward"
],
"properties": {
"risk": {
"type": "number",
"default": 2,
"description": "Risk per trade in percent, to compare with Kelly. Give 2 for 2%."
},
"reward": {
"type": "number",
"description": "Average win as a multiple of the average loss, such as 1.5."
},
"sample": {
"type": "number",
"description": "Optional: how many past trades the win rate comes from, to show how sure it is."
},
"trades": {
"type": "number",
"default": 200,
"description": "Number of trades to look ahead."
},
"balance": {
"type": "number",
"description": "Optional account balance, to show amounts."
},
"winRate": {
"type": "number",
"description": "Win rate in percent. Give 2 for 2%."
}
},
"additionalProperties": false
}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.
| Argument | Type | Description |
|---|---|---|
| pair | string | Currency pair or gold (XAU/USD). EURUSD and eur-usd are accepted too. |
| rate | number | 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. |
| side | string | buy (long) or sell (short). |
| size | number | Trade size, counted in sizeUnit. |
| price | number | Pair price when the trade opens. Leave it out to use the example price. |
| balance | number | Optional account balance, for free margin, margin level and margin call prices. |
| currency | string | The currency the trading account is held in. |
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.
| Argument | Type | Description |
|---|---|---|
| pair | string | Currency pair or gold (XAU/USD). EURUSD and eur-usd are accepted too. |
| rate | number | 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. |
| size | number | Trade size, counted in sizeUnit. |
| goldPip | string | Gold only: the price change your broker calls one pip. |
| currency | string | The currency the trading account is held in. |
| moveUnit | string | Unit of pipsMoved: pips, points (MetaTrader, 10 points = 1 pip) or, for gold only, dollars an ounce. |
| sizeUnit | string | How the size is given: standard (100,000 units), mini (10,000), micro (1,000), nano (100) lots, or units. |
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.
| Argument | Type | Description |
|---|---|---|
| pair | string | Currency pair, such as EUR/USD. EURUSD and eur-usd are accepted too. |
| rate | number | 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. |
| risk | number | Risk per trade: a percentage (1 for 1%) or an amount, per riskMode. |
| side | string | buy (long) or sell (short). |
| stop | number | Stop-loss price (stopMode prices). |
| entry | number | Entry price (stopMode prices). |
| price | number | Optional pair price, for the position value. Leave it out to use the example price. |
| spread |
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.
| Argument | Type | Description |
|---|---|---|
| open* | number | Open price. |
| pair | string | Currency pair or gold (XAU/USD). EURUSD and eur-usd are accepted too. |
| rate | number | 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. |
| side | string | buy (long) or sell (short). |
| size | number | Trade size, counted in sizeUnit. |
| stop | number | Optional stop-loss price. |
| swap | string | Optional overnight swap for all nights held, in the account currency. A charge has a minus sign, such as -12.50. |
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.
| Argument | Type | Description |
|---|---|---|
| mode | string | prices: give entry, stop and target prices. distance: give stopDistance and targetDistance. |
| pair | string | Pair, used for pip size in prices mode. EURUSD and eur-usd are accepted too. |
| stop | number | Stop-loss price (mode prices). |
| entry | number | Entry price (mode prices). Leave all three prices out to use the example trade. |
| spread | number | Optional spread, in pips (prices mode) or the distance unit. |
| target | number | Take-profit price (mode prices). |
| trades | number | Number of trades for the result over many trades. |
| winRate | number |
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.
| Argument | Type | Description |
|---|---|---|
| exit* | number | Slippage on exit per trade, in slippageUnit. |
| pair | string | Currency pair, such as EUR/USD. EURUSD and eur-usd are accepted too. |
| rate | number | 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. |
| size | number | Average size per trade, in sizeUnit. |
| entry* | number | Slippage on entry per trade, in slippageUnit. |
| months | number | Number of months. |
| trades | number | Completed trades per month. |
| currency |
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.
| Argument | Type | Description |
|---|---|---|
| long* | string | Swap long (for buys), exactly as the platform shows it, in swapUnit. A charge has a minus sign, such as -9.17. |
| pair | string | Currency pair, such as EUR/USD. EURUSD and eur-usd are accepted too. |
| rate | number | 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. |
| side | string | buy (long) or sell (short). |
| size | number | Trade size, counted in sizeUnit. |
| price | number | Pair price. Needed for percent swaps, base-currency money swaps, and when the account currency is the pair's first currency. |
| short* |
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.
| Argument | Type | Description |
|---|---|---|
| cost | number | Optional cost per trade (spread and commission), in money. |
| flat | number | Optional number of break-even trades. |
| wins* | number | Number of winning trades. |
| losses* | number | Number of losing trades. |
| target | number | Optional win rate to reach, in percent. Give 2 for 2%. |
| averageWin | number | Optional average win, in money. |
| averageLoss | number | Optional average loss, in money, without a minus sign. |
{
"type": "object",
"required": [
"wins",
"losses"
],
"properties": {
"cost": {
"type": "number",
"description": "Optional cost per trade (spread and commission), in money."
},
"flat": {
"type": "number",
"description": "Optional number of break-even trades."
},
"wins": {
"type": "number",
"description": "Number of winning trades."
},
"losses": {
"type": "number",
"description": "Number of losing trades."
},
"target": {
"type": "number",
"description": "Optional win rate to reach, in percent. Give 2 for 2%."
},
"averageWin": {
"type": "number",
"description": "Optional average win, in money."
},
"averageLoss": {
"type": "number",
"description": "Optional average loss, in money, without a minus sign."
}
},
"additionalProperties": false
}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.
| Argument | Type | Description |
|---|---|---|
| long* | string | Swap long (for buys), exactly as the platform shows it, in swapUnit. A charge has a minus sign, such as -9.17. |
| pair | string | Currency pair. The yen pairs are the classic carry trades; the other pairs work too. |
| rate | number | 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. |
| side | string | buy (long) or sell (short). |
| size | number | Trade size, counted in sizeUnit. |
| price* | number | Pair price now. |
| short* |
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.
| Argument | Type | Description |
|---|---|---|
| id* | string | An id from search, such as "calculator:pip", "broker:oanda" or "demo:oanda-mt4-us". |
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"maxLength": 120,
"description": "An id from search, such as \"calculator:pip\", \"broker:oanda\" or \"demo:oanda-mt4-us\"."
}
},
"additionalProperties": false
}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.
| Argument | Type | Description |
|---|---|---|
| limit | integer | How many demo accounts to return, 1 to 25. |
| broker | string | Broker name or part of it, such as "IG", "OANDA" or "FOREX.com". Leave out for every broker. |
| region | string | 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. |
| platform | string | 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. |
| timeLimit | string | 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. |
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"default": 10,
"maximum": 25,
"minimum": 1,
"description": "How many demo accounts to return, 1 to 25."
},
"broker": {
"type": "string",
"maxLength": 80,
"description": "Broker name or part of it, such as \"IG\", \"OANDA\" or \"FOREX.com\". Leave out for every broker."
},
"region": {
"type": "string",
"maxLength": 60,
"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."
},
"platform": {
"enum": [
"any",
"mt4",
"mt5",
"ctrader",
"tradingview",
"web",
"jforex",
"ticktrader",
"tws",
"rstockstrader"
],
"type": "string",
"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."
},
"timeLimit": {
"enum": [
"any",
"none",
"fixed",
"active",
"unknown"
],
"type": "string",
"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."
}
},
"additionalProperties": false
}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.
| Argument | Type | Description |
|---|---|---|
| id* | string | The demo account id from find_demo_accounts, such as "oanda-mt4-us". |
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"maxLength": 100,
"description": "The demo account id from find_demo_accounts, such as \"oanda-mt4-us\"."
}
},
"additionalProperties": false
}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.
| Argument | Type | Description |
|---|---|---|
| query* | string | Words to search for, such as "pip value", "swap" or "OANDA demo". |
{
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "string",
"maxLength": 200,
"description": "Words to search for, such as \"pip value\", \"swap\" or \"OANDA demo\"."
}
},
"additionalProperties": false
}We read every tool's name, description and inputs the way the model will, looking for instructions hidden from you. A clean result means no warning signs, not a guarantee. Scanned Nov 28, 2026.
| flowType |
| string |
| Optional regular money in or out: deposit, withdraw (an amount) or share (a percentage of the profit). |
| flowEvery | string | How many periods between deposits or withdrawals. Defaults to about once a month. |
| lossCount | number | Not for period trade: how many losing periods in each group of lossEvery. |
| lossEvery | number | Not for period trade: the size of the group, such as 1 loss every 4 months. |
| lossPercent | number | The percentage lost in each losing period or losing trade. Give 2 for 2%. |
{
"type": "object",
"properties": {
"flow": {
"type": "number",
"description": "Amount (or percentage for share) of each deposit or withdrawal."
},
"gain": {
"type": "number",
"default": 2,
"description": "Gain per period in percent. Negative for a loss. Give 2 for 2%."
},
"period": {
"enum": [
"trade",
"day",
"week",
"month",
"year"
],
"type": "string",
"default": "month",
"description": "How often the gain is made."
},
"target": {
"type": "number",
"description": "Optional target balance."
},
"balance": {
"type": "number",
"default": 10000,
"description": "Starting balance."
},
"periods": {
"type": "number",
"default": 12,
"description": "Number of periods."
},
"winRate": {
"type": "number",
"description": "Only for period trade: the share of trades that win. Give 2 for 2%."
},
"currency": {
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CHF",
"CAD",
"AUD",
"NZD"
],
"type": "string",
"default": "USD",
"description": "The currency the trading account is held in."
},
"flowType": {
"enum": [
"none",
"deposit",
"withdraw",
"share"
],
"type": "string",
"default": "none",
"description": "Optional regular money in or out: deposit, withdraw (an amount) or share (a percentage of the profit)."
},
"flowEvery": {
"type": "string",
"description": "How many periods between deposits or withdrawals. Defaults to about once a month."
},
"lossCount": {
"type": "number",
"description": "Not for period trade: how many losing periods in each group of lossEvery."
},
"lossEvery": {
"type": "number",
"description": "Not for period trade: the size of the group, such as 1 loss every 4 months."
},
"lossPercent": {
"type": "number",
"description": "The percentage lost in each losing period or losing trade. Give 2 for 2%."
}
},
"additionalProperties": false
}| riskBase |
| string |
| current: risk is a share of the current balance. start: of the starting balance. |
| limitType | string | Where the limit is measured from: peak (highest balance), start (starting balance) or lock (trailing until it locks at the start). |
{
"type": "object",
"properties": {
"risk": {
"type": "number",
"default": 2,
"description": "Risk per trade in percent. Give 2 for 2%."
},
"limit": {
"type": "number",
"default": 20,
"description": "Drawdown limit in percent, such as a prop firm's. Give 2 for 2%."
},
"losses": {
"type": "number",
"default": 10,
"description": "Losing trades in a row."
},
"reward": {
"type": "number",
"default": 1.5,
"description": "Average win as a multiple of the risk, such as 1.5."
},
"trades": {
"type": "number",
"default": 100,
"description": "Number of trades to look ahead."
},
"balance": {
"type": "number",
"default": 10000,
"description": "Account balance."
},
"winRate": {
"type": "number",
"default": 50,
"description": "Win rate in percent, for the chance of a losing run. Give 2 for 2%."
},
"currency": {
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CHF",
"CAD",
"AUD",
"NZD"
],
"type": "string",
"default": "USD",
"description": "The currency the trading account is held in."
},
"riskBase": {
"enum": [
"current",
"start"
],
"type": "string",
"default": "current",
"description": "current: risk is a share of the current balance. start: of the starting balance."
},
"limitType": {
"enum": [
"peak",
"start",
"lock"
],
"type": "string",
"default": "peak",
"description": "Where the limit is measured from: peak (highest balance), start (starting balance) or lock (trailing until it locks at the start)."
}
},
"additionalProperties": false
}| feeBasis |
| string |
| side or round trip. |
| moveSize | number | Size of the move (mode move). |
| moveUnit | string | Unit of moveSize: move (the contract's own point, pip or dollar step) or ticks. |
| tickSize | number | Custom contract only: tick size. |
| contracts | number | Number of contracts. |
| tickValue | number | Custom contract only: tick value in US dollars. |
{
"type": "object",
"required": [
"contract"
],
"properties": {
"fee": {
"type": "number",
"description": "Optional fee per contract, in US dollars."
},
"exit": {
"type": "number",
"description": "Exit price (mode prices)."
},
"mode": {
"enum": [
"prices",
"move",
"dollars"
],
"type": "string",
"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."
},
"side": {
"enum": [
"buy",
"sell"
],
"type": "string",
"default": "buy",
"description": "buy (long) or sell (short)."
},
"stop": {
"type": "number",
"description": "Optional stop price (mode prices)."
},
"entry": {
"type": "number",
"description": "Entry price (mode prices)."
},
"amount": {
"type": "number",
"description": "Dollar amount (mode dollars)."
},
"contract": {
"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",
"description": "Contract symbol, or custom with tickSize and tickValue."
},
"feeBasis": {
"enum": [
"side",
"round"
],
"type": "string",
"default": "side",
"description": "side or round trip."
},
"moveSize": {
"type": "number",
"description": "Size of the move (mode move)."
},
"moveUnit": {
"enum": [
"move",
"ticks"
],
"type": "string",
"default": "move",
"description": "Unit of moveSize: move (the contract's own point, pip or dollar step) or ticks."
},
"tickSize": {
"type": "number",
"description": "Custom contract only: tick size."
},
"contracts": {
"type": "number",
"default": 1,
"description": "Number of contracts."
},
"tickValue": {
"type": "number",
"description": "Custom contract only: tick value in US dollars."
}
},
"additionalProperties": false
}| number |
| Stop price (stopUnit prices). |
{
"type": "object",
"required": [
"sizeContract",
"risk"
],
"properties": {
"risk": {
"type": "number",
"description": "The most you are willing to lose on the trade, in US dollars."
},
"sizeFee": {
"type": "number",
"description": "Optional fee per contract, in US dollars."
},
"stopUnit": {
"enum": [
"move",
"ticks",
"prices"
],
"type": "string",
"default": "move",
"description": "How the stop is given: move (the contract's own point, pip or dollar step), ticks, or prices (sizeEntry and sizeStopPrice)."
},
"sizeEntry": {
"type": "number",
"description": "Entry price (stopUnit prices)."
},
"sizeContract": {
"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",
"description": "Contract symbol."
},
"sizeFeeBasis": {
"enum": [
"side",
"round"
],
"type": "string",
"default": "side",
"description": "side or round trip."
},
"stopDistance": {
"type": "number",
"description": "Distance to the stop, in stopUnit (move or ticks)."
},
"sizeStopPrice": {
"type": "number",
"description": "Stop price (stopUnit prices)."
}
},
"additionalProperties": false
}| leverage | string | Leverage, such as 30 or 1:30. |
| sizeUnit | string | How the size is given: standard (100,000 units), mini (10,000), micro (1,000), nano (100) lots, or units. |
| marginMode | string | leverage: give leverage. percent: give the margin requirement as a percentage. |
| stopOutLevel | number | Stop out level in percent. |
| marginPercent | number | Margin requirement in percent (marginMode percent). Give 2 for 2%. |
| marginCallLevel | number | Margin call level in percent. |
{
"type": "object",
"properties": {
"pair": {
"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",
"default": "EUR/USD",
"description": "Currency pair or gold (XAU/USD). EURUSD and eur-usd are accepted too."
},
"rate": {
"type": "number",
"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."
},
"side": {
"enum": [
"buy",
"sell"
],
"type": "string",
"default": "buy",
"description": "buy (long) or sell (short)."
},
"size": {
"type": "number",
"default": 1,
"description": "Trade size, counted in sizeUnit."
},
"price": {
"type": "number",
"description": "Pair price when the trade opens. Leave it out to use the example price."
},
"balance": {
"type": "number",
"description": "Optional account balance, for free margin, margin level and margin call prices."
},
"currency": {
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CHF",
"CAD",
"AUD",
"NZD"
],
"type": "string",
"default": "USD",
"description": "The currency the trading account is held in."
},
"leverage": {
"type": "string",
"default": "50",
"description": "Leverage, such as 30 or 1:30."
},
"sizeUnit": {
"enum": [
"standard",
"mini",
"micro",
"nano",
"units"
],
"type": "string",
"default": "standard",
"description": "How the size is given: standard (100,000 units), mini (10,000), micro (1,000), nano (100) lots, or units."
},
"marginMode": {
"enum": [
"leverage",
"percent"
],
"type": "string",
"default": "leverage",
"description": "leverage: give leverage. percent: give the margin requirement as a percentage."
},
"stopOutLevel": {
"type": "number",
"default": 50,
"description": "Stop out level in percent."
},
"marginPercent": {
"type": "number",
"description": "Margin requirement in percent (marginMode percent). Give 2 for 2%."
},
"marginCallLevel": {
"type": "number",
"default": 100,
"description": "Margin call level in percent."
}
},
"additionalProperties": false
}| pipsMoved | number | Optional price move to value. Negative for a loss. |
{
"type": "object",
"properties": {
"pair": {
"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",
"default": "EUR/USD",
"description": "Currency pair or gold (XAU/USD). EURUSD and eur-usd are accepted too."
},
"rate": {
"type": "number",
"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."
},
"size": {
"type": "number",
"default": 1,
"description": "Trade size, counted in sizeUnit."
},
"goldPip": {
"enum": [
"0.01",
"0.10"
],
"type": "string",
"default": "0.01",
"description": "Gold only: the price change your broker calls one pip."
},
"currency": {
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CHF",
"CAD",
"AUD",
"NZD"
],
"type": "string",
"default": "USD",
"description": "The currency the trading account is held in."
},
"moveUnit": {
"enum": [
"pips",
"points",
"dollars"
],
"type": "string",
"default": "pips",
"description": "Unit of pipsMoved: pips, points (MetaTrader, 10 points = 1 pip) or, for gold only, dollars an ounce."
},
"sizeUnit": {
"enum": [
"standard",
"mini",
"micro",
"nano",
"units"
],
"type": "string",
"default": "standard",
"description": "How the size is given: standard (100,000 units), mini (10,000), micro (1,000), nano (100) lots, or units."
},
"pipsMoved": {
"type": "number",
"description": "Optional price move to value. Negative for a loss."
}
},
"additionalProperties": false
}| number |
| Optional spread to add to the stop distance, in costUnit (buys only, as on the page). |
| balance | number | Account balance in the account currency. Needed when riskMode is percent. |
| lotStep | string | The smallest size step your broker allows. |
| costUnit | string | Unit of spread and slippage. |
| currency | string | The currency the trading account is held in. |
| riskMode | string | percent: risk is a percentage of the balance. money: risk is an amount in the account currency. |
| slippage | number | Optional stop slippage allowance, in costUnit. |
| stopMode | string | pips: give the stop distance in stopPips. prices: give the entry and stop prices. |
| stopPips | number | Stop-loss distance (stopMode pips). |
| stopUnit | string | Unit of stopPips: pips or points (10 points = 1 pip). |
| commission | number | Optional commission per standard lot, in the account currency. |
| commissionBasis | string | side: charged when opening and again when closing. round: once per round trip. |
{
"type": "object",
"properties": {
"pair": {
"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",
"default": "EUR/USD",
"description": "Currency pair, such as EUR/USD. EURUSD and eur-usd are accepted too."
},
"rate": {
"type": "number",
"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."
},
"risk": {
"type": "number",
"default": 1,
"description": "Risk per trade: a percentage (1 for 1%) or an amount, per riskMode."
},
"side": {
"enum": [
"buy",
"sell"
],
"type": "string",
"default": "buy",
"description": "buy (long) or sell (short)."
},
"stop": {
"type": "number",
"description": "Stop-loss price (stopMode prices)."
},
"entry": {
"type": "number",
"description": "Entry price (stopMode prices)."
},
"price": {
"type": "number",
"description": "Optional pair price, for the position value. Leave it out to use the example price."
},
"spread": {
"type": "number",
"description": "Optional spread to add to the stop distance, in costUnit (buys only, as on the page)."
},
"balance": {
"type": "number",
"default": 10000,
"description": "Account balance in the account currency. Needed when riskMode is percent."
},
"lotStep": {
"enum": [
"1",
"0.1",
"0.01",
"0.001",
"units"
],
"type": "string",
"default": "0.01",
"description": "The smallest size step your broker allows."
},
"costUnit": {
"enum": [
"pips",
"points"
],
"type": "string",
"default": "pips",
"description": "Unit of spread and slippage."
},
"currency": {
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CHF",
"CAD",
"AUD",
"NZD"
],
"type": "string",
"default": "USD",
"description": "The currency the trading account is held in."
},
"riskMode": {
"enum": [
"percent",
"money"
],
"type": "string",
"default": "percent",
"description": "percent: risk is a percentage of the balance. money: risk is an amount in the account currency."
},
"slippage": {
"type": "number",
"description": "Optional stop slippage allowance, in costUnit."
},
"stopMode": {
"enum": [
"pips",
"prices"
],
"type": "string",
"default": "pips",
"description": "pips: give the stop distance in stopPips. prices: give the entry and stop prices."
},
"stopPips": {
"type": "number",
"default": 50,
"description": "Stop-loss distance (stopMode pips)."
},
"stopUnit": {
"enum": [
"pips",
"points"
],
"type": "string",
"default": "pips",
"description": "Unit of stopPips: pips or points (10 points = 1 pip)."
},
"commission": {
"type": "number",
"description": "Optional commission per standard lot, in the account currency."
},
"commissionBasis": {
"enum": [
"side",
"round"
],
"type": "string",
"default": "side",
"description": "side: charged when opening and again when closing. round: once per round trip."
}
},
"additionalProperties": false
}| close* |
| number |
| Close price, or the price you expect. |
| spread | number | Optional spread, in spreadUnit. |
| target | number | Optional take-profit price. |
| balance | number | Optional account balance, to show the result as a percentage. |
| currency | string | The currency the trading account is held in. |
| sizeUnit | string | How the size is given: standard (100,000 units), mini (10,000), micro (1,000), nano (100) lots, or units. |
| commission | number | Optional commission per standard lot, in the account currency. |
| spreadUnit | string | Unit of spread: pips, or points as MetaTrader shows it. |
| commissionBasis | string | side: charged when opening and again when closing. round: once per round trip. |
{
"type": "object",
"required": [
"open",
"close"
],
"properties": {
"open": {
"type": "number",
"description": "Open price."
},
"pair": {
"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",
"default": "EUR/USD",
"description": "Currency pair or gold (XAU/USD). EURUSD and eur-usd are accepted too."
},
"rate": {
"type": "number",
"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."
},
"side": {
"enum": [
"buy",
"sell"
],
"type": "string",
"default": "buy",
"description": "buy (long) or sell (short)."
},
"size": {
"type": "number",
"default": 1,
"description": "Trade size, counted in sizeUnit."
},
"stop": {
"type": "number",
"description": "Optional stop-loss price."
},
"swap": {
"type": "string",
"description": "Optional overnight swap for all nights held, in the account currency. A charge has a minus sign, such as -12.50."
},
"close": {
"type": "number",
"description": "Close price, or the price you expect."
},
"spread": {
"type": "number",
"description": "Optional spread, in spreadUnit."
},
"target": {
"type": "number",
"description": "Optional take-profit price."
},
"balance": {
"type": "number",
"description": "Optional account balance, to show the result as a percentage."
},
"currency": {
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CHF",
"CAD",
"AUD",
"NZD"
],
"type": "string",
"default": "USD",
"description": "The currency the trading account is held in."
},
"sizeUnit": {
"enum": [
"standard",
"mini",
"micro",
"nano",
"units"
],
"type": "string",
"default": "standard",
"description": "How the size is given: standard (100,000 units), mini (10,000), micro (1,000), nano (100) lots, or units."
},
"commission": {
"type": "number",
"description": "Optional commission per standard lot, in the account currency."
},
"spreadUnit": {
"enum": [
"pips",
"points"
],
"type": "string",
"default": "pips",
"description": "Unit of spread: pips, or points as MetaTrader shows it."
},
"commissionBasis": {
"enum": [
"side",
"round"
],
"type": "string",
"default": "side",
"description": "side: charged when opening and again when closing. round: once per round trip."
}
},
"additionalProperties": false
}| Win rate in percent, for the result over many trades. Give 2 for 2%. |
| currency | string | The currency the trading account is held in. |
| riskAmount | number | Optional amount risked per trade, in the account currency. |
| distanceUnit | string | Unit of the distances (mode distance). |
| stopDistance | number | Stop-loss distance (mode distance). |
| targetDistance | number | Take-profit distance (mode distance). |
{
"type": "object",
"properties": {
"mode": {
"enum": [
"prices",
"distance"
],
"type": "string",
"default": "prices",
"description": "prices: give entry, stop and target prices. distance: give stopDistance and targetDistance."
},
"pair": {
"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",
"default": "EUR/USD",
"description": "Pair, used for pip size in prices mode. EURUSD and eur-usd are accepted too."
},
"stop": {
"type": "number",
"description": "Stop-loss price (mode prices)."
},
"entry": {
"type": "number",
"description": "Entry price (mode prices). Leave all three prices out to use the example trade."
},
"spread": {
"type": "number",
"description": "Optional spread, in pips (prices mode) or the distance unit."
},
"target": {
"type": "number",
"description": "Take-profit price (mode prices)."
},
"trades": {
"type": "number",
"default": 100,
"description": "Number of trades for the result over many trades."
},
"winRate": {
"type": "number",
"default": 40,
"description": "Win rate in percent, for the result over many trades. Give 2 for 2%."
},
"currency": {
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CHF",
"CAD",
"AUD",
"NZD"
],
"type": "string",
"default": "USD",
"description": "The currency the trading account is held in."
},
"riskAmount": {
"type": "number",
"description": "Optional amount risked per trade, in the account currency."
},
"distanceUnit": {
"enum": [
"pips",
"points",
"ticks",
"other"
],
"type": "string",
"default": "pips",
"description": "Unit of the distances (mode distance)."
},
"stopDistance": {
"type": "number",
"description": "Stop-loss distance (mode distance)."
},
"targetDistance": {
"type": "number",
"description": "Take-profit distance (mode distance)."
}
},
"additionalProperties": false
}| string |
| Currency to show costs in: quote (the pair's second currency) or another currency. |
| sizeUnit | string | lots (100,000 units each) or units. |
| stopPips | number | Optional stop distance in pips, to compare the slippage with the risk. |
| precision | string | Only for points: fractional when prices have 5 decimals (3 for yen pairs), whole when they have 4 (2 for yen pairs). |
| slippageUnit | string | pips or points. |
| averageWinPips | number | Optional average win in pips, to compare the slippage with the average win. |
{
"type": "object",
"required": [
"entry",
"exit"
],
"properties": {
"exit": {
"type": "number",
"description": "Slippage on exit per trade, in slippageUnit."
},
"pair": {
"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",
"default": "EUR/USD",
"description": "Currency pair, such as EUR/USD. EURUSD and eur-usd are accepted too."
},
"rate": {
"type": "number",
"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."
},
"size": {
"type": "number",
"default": 1,
"description": "Average size per trade, in sizeUnit."
},
"entry": {
"type": "number",
"description": "Slippage on entry per trade, in slippageUnit."
},
"months": {
"type": "number",
"default": 12,
"description": "Number of months."
},
"trades": {
"type": "number",
"default": 40,
"description": "Completed trades per month."
},
"currency": {
"enum": [
"quote",
"EUR",
"GBP",
"JPY",
"CHF",
"CAD",
"AUD",
"NZD"
],
"type": "string",
"default": "quote",
"description": "Currency to show costs in: quote (the pair's second currency) or another currency."
},
"sizeUnit": {
"enum": [
"lots",
"units"
],
"type": "string",
"default": "lots",
"description": "lots (100,000 units each) or units."
},
"stopPips": {
"type": "number",
"description": "Optional stop distance in pips, to compare the slippage with the risk."
},
"precision": {
"enum": [
"fractional",
"whole"
],
"type": "string",
"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)."
},
"slippageUnit": {
"enum": [
"pips",
"points"
],
"type": "string",
"default": "pips",
"description": "pips or points."
},
"averageWinPips": {
"type": "number",
"description": "Optional average win in pips, to compare the slippage with the average win."
}
},
"additionalProperties": false
}| string |
| Swap short (for sells), exactly as the platform shows it, in swapUnit. |
| nights | number | Nights the trade is held. |
| balance | number | Optional account balance, for effective leverage. |
| openDay | string | Day the trade is opened. |
| currency | string | The currency the trading account is held in. |
| sizeUnit | string | lots (100,000 units each) or units. |
| swapUnit | string | The unit the platform shows the swap in: points (MetaTrader), pips, percent a year, or money per standard lot per night. |
| precision | string | Only for points: fractional when prices have 5 decimals (3 for yen pairs), whole when they have 4 (2 for yen pairs). |
| tripleDay | string | The night that counts three days of interest. Usually Wednesday (Thursday for USD/CAD at some brokers). |
| yearBasis | string | Only for percent: the number of days in the broker's interest year. |
| amountCurrency | string | Only for money: the currency the swap amounts are in. |
{
"type": "object",
"required": [
"long",
"short"
],
"properties": {
"long": {
"type": "string",
"description": "Swap long (for buys), exactly as the platform shows it, in swapUnit. A charge has a minus sign, such as -9.17."
},
"pair": {
"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",
"default": "EUR/USD",
"description": "Currency pair, such as EUR/USD. EURUSD and eur-usd are accepted too."
},
"rate": {
"type": "number",
"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."
},
"side": {
"enum": [
"buy",
"sell"
],
"type": "string",
"default": "buy",
"description": "buy (long) or sell (short)."
},
"size": {
"type": "number",
"default": 1,
"description": "Trade size, counted in sizeUnit."
},
"price": {
"type": "number",
"description": "Pair price. Needed for percent swaps, base-currency money swaps, and when the account currency is the pair's first currency."
},
"short": {
"type": "string",
"description": "Swap short (for sells), exactly as the platform shows it, in swapUnit."
},
"nights": {
"type": "number",
"default": 7,
"description": "Nights the trade is held."
},
"balance": {
"type": "number",
"description": "Optional account balance, for effective leverage."
},
"openDay": {
"enum": [
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday",
"Sunday"
],
"type": "string",
"default": "Monday",
"description": "Day the trade is opened."
},
"currency": {
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CHF",
"CAD",
"AUD",
"NZD"
],
"type": "string",
"default": "USD",
"description": "The currency the trading account is held in."
},
"sizeUnit": {
"enum": [
"lots",
"units"
],
"type": "string",
"default": "lots",
"description": "lots (100,000 units each) or units."
},
"swapUnit": {
"enum": [
"points",
"pips",
"percent",
"money"
],
"type": "string",
"default": "points",
"description": "The unit the platform shows the swap in: points (MetaTrader), pips, percent a year, or money per standard lot per night."
},
"precision": {
"enum": [
"fractional",
"whole"
],
"type": "string",
"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)."
},
"tripleDay": {
"enum": [
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday"
],
"type": "string",
"default": "Wednesday",
"description": "The night that counts three days of interest. Usually Wednesday (Thursday for USD/CAD at some brokers)."
},
"yearBasis": {
"enum": [
"365",
"360"
],
"type": "string",
"default": "365",
"description": "Only for percent: the number of days in the broker's interest year."
},
"amountCurrency": {
"enum": [
"quote",
"base",
"account"
],
"type": "string",
"default": "quote",
"description": "Only for money: the currency the swap amounts are in."
}
},
"additionalProperties": false
}| string |
| Swap short (for sells), exactly as the platform shows it, in swapUnit. |
| balance | number | Optional account balance. |
| holding | number | Holding period, in holdingUnit. |
| openDay | string | Day the trade is opened. |
| currency | string | The currency the trading account is held in. |
| sizeUnit | string | lots (100,000 units each) or units. |
| swapUnit | string | The unit the platform shows the swap in: points (MetaTrader), pips, percent a year, or money per standard lot per night. |
| precision | string | Only for points: fractional when prices have 5 decimals (3 for yen pairs), whole when they have 4 (2 for yen pairs). |
| tripleDay | string | The night that counts three days of interest. |
| yearBasis | string | Only for percent: the number of days in the broker's interest year. |
| holdingUnit | string | Unit of the holding period. |
| amountCurrency | string | Only for money: the currency the swap amounts are in. |
{
"type": "object",
"required": [
"price",
"long",
"short"
],
"properties": {
"long": {
"type": "string",
"description": "Swap long (for buys), exactly as the platform shows it, in swapUnit. A charge has a minus sign, such as -9.17."
},
"pair": {
"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",
"default": "USD/JPY",
"description": "Currency pair. The yen pairs are the classic carry trades; the other pairs work too."
},
"rate": {
"type": "number",
"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."
},
"side": {
"enum": [
"buy",
"sell"
],
"type": "string",
"default": "buy",
"description": "buy (long) or sell (short)."
},
"size": {
"type": "number",
"default": 1,
"description": "Trade size, counted in sizeUnit."
},
"price": {
"type": "number",
"description": "Pair price now."
},
"short": {
"type": "string",
"description": "Swap short (for sells), exactly as the platform shows it, in swapUnit."
},
"balance": {
"type": "number",
"description": "Optional account balance."
},
"holding": {
"type": "number",
"default": 3,
"description": "Holding period, in holdingUnit."
},
"openDay": {
"enum": [
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday",
"Sunday"
],
"type": "string",
"default": "Monday",
"description": "Day the trade is opened."
},
"currency": {
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CHF",
"CAD",
"AUD",
"NZD"
],
"type": "string",
"default": "USD",
"description": "The currency the trading account is held in."
},
"sizeUnit": {
"enum": [
"lots",
"units"
],
"type": "string",
"default": "lots",
"description": "lots (100,000 units each) or units."
},
"swapUnit": {
"enum": [
"points",
"pips",
"percent",
"money"
],
"type": "string",
"default": "points",
"description": "The unit the platform shows the swap in: points (MetaTrader), pips, percent a year, or money per standard lot per night."
},
"precision": {
"enum": [
"fractional",
"whole"
],
"type": "string",
"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)."
},
"tripleDay": {
"enum": [
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday"
],
"type": "string",
"default": "Wednesday",
"description": "The night that counts three days of interest."
},
"yearBasis": {
"enum": [
"365",
"360"
],
"type": "string",
"default": "365",
"description": "Only for percent: the number of days in the broker's interest year."
},
"holdingUnit": {
"enum": [
"days",
"weeks",
"months"
],
"type": "string",
"default": "months",
"description": "Unit of the holding period."
},
"amountCurrency": {
"enum": [
"quote",
"base",
"account"
],
"type": "string",
"default": "quote",
"description": "Only for money: the currency the swap amounts are in."
}
},
"additionalProperties": false
}