# Polymarket US

Polymarket US only. This toolkit connects to the CFTC-compliant Polymarket US product for United States users, not the global Polymarket app. API credentials are created at https://polymarket.us/developers after Polymarket US account verification.

- **Category:** commerce
- **Auth:** API_KEY
- **Composio Managed App Available?** N/A
- **Tools:** 44
- **Triggers:** 0
- **Slug:** `POLYMARKET`
- **Version:** 00000000_00

## Tools

### Cancel All Open Orders

**Slug:** `POLYMARKET_CANCEL_ALL_OPEN_ORDERS`

Cancel all authenticated Polymarket US open orders, optionally scoped to specific market slugs. This is broad and destructive for remaining open quantities; omit slugs only when the user clearly asks to cancel every open order. Already executed fills and positions remain, so verify open orders afterward when confirmation matters.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `slugs` | array | No | Optional market slugs to restrict cancellation to. Omit only when the user explicitly wants every open order canceled across the account. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Cancel Multiple Orders

**Slug:** `POLYMARKET_CANCEL_MULTIPLE_ORDERS`

Cancel up to 20 Polymarket US open orders in one request. Use only when the user explicitly asks to cancel the batch. Cancellation removes remaining open quantity but does not undo fills or positions, and batch responses can require per-order follow-up reads to verify final state.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `orders` | array | Yes | One to 20 open orders to cancel in a single batch. The request is destructive for remaining open quantities; confirm each order's final state when partial success or unknown order IDs matter. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Cancel Order

**Slug:** `POLYMARKET_CANCEL_ORDER`

Cancel one Polymarket US open order by exchange-assigned order ID. This is a destructive mutation of the remaining open quantity and should only be used when the user explicitly asks to cancel. Already executed fills and resulting positions remain; confirm order state afterward when precision matters.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `orderId` | string | Yes | Exchange-assigned open order ID to cancel. Canceling removes any remaining unfilled quantity but does not reverse fills that already executed. |
| `marketSlug` | string | Yes | Market slug that contains the order being canceled. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Close Position Order

**Slug:** `POLYMARKET_CLOSE_POSITION_ORDER`

Create a live Polymarket US order intended to close an existing position in one market. Use only when the user explicitly asks to close that position. This can trade immediately, leave residual exposure if not fully filled, or be rejected for market, liquidity, risk, or funding checks; inspect the returned order state before confirming the position is closed.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `marketSlug` | string | Yes | Market slug of the existing position to close. Use only for the market the user has identified. |
| `maxBlockTime` | string | No | Maximum block time in seconds when synchronousExecution is true. |
| `slippageTolerance` | object | No | Slippage tolerance for the close-position order. Wider tolerance can increase fill probability but may close at a worse price. |
| `manualOrderIndicator` | string ("MANUAL_ORDER_INDICATOR_MANUAL" | "MANUAL_ORDER_INDICATOR_AUTOMATIC") | No | Whether the close-position order is manual or automatic for audit and routing purposes. |
| `synchronousExecution` | boolean | No | Whether to block until the close-position order reaches a final state. If false or omitted, read the order later to confirm fills or rejection. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Create Multiple Orders

**Slug:** `POLYMARKET_CREATE_MULTIPLE_ORDERS`

Submit up to 20 live Polymarket US orders in one request. Use only after the user explicitly asks to place the batch and, when practical, after previewing the same orders. This mutating action can consume buying power and create exposure across multiple markets; read per-order statuses because a batch can contain accepted, filled, and rejected orders.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `orders` | array | Yes | One to 20 live orders to submit in a single batch. Preview each order first when possible; accepted orders can reserve funds, fill, or create market exposure, and individual orders may be rejected. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Create Order

**Slug:** `POLYMARKET_CREATE_ORDER`

Submit one live Polymarket US order. Use Preview Order first unless the user has already reviewed the exact order details. This mutating action can reserve buying power, fill immediately, or create real market exposure; the API may also reject the order for funding, price, market, or risk checks, so inspect the returned status before confirming placement.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `order` | object | Yes | Live order to submit after previewing the same parameters with Preview Order. Either intent or outcomeSide plus action must identify the side; accepted orders can immediately reserve funds, fill, or create market exposure. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Account Balances

**Slug:** `POLYMARKET_GET_ACCOUNT_BALANCES`

Get the authenticated user's Polymarket US account balances. Use this read-only action to inspect buying power, balances, pending credits, and funds reserved by open orders before previewing or placing orders. Requires Polymarket US signed authentication and returns only the signed-in account's balances.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Activities

**Slug:** `POLYMARKET_GET_ACTIVITIES`

Get authenticated Polymarket US portfolio activities such as trades, resolutions, deposits, withdrawals, referral bonuses, and transfers. Requires Polymarket US signed authentication and returns activity only for that account. Use type filters and sortOrder carefully when paging through history.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Maximum account activities to return per page. Use with cursor for pagination; omit cursor on the first request. |
| `types` | array | No | Activity types to include. Use ACTIVITY_TYPE_TRADE for executions, ACTIVITY_TYPE_POSITION_RESOLUTION for settlements, and account deposit/withdrawal types for cash movements. |
| `cursor` | string | No | Pagination cursor from a previous nextCursor field. Omit for the first page. |
| `sortOrder` | string ("SORT_ORDER_DESCENDING" | "SORT_ORDER_ASCENDING") | No | Activity timestamp sort order. DESCENDING returns newest first and is the API default; ASCENDING returns oldest first. |
| `marketSlug` | string | No | Market slug to filter account activities by. Only trades and resolutions tied to that market are returned; account-level deposits and withdrawals may not match a marketSlug. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Event By ID

**Slug:** `POLYMARKET_GET_EVENT_BY_ID`

Get one Polymarket US event by numeric ID from the public gateway API. Use this after discovery when the caller already has the integer event ID and needs full event details or associated market references. Do not pass slugs here; use Get Event By Slug for slugs. This read-only action does not require API key authentication.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | integer | Yes | Numeric Polymarket US event ID from a discovery response. Do not pass an event slug. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Event By Slug

**Slug:** `POLYMARKET_GET_EVENT_BY_SLUG`

Get one Polymarket US event by slug from the public gateway API. Use this after search/list discovery or when parsing a Polymarket event URL. Do not pass numeric IDs here; use Get Event By ID for integer IDs. This read-only action does not require API key authentication.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `slug` | string | Yes | Event slug from a Polymarket US event URL or discovery response. Do not pass the numeric event ID. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get League By Slug

**Slug:** `POLYMARKET_GET_LEAGUE_BY_SLUG`

Get a current Polymarket US v2 league by slug. Use List Leagues or Get Sport By Slug first if the slug is unknown. This is useful for confirming league metadata before listing events for a league such as "nba" or "nfl". This action does not require API key authentication.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `slug` | string | Yes | Current v2 league slug from List Leagues or Get Sport By Slug, such as 'nba' or 'nfl'. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Market BBO

**Slug:** `POLYMARKET_GET_MARKET_BBO`

Get the best bid and offer for one Polymarket US market by slug. Use this lightweight top-of-book read before quoting, previewing, or explaining an order. If the agent needs depth or slippage context, use Get Market Book instead. The response is market data, not an order placement or order preview. This endpoint requires the market slug, not the numeric market ID, and does not require API key authentication.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `slug` | string | Yes | Market slug from a Polymarket US market URL or discovery response. Do not pass the numeric market ID. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Market Book

**Slug:** `POLYMARKET_GET_MARKET_BOOK`

Get the public order book for one Polymarket US market by slug. Use this before quoting, previewing, or explaining an order when the agent needs depth beyond the top of book. The response is market data, not an order placement or order preview. This endpoint requires the market slug, not the numeric market ID, and does not require API key authentication.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `slug` | string | Yes | Market slug from a Polymarket US market URL or discovery response. Do not pass the numeric market ID. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Market By ID

**Slug:** `POLYMARKET_GET_MARKET_BY_ID`

Get one Polymarket US market by numeric ID from the public gateway API. Use this after market discovery when the caller already has the integer market ID and needs full market metadata. Do not pass slugs here; use Get Market By Slug for slugs. For current pricing before an order, follow with Get Market BBO or Get Market Book. This read-only action does not require API key authentication.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | integer | Yes | Numeric Polymarket US market ID from a discovery response. Do not pass a market slug. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Market By Slug

**Slug:** `POLYMARKET_GET_MARKET_BY_SLUG`

Get one Polymarket US market by slug from the public gateway API. Use this after search/list discovery or when parsing a Polymarket market URL. Do not pass numeric IDs here; use Get Market By ID for integer IDs. For current pricing before quoting, previewing, or placing an order, follow with Get Market BBO or Get Market Book. This read-only action does not require API key authentication.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `slug` | string | Yes | Market slug from a Polymarket US market URL or discovery response. Do not pass the numeric market ID. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Market Settlement

**Slug:** `POLYMARKET_GET_MARKET_SETTLEMENT`

Get settlement information for one Polymarket US market by slug. Use this only for resolved, closed, or historical market workflows where the caller needs public resolution or settlement details. It is not useful for discovering current markets or preparing trades on active markets. This endpoint requires the market slug, not the numeric market ID, and does not require API key authentication.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `slug` | string | Yes | Market slug from a Polymarket US market URL or discovery response. Do not pass the numeric market ID. |
| `fromEp3` | boolean | No | Whether to request settlement data from EP3. Leave unset unless the caller specifically needs the EP3 settlement source. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Markets For Subject

**Slug:** `POLYMARKET_GET_MARKETS_FOR_SUBJECT`

Discover Polymarket US markets associated with a subject ID. Use this action after List Subjects or Get Subject By ID identifies the team, person, candidate, player, nominee, or other entity the user cares about. This is a market discovery tool, not a subject metadata lookup. This action does not require API key authentication.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | integer | Yes | Numeric subject ID for the team, person, candidate, player, nominee, or entity whose markets should be discovered. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Markets For Subject By Slug

**Slug:** `POLYMARKET_GET_MARKETS_FOR_SUBJECT_BY_SLUG`

Discover Polymarket US markets associated with a subject slug. Use this action after List Subjects, Get Subject By Slug, or a Polymarket URL identifies the team, person, candidate, player, nominee, or other entity the user cares about. This is a market discovery tool, not a subject metadata lookup. This action does not require API key authentication.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `slug` | string | Yes | URL-safe subject slug for the team, person, candidate, player, nominee, or entity whose markets should be discovered. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Open Orders

**Slug:** `POLYMARKET_GET_OPEN_ORDERS`

Get all open orders for the authenticated Polymarket US user. Use this read-only action before modifying or canceling orders, or to inspect live order exposure. Requires signed authentication, supports optional market slug filters, and does not place, modify, or cancel orders.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `slugs` | array | No | Optional market slugs to filter this authenticated account's open orders. Pass multiple slugs to restrict results to those markets; omit to return open orders across all markets. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Order

**Slug:** `POLYMARKET_GET_ORDER`

Get an authenticated user's Polymarket US order by exchange-assigned order ID. Requires signed authentication and returns order details available to that account. Use this read-only action to inspect order state after creating, modifying, or canceling an order.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `orderId` | string | Yes | Exchange-assigned order ID for an order owned by the authenticated account. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Series By ID

**Slug:** `POLYMARKET_GET_SERIES_BY_ID`

Get a Polymarket US series by numeric ID. Series are recurring or grouped event collections. Use this action when an agent has a series ID and needs the slug, active status, recurrence, or other public metadata before fetching related events or markets. This action does not require API key authentication.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | integer | Yes | Numeric series ID returned by List Series or related event data. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Sport By Slug

**Slug:** `POLYMARKET_GET_SPORT_BY_SLUG`

Get a current Polymarket US v2 sport by slug. Use List Sports first if the slug is unknown. The response includes the sport metadata and leagues attached to that sport, which helps agents move from broad sport browsing to league-specific event discovery. This action does not require API key authentication.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `slug` | string | Yes | Current v2 sport slug from List Sports. Examples include 'football' and 'basketball'. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Subject By ID

**Slug:** `POLYMARKET_GET_SUBJECT_BY_ID`

Get a Polymarket US subject entity by numeric ID. Subjects represent teams, people, candidates, players, nominees, and other named entities attached to markets. Use this action when an agent already has a subject ID and needs its slug, type, or display metadata. This action does not require API key authentication.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | integer | Yes | Numeric subject ID returned by List Subjects or a market response. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Subject By Slug

**Slug:** `POLYMARKET_GET_SUBJECT_BY_SLUG`

Get a Polymarket US subject entity by slug. Subjects represent teams, people, candidates, players, nominees, and other named entities attached to markets. Use this action when an agent has a subject slug from a URL or search result and needs the subject ID or display metadata. This action does not require API key authentication.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `slug` | string | Yes | URL-safe subject slug for a team, person, candidate, player, nominee, or other market entity. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Tag By ID

**Slug:** `POLYMARKET_GET_TAG_BY_ID`

Get a Polymarket US topic, sport, or league tag by numeric ID. Use this action after List Tags or a market/event response returns a tag ID and the agent needs the tag label, slug, hierarchy, or sport/league metadata for filtering or display. This action does not require API key authentication.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | integer | Yes | Numeric tag ID returned by List Tags or another tag response. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Tag By Slug

**Slug:** `POLYMARKET_GET_TAG_BY_SLUG`

Get a Polymarket US topic, sport, or league tag by slug. Use this action when an agent has a URL-safe tag slug, such as nba or sports, and needs the tag ID, label, hierarchy, or sport/league metadata for filtering or display. This action does not require API key authentication.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `slug` | string | Yes | URL-safe tag slug for a topic, sport, or league filter. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get User Positions

**Slug:** `POLYMARKET_GET_USER_POSITIONS`

Get the authenticated user's Polymarket US trading positions across all markets or filtered by a specific market slug. Requires Polymarket US signed authentication and only returns positions for that account. Use this read-only action to verify API credentials and inspect current exposure.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Maximum number of account-specific positions to return per page. Use with cursor for pagination; omit cursor on the first request. |
| `cursor` | string | No | Pagination cursor from a previous response's nextCursor field. Omit for the first page. |
| `market` | string | No | Optional market slug to filter the authenticated account's positions. When omitted, returns positions across all markets for the signed-in Polymarket US account. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Events

**Slug:** `POLYMARKET_LIST_EVENTS`

Discover Polymarket US events from the public gateway API. Use this action before event-specific lookups when starting from a topic, category, tag, or broad filter set. Practical guidance for agents: - For currently relevant events, start with active=true, closed=false, and archived=false, then paginate with limit and offset. - Pass numeric event IDs in id and event slugs in slug; do not mix the two identifier types. - Events may contain related markets, but use market-specific actions for market details, order books, BBO, settlement, or order preparation. - This read-only discovery action does not require Polymarket API key auth.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | array | No | Numeric event IDs to fetch. Do not pass event slugs here; use the slug filter for known event slugs. |
| `slug` | array | No | Known event slugs from Polymarket URLs or discovery responses. Do not pass numeric event IDs. |
| `limit` | integer | No | Maximum number of events to return for this page. Use with offset to page through discovery results; the API supports up to 100 per call. |
| `active` | boolean | No | Filter by whether the event is currently active. For tradable discovery, commonly combine active=true with closed=false and archived=false. |
| `closed` | boolean | No | Filter by whether the event is closed. Set closed=false when looking for open/current events; set closed=true for historical or resolved event research. |
| `offset` | integer | No | Zero-based number of events to skip. Increase by limit for subsequent pages when scanning many events. |
| `tagIds` | array | No | Numeric tag IDs to include. Use tagSlug when filtering by a readable tag such as nba or nfl. |
| `orderBy` | array | No | Response fields to sort by, such as updatedAt, startDate, endDate, volume, or liquidity. Pass as an array even for one field. |
| `tagSlug` | string | No | Tag slug such as nba or nfl. This is a readable slug, not a numeric tag ID. |
| `archived` | boolean | No | Filter by whether the event is archived. Archived events are usually not useful for current market discovery. |
| `seriesId` | array | No | Numeric series IDs to restrict discovery to specific event series. Pass as an array even for one series. |
| `categories` | array | No | Event categories to include, such as sports. Combine with tagSlug, seriesId, or marketTypes to narrow broad result sets. |
| `marketTypes` | array | No | Market type strings to include. For sports, values commonly identify market families such as moneyline, spread, totals, props, or futures. |
| `includeHidden` | boolean | No | Whether to include hidden events. Leave false or omit for normal agentic discovery; hidden events may be incomplete or not intended for user-facing results. |
| `orderDirection` | string ("asc" | "desc") | No | Sort direction for orderBy. Use desc for newest or highest values first, asc for oldest or lowest first. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Events For League

**Slug:** `POLYMARKET_LIST_EVENTS_FOR_LEAGUE`

List Polymarket US events for a current v2 league slug such as "nba" or "nfl". Use List Leagues or Get Sport By Slug first if the slug is unknown. Supports limit/offset pagination, excludeEventId for de-duplicating already-seen events, and optional type/section filters. This action does not require API key authentication.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `slug` | string | Yes | Current v2 league slug from List Leagues or Get Sport By Slug, such as 'nba' or 'nfl'. |
| `type` | string ("sport" | "futures") | No | Event type filter. Use 'sport' for standard games or 'futures' for futures markets. |
| `limit` | integer | No | Maximum events to return for this page. |
| `offset` | integer | No | Number of events to skip before returning this page. Use with limit for pagination. |
| `section` | string ("general" | "trending") | No | Event section filter. Use 'general' for the standard list or 'trending' for trending events. |
| `excludeEventId` | array | No | Event IDs to omit from the results. Use this when paginating or composing multiple league sections and you need to avoid duplicate events. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Events For Series

**Slug:** `POLYMARKET_LIST_EVENTS_FOR_SERIES`

List Polymarket US sports events for a legacy v1 series ID. Prefer List Events For Sport or List Events For League for current v2 browsing. Use this action when an agent already has a series ID from a legacy sports workflow and needs related events. Supports limit/offset pagination, excludeEventId for de-duplicating already-seen events, and optional type/section filters. This action does not require API key authentication.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `type` | string ("sport" | "futures") | No | Event type filter. Use 'sport' for standard games or 'futures' for futures markets. |
| `limit` | integer | No | Maximum events to return for this page. |
| `offset` | integer | No | Number of events to skip before returning this page. Use with limit for pagination. |
| `section` | string ("general" | "trending") | No | Event section filter. Use 'general' for the standard list or 'trending' for trending events. |
| `seriesId` | integer | Yes | Legacy v1 sport series ID. Prefer v2 sport or league event tools for current browsing; use this only when a v1 series ID is already known. |
| `excludeEventId` | array | No | Event IDs to omit from the results. Use this when paginating or composing multiple legacy series sections and you need to avoid duplicate events. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Events For Sport

**Slug:** `POLYMARKET_LIST_EVENTS_FOR_SPORT`

List Polymarket US events for a current v2 sport slug such as "football" or "basketball". Use List Sports first if the slug is unknown. Supports limit/offset pagination, excludeEventId for de-duplicating already-seen events, and optional type/section filters. This action does not require API key authentication.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `slug` | string | Yes | Current v2 sport slug from List Sports, such as 'football' or 'basketball'. |
| `type` | string ("sport" | "futures") | No | Event type filter. Use 'sport' for standard games or 'futures' for futures markets. |
| `limit` | integer | No | Maximum events to return for this page. |
| `offset` | integer | No | Number of events to skip before returning this page. Use with limit for pagination. |
| `section` | string ("general" | "trending") | No | Event section filter. Use 'general' for the standard list or 'trending' for trending events. |
| `excludeEventId` | array | No | Event IDs to omit from the results. Use this when paginating or composing multiple sports sections and you need to avoid duplicate events. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Featured Tags

**Slug:** `POLYMARKET_LIST_FEATURED_TAGS`

List featured Polymarket US tag sections from the public gateway API. Featured tags are curated browse sections, often with subtags, intended for discovery UI and recommendation flows rather than exhaustive filtering. Use List Tags when the agent needs the full searchable tag set. This action does not require API key authentication.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Leagues

**Slug:** `POLYMARKET_LIST_LEAGUES`

List current Polymarket US sports leagues from the v2 public gateway API. This is the preferred action for discovering league slugs such as "nfl" or "nba" before calling Get League By Slug or List Events For League. Supports limit/offset pagination with a maximum page size of 50. This action does not require API key authentication.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Maximum leagues to return for this page. The v2 API allows up to 50. |
| `offset` | integer | No | Number of leagues to skip before returning this page. Use with limit for pagination. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Markets

**Slug:** `POLYMARKET_LIST_MARKETS`

Discover Polymarket US markets from the public gateway API. Use this action when an agent needs candidate market slugs or IDs before reading market details, order books, best bid/offer, or preparing orders. Practical guidance for agents: - For currently tradable candidates, start with active=true, closed=false, and archived=false, then paginate with limit and offset. - Pass numeric market IDs in id and market slugs in slug; do not mix the two identifier types. - Discovery results are not a substitute for live pricing. Before quoting, previewing, or placing an order, read Get Market BBO for top-of-book or Get Market Book for depth. - This read-only discovery action does not require Polymarket API key auth.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | array | No | Numeric market IDs to fetch. Do not pass market slugs here; use the slug filter for known market slugs. |
| `slug` | array | No | Known market slugs from Polymarket URLs or discovery responses. Do not pass numeric market IDs. |
| `limit` | integer | No | Maximum number of markets to return for this page. Use with offset to page through discovery results; the API supports up to 100 per call. |
| `active` | boolean | No | Filter by whether the market is currently active. For tradable discovery, commonly combine active=true with closed=false and archived=false. |
| `closed` | boolean | No | Filter by whether the market is closed. Set closed=false before preparing orders; set closed=true for historical or settlement research. |
| `offset` | integer | No | Zero-based number of markets to skip. Increase by limit for subsequent pages when scanning many markets. |
| `tagIds` | array | No | Numeric tag IDs to include. Use list/search discovery first if the caller only has a readable tag slug. |
| `orderBy` | array | No | Response fields to sort by, such as updatedAt, startDate, endDate, volumeNum, liquidity, or closedTime. Pass as an array even for one field. |
| `archived` | boolean | No | Filter by whether the market is archived. Archived markets are usually not suitable for current trading workflows. |
| `categories` | array | No | Market categories to include, such as sports. Use broad categories first, then narrow with marketTypes, sportsMarketTypes, or tagIds. |
| `marketTypes` | array | No | Market type strings to include. For sports, values commonly identify market families such as moneyline, spread, totals, props, or futures. |
| `includeHidden` | boolean | No | Whether to include hidden markets. Leave false or omit for normal agentic discovery; hidden markets may be incomplete or not intended for user-facing results. |
| `orderDirection` | string ("asc" | "desc") | No | Sort direction for orderBy. Use desc for newest or highest values first, asc for oldest or lowest first. |
| `sportsMarketTypes` | array | No | Structured sports market type enum values. Use this instead of free-form marketTypes when the caller knows the sports market family. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Series

**Slug:** `POLYMARKET_LIST_SERIES`

List Polymarket US series from the public gateway API. Series are recurring or grouped event collections, such as seasonal or repeated sports event groupings. Use this action to discover a series ID or slug before fetching related events or markets with series-aware tools. This action does not require API key authentication.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `slug` | array | No | Filter to one or more URL-safe series slugs. |
| `limit` | integer | No | Maximum number of recurring or grouped event series to return. |
| `active` | boolean | No | When true, return only active series; when false, inactive series. |
| `offset` | integer | No | Zero-based number of series to skip before returning results. |
| `orderBy` | array | No | Response fields to sort series by, such as updatedAt. |
| `recurrence` | string | No | Filter by recurrence pattern for recurring event collections, such as daily or weekly when supported by the API. |
| `orderDirection` | string ("asc" | "desc") | No | Sort direction for orderBy fields. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Sports

**Slug:** `POLYMARKET_LIST_SPORTS`

List Polymarket US sports from the current v2 public gateway API. Use this for sports browsing and for discovering sport slugs such as "football" or "basketball" before calling Get Sport By Slug or List Events For Sport. This action does not require API key authentication.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Sports Teams

**Slug:** `POLYMARKET_LIST_SPORTS_TEAMS`

List Polymarket US sports teams from the legacy v1 public gateway API. Use this action when an agent needs team metadata for sports events or needs to filter teams by league, name, abbreviation, or Polymarket team ID. The Pydantic filter fields named filters_* are translated to the dotted API query names filters.league, filters.name, filters.abbreviation, and filters.id. This action does not require API key authentication.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Maximum teams to return for this page. |
| `offset` | integer | No | Number of teams to skip before returning this page. Use with limit for pagination. |
| `orderBy` | array | No | Team fields to order by. Common values include 'name', 'league', 'abbreviation', and 'id'. |
| `filters_id` | array | No | Polymarket team IDs to filter by. This Pydantic field is sent to the API as 'filters.id'. |
| `filters_name` | array | No | Team names to filter by. This Pydantic field is sent to the API as 'filters.name'. |
| `filters_league` | array | No | League slugs to filter by. This Pydantic field is sent to the API as 'filters.league'. |
| `orderDirection` | string ("asc" | "desc") | No | Sort direction for orderBy. Use 'asc' or 'desc'. |
| `filters_abbreviation` | array | No | Team abbreviations to filter by. This Pydantic field is sent to the API as 'filters.abbreviation'. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Sports Teams For Provider

**Slug:** `POLYMARKET_LIST_SPORTS_TEAMS_FOR_PROVIDER`

List Polymarket US legacy v1 sports team mappings for a data provider. Use this action when an agent needs provider-specific team IDs for SportsDataIO or Sportradar integrations. Pass provider as the enum value "PROVIDER_SPORTSDATAIO" or "PROVIDER_SPORTRADAR"; optionally narrow by Polymarket teamIds and league slug. This action does not require API key authentication.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `league` | string | No | League slug to limit provider mappings, such as 'nba' or 'nfl'. |
| `teamIds` | array | No | Polymarket team IDs to map to provider-specific team IDs. Values are strings in this API. |
| `provider` | string ("PROVIDER_SPORTSDATAIO" | "PROVIDER_SPORTRADAR") | No | Sports data provider enum. Use 'PROVIDER_SPORTSDATAIO' or 'PROVIDER_SPORTRADAR'. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Subjects

**Slug:** `POLYMARKET_LIST_SUBJECTS`

List Polymarket US subject entities from the public gateway API. Subjects are teams, people, candidates, players, nominees, or other named entities that markets can be about. Use this action to discover the subject ID or slug before calling the subject market lookup tools. This action does not require API key authentication.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Maximum number of subject entities to return. |
| `query` | string | No | Search text for a subject name or display name, such as a team, person, candidate, player, or other market entity. |
| `offset` | integer | No | Zero-based number of subjects to skip before returning results. |
| `subjectType` | string | No | Filter by subject type, for example team, player, nominee, candidate, or golf_player. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Tags

**Slug:** `POLYMARKET_LIST_TAGS`

List ranked Polymarket US tags from the public gateway API. Tags are topic, sport, league, and browse filters that agents can use to narrow event or market discovery before calling event and market listing tools. Use parentSlug="sports" to discover sports and league tags. This action does not require API key authentication.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `ids` | array | No | Filter to one or more numeric tag IDs returned by tag lookups. |
| `slug` | array | No | Filter to one or more tag slugs, such as a league or topic slug. |
| `limit` | integer | No | Maximum number of topic, sport, or league tags to return. |
| `offset` | integer | No | Zero-based number of tags to skip before returning results. |
| `orderBy` | array | No | Response fields to sort tags by, such as label or updatedAt. |
| `parentId` | integer | No | Filter to child tags under this parent tag ID. Ignored when parentSlug is also provided. |
| `parentSlug` | string | No | Filter to child tags under this parent slug, such as sports. Takes priority over parentId. |
| `orderDirection` | string ("asc" | "desc") | No | Sort direction for orderBy fields. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Modify Multiple Orders

**Slug:** `POLYMARKET_MODIFY_MULTIPLE_ORDERS`

Modify up to 20 Polymarket US open orders in one request. Use only when the user explicitly asks to change the batch. These live cancel-replace style mutations can change funding requirements, exposure, maker-only behavior, queue priority, and fill risk; the response can be partial, so confirm per-order state after modification when accuracy matters.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `orders` | array | Yes | One to 20 existing open orders to modify in a single batch. Each item may affect price, quantity, maker-only behavior, funding, and queue priority; inspect each result afterward. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Modify Order

**Slug:** `POLYMARKET_MODIFY_ORDER`

Modify one existing Polymarket US open order. This is a live cancel-replace style mutation and should only be used when the user explicitly asks to change an order. It can alter exposure, required funds, queue priority, and fill behavior; verify the updated order state after the request when confirmation matters.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `tif` | string ("TIME_IN_FORCE_DAY" | "TIME_IN_FORCE_GOOD_TILL_CANCEL" | "TIME_IN_FORCE_GOOD_TILL_DATE" | "TIME_IN_FORCE_IMMEDIATE_OR_CANCEL" | "TIME_IN_FORCE_FILL_OR_KILL") | No | Replacement time-in-force policy. Immediate-or-cancel and fill-or-kill can cancel unfilled size instead of leaving a resting order. |
| `price` | object | No | Replacement limit price and currency. Changing price can alter fill probability and may trigger immediate execution depending on tif and maker-only settings. |
| `orderId` | string | Yes | Exchange-assigned open order ID to modify. The API treats this as a live cancel-replace style mutation of that order. |
| `quantity` | number | No | Replacement total order quantity in shares, not an increment. Larger quantities may require additional available buying power. |
| `marketSlug` | string | Yes | Market slug for the open order being modified. |
| `goodTillTime` | string | No | Expiration timestamp for TIME_IN_FORCE_GOOD_TILL_DATE orders. Omit for other tif values. |
| `participateDontInitiate` | boolean | No | Set true to require maker-only behavior. A maker-only modification may be rejected or remain unfilled if it would immediately take liquidity. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Preview Order

**Slug:** `POLYMARKET_PREVIEW_ORDER`

Preview a Polymarket US order without submitting it to the market. Use this signed, read-only action before live order creation to validate parameters and inspect the calculated order response. It requires Polymarket US signed authentication but does not create, modify, cancel, or reserve funds for an order.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `order` | object | Yes | Order request to preview only. This validates parameters and expected order effects but does not place an order. Either intent or outcomeSide plus action must identify the desired side. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Search Markets And Events

**Slug:** `POLYMARKET_SEARCH_MARKETS_AND_EVENTS`

Search public Polymarket US markets and events for discovery. Use this for natural-language discovery when an agent needs candidate market or event slugs/IDs before calling specific market/event endpoints. Search results should not be treated as live pricing or trading readiness: after selecting a market, read the market details and then Get Market BBO or Get Market Book before quoting, previewing, or placing an order. Use page and limit to paginate. This read-only action does not require API key authentication.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | integer | No | One-based search results page number. Increase this with the same limit to continue through additional discovery results. |
| `limit` | integer | No | Maximum search results to return on this page. Use with page for pagination; the API supports up to 100 per call. |
| `query` | string | No | Natural-language discovery query, such as a team, league, event, or market topic. Search is for finding candidate events/markets, not for pricing or trading. |
| `status` | string | No | Status filter for search results, such as open for current markets/events or closed for historical results when supported. |
| `seriesIds` | array | No | Numeric series IDs to restrict search results. Pass as an array even for one series. |
| `marketType` | array | No | Market type strings to restrict search results, such as futures, moneyline, spread, total, or prop when supported by the result set. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |
