pm_fees
Calculate order fees for Kalshi and Polymarket, including fee USD, percentage, and break-even exit price, to plan trades before filling.
Instructions
Free, runs locally (no API call, no payment). Use when the user asks the fee for an order on Kalshi, Polymarket US or polymarket.com. Returns fee_usd, fee %, break-even exit, rates as_of. contracts = USD / price; polymarket needs category; at = fill time (default now). Ex: platform=polymarket, price=0.4, contracts=250, category=Politics
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": {
"platform": "<platform>",
"price": "<price>",
"contracts": "<contracts>"
},
"name": "pm_fees"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | ||
| side | No | taker | |
| tier | No | ||
| price | Yes | ||
| category | No | ||
| platform | Yes | ||
| contracts | Yes | ||
| direction | No | buy | |
| multiplier | No |