Check a trade's profit after fees
check_profitIs buying YES on Kalshi and NO on a Polymarket (or the reverse) profitable after both venues' fees? Send the contracts and each side's price in dollars (0 to 1); Layer applies each venue's fee schedule. Send polymarket (polymarket.com) or polymarket_us, not both. With kalshi.market_id, Layer looks up the fees and the match itself.
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": {
"contracts": "<contracts>",
"kalshi": "<kalshi>"
},
"name": "check_profit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kalshi | Yes | ||
| contracts | Yes | How many contracts on each side. | |
| polymarket | No | ||
| polymarket_us | No |