Size a trade against real books
estimate_tradeEstimates executable cross-exchange spread profit by walking two venues' order books for a dollar amount, reporting VWAPs, gross and net profit after fees, and the largest size that still clears fees.
Instructions
Walks the ask side of one venue and the bid side of another to fill a given dollar amount, then reports both VWAPs, the gross profit, both fees, the net profit, and the largest size that still clears the fees. This is the tool that decides whether a scan row is real. Example: symbol='BTC/USDT', notional_usd=25000.
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": {
"symbol": "<symbol>"
},
"name": "estimate_trade"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Pair in any spelling: 'BTC/USDT', 'BTCUSDT' or 'btc-usdt'. | |
| venues | No | Restrict the venues: bybit, binance, okx, bitget, kucoin, mexc, gate. Omit to use all seven. | |
| fee_bps | No | Taker fee in basis points, per side. A round trip costs twice this. Default 10 (0.10%), the usual spot taker fee; use your own. | |
| buy_venue | No | Venue to buy on. Omit to let the server pick the cheapest ask from the real books. | |
| sell_venue | No | Venue to sell on. Omit to let the server pick the richest bid. | |
| notional_usd | No | Dollar amount to trade on each leg. Default 10000. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||