402.bot
Recipe
live $0.0075 medium Market & Prediction

CEX Dislocation Watch

Turn cross-exchange spot and funding data into a compact price-dislocation watchlist.

$0.0075price
3steps
9sources
128ktokens saved
9tool calls compressed
median latency
BinanceCoinbaseKrakenBybitGate.ioBitgetCex Market ScanGoogle Gemini Flash StructuredTransform

Endpoint: /v1/recipes/cex-dislocation-watch/run
Capabilities: cex, arbitrage, funding, market-structure, research

Why pay for this?

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

Multi-exchange spot + funding scan -> dislocation watch

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 CEX market scan

fetch_transform

Source: Cex Market Scan
Step id: market_scan

Stage 2

Write dislocation watch

fetch_transform

Source: Google Gemini Flash Structured
Step id: brief

Stage 3

Attach market snapshot

transform

Source: Transform
Step id: finalize

Recent runs

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

Load CEX market scan

{
  "id": "market_scan",
  "kind": "fetch_transform",
  "title": "Load CEX market scan",
  "request": {
    "params": {
      "baseAsset": "{{ $.input.baseAsset }}",
      "exchanges": "{{ $.input.exchanges }}",
      "quoteAsset": "{{ $.input.quoteAsset }}",
      "includeFunding": "{{ $.input.includeFunding }}"
    },
    "sourceId": "cex_market_scan",
    "deliveryFormat": "json"
  }
}

Write dislocation watch

{
  "id": "brief",
  "kind": "fetch_transform",
  "title": "Write dislocation watch",
  "request": {
    "params": {
      "input": {
        "question": "{{ $.input.question }}",
        "marketScan": "{{ $.stepsById.market_scan.output }}"
      },
      "prompt": "Turn the supplied CEX market scan into a compact dislocation watch. Focus on price clustering, spread differences, and whether funding is diverging from the spot snapshot in a useful way.",
      "responseSchema": {
        "type": "object",
        "required": [
          "summary",
          "exchanges",
          "watchItems"
        ],
        "properties": {
          "summary": {
            "type": "string"
          },
          "exchanges": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "exchange",
                "symbol",
                "takeaway"
              ],
              "properties": {
                "symbol": {
                  "type": "string"
                },
                "askPrice": {
                  "type": "number"
                },
                "bidPrice": {
                  "type": "number"
                },
                "exchange": {
                  "type": "string"
                },
                "takeaway": {
                  "type": "string"
                },
                "lastPrice": {
                  "type": "number"
                },
                "spreadBps": {
                  "type": "number"
                },
                "fundingRate": {
                  "type": "number"
                },
                "priceChange24hPct": {
                  "type": "number"
                }
              },
              "additionalProperties": false
            }
          },
          "watchItems": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Cross-exchange follow-up checks."
          }
        },
        "additionalProperties": false
      },
      "systemInstruction": "Use only the supplied CEX market data. Do not invent exchange prices, funding levels, or arbitrage claims."
    },
    "sourceId": "google_gemini_flash_structured",
    "deliveryFormat": "json"
  }
}

Attach market snapshot

{
  "id": "finalize",
  "kind": "transform",
  "title": "Attach market snapshot",
  "request": {
    "mode": "clean_json",
    "source": {
      "kind": "json",
      "value": {
        "summary": "{{ $.stepsById.brief.output.output.summary }}",
        "baseAsset": "{{ $.stepsById.market_scan.output.baseAsset }}",
        "exchanges": "{{ $.stepsById.brief.output.output.exchanges }}",
        "quoteAsset": "{{ $.stepsById.market_scan.output.quoteAsset }}",
        "watchItems": "{{ $.stepsById.brief.output.output.watchItems }}",
        "generatedAt": "{{ $.run.startedAt }}",
        "marketSnapshot": "{{ $.stepsById.market_scan.output }}"
      }
    }
  }
}