prediction.order_split_guide
Calculate how many clips to split a large Polymarket position into using the live order book, keeping each clip’s price impact at or below a set cap.
Instructions
Walks a Polymarket outcome's live order book to recommend how many clips
to split a large position into, so each clip's own price impact stays at
or under max_price_impact_pct_per_slice (default 1.0%). Also returns
full_size_price_impact_pct - the baseline impact if filled in one shot
right now, for comparison. Single-snapshot calculation - it has no idea
whether the book refills between clips in real trading, so treat the
recommended slice count as "if this exact snapshot repeated", not a
guarantee about live execution. Not investment advice - no confidence or
go/no-go field is returned, only the raw numbers.
Reuses the same order-book walking helpers as
prediction.exit_capacity_audit - no new upstream call. market_slug only
resolves an EXACT Polymarket market slug - no fuzzy keyword search.
Args:
position_size_shares: Total number of outcome shares to sell (or
buy). Must be positive.
token_id: The outcome's CLOB token_id / asset_id, if already known.
Provide either this OR market_slug.
market_slug: Exact Polymarket market slug, used to resolve token_id
automatically when not already known.
outcome: "yes" (default) or "no" - which side to resolve when using
market_slug. Ignored if token_id is given directly.
side: "sell" (default) or "buy".
max_price_impact_pct_per_slice: Target ceiling on each clip's own
price impact, in percent. Defaults to 1.0.
Returns:
On success: {"success": true, "executable_now",
"full_size_price_impact_pct", "max_single_clip_shares",
"recommended_slice_count", "recommended_slice_size_shares", ...}
On failure: {"success": false, "error": {"type", "message"}}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | No | sell | |
| outcome | No | yes | |
| token_id | No | ||
| market_slug | No | ||
| position_size_shares | Yes | ||
| max_price_impact_pct_per_slice | No |