paper_order
Simulate buying YES or NO contracts against the live order book with venue fees in a local ledger, never sending orders to a venue. Test basket legs and retry safely with request IDs.
Instructions
Simulate buying YES or NO contracts in the local paper ledger, filling against the live order book with venue fees. Never sends an order to a venue.
Walks the displayed asks from the best price up to limit_price and charges
the venue fee on each level. Use it to test the legs of a basket found by
check_constraint_live. Writes ~/.oracle3/mcp_paper_ledger.json (or the path
in ORACLE3_MCP_LEDGER); only buys are supported and positions are held at
cost. Returns status (filled, partially_filled, unfilled, or rejected when
paper cash is short), requested and filled contracts, average price, cost,
fees and the per-level fills. Supply request_id for safe retries: an identical
venue/market/side/quantity/limit returns the original result without another
fill, including unfilled or rejected results; changed intent is an error.
Without request_id, each call is a new order. Reset clears retry history.
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": {
"venue": "<venue>",
"market_id": "<market_id>",
"side": "<side>",
"contracts": "<contracts>",
"limit_price": "<limit_price>"
},
"name": "paper_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | Side of the binary contract to buy: 'yes' or 'no'. | |
| venue | Yes | Venue: 'kalshi' or 'polymarket'. | |
| contracts | Yes | Contracts to buy; must be finite and positive. | |
| market_id | Yes | Kalshi market ticker (e.g. KXFEDDECISION-28JAN-H0) or Polymarket market id (e.g. 2589812), as returned by search_markets. | |
| request_id | No | Optional nonblank retry key, unique until paper_reset. Reuse only for the identical order intent. | |
| limit_price | Yes | Highest price per contract to pay, in dollars, strictly between 0 and 1; ask levels above it are skipped. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||