Pip Calculator
calculate_pipWhat 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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "calculate_pip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pair | No | Currency pair or gold (XAU/USD). EURUSD and eur-usd are accepted too. | EUR/USD |
| rate | No | 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 | No | Trade size, counted in sizeUnit. | |
| goldPip | No | Gold only: the price change your broker calls one pip. | 0.01 |
| currency | No | The currency the trading account is held in. | USD |
| moveUnit | No | Unit of pipsMoved: pips, points (MetaTrader, 10 points = 1 pip) or, for gold only, dollars an ounce. | pips |
| sizeUnit | No | How the size is given: standard (100,000 units), mini (10,000), micro (1,000), nano (100) lots, or units. | standard |
| pipsMoved | No | Optional price move to value. Negative for a loss. |