402.bot
Recipe
live $0.0075 medium Market & Prediction

Polymarket Open Positions Brief

Summarize a wallet's open Polymarket positions, concentration, and exit watch items.

$0.0075price
2steps
2sources
75ktokens saved
6tool calls compressed
median latency
api.402.botGoogle Gemini Flash Structured

Endpoint: /v1/recipes/polymarket-open-positions-brief/run
Capabilities: askgina, predictions, polymarket, markets, open-positions

Why pay for this?

This recipe turns roughly 6 separate tool operations into one paid endpoint call and saves about ~75k tokens saved.

Load Polymarket performance analytics -> Summarize open positions

Creator

Name: 402.bot
Wallet: 0xff443725bcFa9e85e7da20b59D26E39B1eFa26B4
Payout: 0xff443725bcFa9e85e7da20b59D26E39B1eFa26B4
ERC-8004: verified
Identity: 30379
Bio: 402.bot managed workflow marketplace recipes.
ERC-8004 reputation: 0.0
Creator score: 21

Usage and trust

Success 30d: 0%
Refund 30d: 0%
Paid runs: 0
Creator recipes: 1
Last run: No recent runs

Pipeline

Stage 1

Load Polymarket performance analytics

http

Source: api.402.bot
Step id: analytics

Stage 2

Summarize open positions

fetch_transform

Source: Google Gemini Flash Structured
Step id: summarize

Recent runs

RunStatusTriggerQueued
No recent runs recorded yet. Runs appear here after the first paid execution.
View raw step spec

Load Polymarket performance analytics

{
  "id": "analytics",
  "url": "https://api.402.bot/analytics/predictions/polymarket/{{ $.input.walletAddress }}",
  "kind": "http",
  "query": {
    "days": "{{ $.input.days }}",
    "closedLimit": 50,
    "activityLimit": 100,
    "positionsLimit": 50
  },
  "title": "Load Polymarket performance analytics",
  "method": "GET",
  "outputPath": "$.response"
}

Summarize open positions

{
  "id": "summarize",
  "kind": "fetch_transform",
  "title": "Summarize open positions",
  "request": {
    "params": {
      "input": {
        "summary": "{{ $.stepsById.analytics.output.summary }}",
        "lookbackDays": "{{ $.stepsById.analytics.output.lookbackDays }}",
        "openPositions": "{{ $.stepsById.analytics.output.openPositions }}",
        "walletAddress": "{{ $.input.walletAddress }}"
      },
      "prompt": "Summarize these open Polymarket positions for an operator. Focus on concentration, largest positions, mark-to-market context, and exit watch items.",
      "responseSchema": {
        "type": "object",
        "required": [
          "walletAddress",
          "lookbackDays",
          "summary",
          "largestPositions",
          "concentrationNotes",
          "exitWatchItems"
        ],
        "properties": {
          "summary": {
            "type": "string"
          },
          "lookbackDays": {
            "type": "integer"
          },
          "walletAddress": {
            "type": "string"
          },
          "exitWatchItems": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Exit watch items."
          },
          "largestPositions": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "title",
                "currentValueUsdc"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "outcome": {
                  "type": "string"
                },
                "cashPnlUsdc": {
                  "type": "number"
                },
                "currentValueUsdc": {
                  "type": "number"
                }
              },
              "additionalProperties": false
            }
          },
          "concentrationNotes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Concentration notes."
          }
        },
        "additionalProperties": false
      },
      "systemInstruction": "You are preparing a concise open-position brief. Stay grounded in the supplied analytics only."
    },
    "sourceId": "google_gemini_flash_structured",
    "deliveryFormat": "json"
  }
}