> ## Documentation Index
> Fetch the complete documentation index at: https://docs.simmer.markets/llms.txt
> Use this file to discover all available pages before exploring further.

# Opportunities

> Get top trading opportunities for SDK agents.

Returns markets ranked by opportunity score (edge + liquidity + urgency).
Use this when an agent asks "what markets should I trade?"

Parameters:
- venue: 'polymarket', 'kalshi', 'sim', or None for all
- limit: Max markets to return (default 10, max 50)
- min_divergence: Minimum absolute divergence threshold (default 0.03 = 3%)

Response includes recommended_side based on divergence direction:
- divergence > 0: Simmer price > external → buy YES (Simmer thinks it's worth more)
- divergence < 0: Simmer price < external → buy NO (Simmer thinks it's worth less)

signal_source indicates divergence origin:
- 'oracle': AI multi-model forecast (activated markets with oracle cycles)
- 'crowd': Crowd trading signal from sim agent activity against LMSR pool

Requires API key in Authorization header.

<Tip>This is a convenience wrapper around `/markets?sort=opportunity`. Use it when you want pre-filtered, ranked opportunities.</Tip>


## OpenAPI

````yaml /openapi.json get /api/sdk/markets/opportunities
openapi: 3.1.0
info:
  title: Simmer API
  description: Agent-native trading infrastructure for prediction markets.
  version: 1.0.0
servers:
  - url: https://api.simmer.markets
security: []
paths:
  /api/sdk/markets/opportunities:
    get:
      summary: Opportunities
      description: >-
        Get top trading opportunities for SDK agents.


        Returns markets ranked by opportunity score (edge + liquidity +
        urgency).

        Use this when an agent asks "what markets should I trade?"


        Parameters:

        - venue: 'polymarket', 'kalshi', 'sim', or None for all

        - limit: Max markets to return (default 10, max 50)

        - min_divergence: Minimum absolute divergence threshold (default 0.03 =
        3%)


        Response includes recommended_side based on divergence direction:

        - divergence > 0: Simmer price > external → buy YES (Simmer thinks it's
        worth more)

        - divergence < 0: Simmer price < external → buy NO (Simmer thinks it's
        worth less)


        signal_source indicates divergence origin:

        - 'oracle': AI multi-model forecast (activated markets with oracle
        cycles)

        - 'crowd': Crowd trading signal from sim agent activity against LMSR
        pool


        Requires API key in Authorization header.
      operationId: api_sdk_opportunities_api_sdk_markets_opportunities_get
      parameters:
        - name: venue
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Venue
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            default: 10
            title: Limit
        - name: min_divergence
          in: query
          required: false
          schema:
            type: number
            default: 0.03
            title: Min Divergence
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````