Futures Calculator: how many contracts
calculate_futures_contractsHow 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sizeContract": "<sizeContract>",
"risk": "<risk>"
},
"name": "calculate_futures_contracts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| risk | Yes | The most you are willing to lose on the trade, in US dollars. | |
| sizeFee | No | Optional fee per contract, in US dollars. | |
| stopUnit | No | How the stop is given: move (the contract's own point, pip or dollar step), ticks, or prices (sizeEntry and sizeStopPrice). | move |
| sizeEntry | No | Entry price (stopUnit prices). | |
| sizeContract | Yes | Contract symbol. | |
| sizeFeeBasis | No | side or round trip. | side |
| stopDistance | No | Distance to the stop, in stopUnit (move or ticks). | |
| sizeStopPrice | No | Stop price (stopUnit prices). |