x402-polyperp-book
x402-polyperp-book: Level-2 order book for one Polymarket Perps market, with the microstructure a trading agent needs before sending an order — best bid and ask, spread in absolute terms and basis points, midpoint, and cumulative bid/ask depth plus their imbalance. Thin books and lopsided depth are how you spot a bad fill in advance. Works on equities, indices and commodities as well as crypto.
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": "x402-polyperp-book"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| depth | No | ||
| symbol | Yes | ||
| instrument | No |