{
  "schema_version": "1.0.0",
  "id": "trading-agent-search-map",
  "title": "Where Should a Trading Bot Check Its Data?",
  "page_url": "https://agentdecisiongate.com/workflows/trading-agent-search-map",
  "guide_url": "https://agentdecisiongate.com/v1/workflows/trading-agent-search-map",
  "source_docs_reviewed_on": "2026-11-24",
  "query_basis": "Proposed task queries based on published source documentation and a synthetic routing pilot; not measured trading bot search frequency.",
  "payment_required": false,
  "evaluation_endpoint": null,
  "boundary": "Read-only source routing. Not live data, financial advice, market prediction, order execution, or verification of provider uptime or data quality.",
  "evidence_rules": [
    "Match the chain, venue, product, and metric before comparing prices or status.",
    "Separate observation time, arrival time, and the source's coverage or finality.",
    "Prefer the source that owns the exact fact. Use aggregators for candidates and adapters for field semantics, not independent confirmation of the same upstream feed.",
    "If the evidence still conflicts or is incomplete, record what is unknown. Do not infer that an order, payment, or transaction failed or should be repeated."
  ],
  "routing_pilot": {
    "run_date": "2026-11-24",
    "agent_runs": 4,
    "design": "Four isolated runs of the same model family received the same four synthetic trading-monitoring states without the DEO map or prior conversation.",
    "measurement": "Stated next actions and intended source choices only. No browsing, live reads, orders, or payments. The read-only restriction was supplied in the task.",
    "limits": "This compares responses to fixed prompts, not search behavior, time synchronization, live trading results, or behavior across model families.",
    "cases": [
      {
        "case_id": "A",
        "purpose_id": "quote-freshness",
        "condition": "One stale feed; both responses arrived recently",
        "agreed_stop": "Pause comparison; Feed B is 480 seconds old under a 90-second limit. Keep the fresh Feed A snapshot until it expires.",
        "first_anchor": "If the comparison must continue, refresh only Feed B via its configured read-only CCXT Coinbase adapter. Check both ages again before comparing.",
        "matching_responses": 4
      },
      {
        "case_id": "B",
        "purpose_id": "identify-asset",
        "condition": "Same ticker, different chain and contract",
        "agreed_stop": "Do not combine the records by symbol. No external lookup is needed to determine that the current records do not establish equivalence.",
        "first_anchor": "Only if the task still requires an equivalence check, look for the issuer's mapping or canonical bridge records for the exact chain and contract pair.",
        "matching_responses": 4
      },
      {
        "case_id": "C",
        "purpose_id": "order-status",
        "condition": "Order response timed out",
        "agreed_stop": "Stop at unknown execution status until reliable evidence resolves the original order; a timeout is not a rejection.",
        "first_anchor": "The original venue's authorized read-only order query: Binance Spot Query Order for the original symbol and client order ID in this fixture.",
        "matching_responses": 4
      },
      {
        "case_id": "D",
        "purpose_id": "fresh-quote-disagreement",
        "condition": "Both feeds fresh; one metric undefined and upstream shared",
        "agreed_stop": "Pause the interpretation of the price gap. Fresh timestamps and a shared venue do not establish comparable metrics.",
        "first_anchor": "Feed B's exact price-field definition or derivation record, not another quote or a second copy of the same venue feed.",
        "matching_responses": 4
      }
    ]
  },
  "casebook": {
    "page_url": "https://agentdecisiongate.com/workflows/trading-agent-casebook",
    "guide_url": "https://agentdecisiongate.com/v1/workflows/trading-agent-casebook"
  },
  "purposes": [
    {
      "id": "identify-asset",
      "stage": "Before comparing feeds",
      "search_query": "same token symbol different chain contract address price comparison",
      "question": "Do two feeds with the same token symbol refer to the same asset?",
      "answer": "Match chain and asset identifiers locally before comparing prices. If they differ, keep the records separate. Only if you need to establish a cross-chain relationship, check the issuer or canonical bridge mapping for both exact addresses. A verified relationship does not by itself make prices or redemption terms equivalent.",
      "inspect": [
        "chain_id",
        "asset or contract address",
        "base asset and quote unit",
        "authoritative cross-chain mapping, if needed"
      ],
      "sources": [
        {
          "id": "caip-19",
          "when": "Use to normalize identifiers, not to prove economic equivalence."
        },
        {
          "id": "coingecko-list",
          "when": "Use to find candidate platform addresses, not as the final identity check."
        }
      ],
      "stop_when": "Hold if the chain, token address, or quote unit differs or is unknown. Do not merge by ticker alone.",
      "page_url": "https://agentdecisiongate.com/workflows/trading-agent-search-map#identify-asset",
      "local_guide_url": "https://agentdecisiongate.com/workflows/market-data-checkpoint#same-symbol-different-chain"
    },
    {
      "id": "quote-freshness",
      "stage": "After fetching a quote",
      "search_query": "market data quote timestamp missing exchange timestamp vs receive time refresh stale source",
      "question": "Is the quote fresh, and which feed should I refresh?",
      "answer": "Use the source observation time for the same product and metric. If the comparison still matters, refresh only the stale or unknown feed through its configured read path, then recheck every compared snapshot against the freshness policy. A recent HTTP response does not make a quote fresh.",
      "inspect": [
        "venue and product",
        "source event or snapshot time",
        "observed_at",
        "decision_time",
        "max_age_seconds"
      ],
      "sources": [
        {
          "id": "ccxt-timestamps",
          "when": "If the bot uses CCXT, inspect the configured adapter's observation time and refresh that feed only if needed."
        },
        {
          "id": "binance-public",
          "when": "For Binance Spot observations; use your own venue's documentation to check native field semantics."
        }
      ],
      "stop_when": "Do not use a quote as fresh if the observation time is unknown. A fresh quote can still be incorrect or incomparable.",
      "page_url": "https://agentdecisiongate.com/workflows/trading-agent-search-map#quote-freshness",
      "local_guide_url": "https://agentdecisiongate.com/workflows/market-data-checkpoint#stale-feed"
    },
    {
      "id": "fresh-quote-disagreement",
      "stage": "When fresh quotes still disagree",
      "search_query": "fresh quotes disagree same upstream price field last trade vs bid ask midpoint",
      "question": "Both quotes are fresh. Is the price gap meaningful?",
      "answer": "Pause the comparison. Start with the ambiguous feed's local schema or original price-field definition, not another price lookup. Compare the metric, inputs, observation time, and upstream venue before interpreting the gap.",
      "inspect": [
        "price field definition and derivation",
        "last trade vs bid/ask midpoint",
        "observation time for both feeds",
        "shared upstream venue"
      ],
      "sources": [
        {
          "id": "ccxt-timestamps",
          "when": "For CCXT field and snapshot semantics only. Use the ambiguous feed's own documentation or derivation record for its actual price field."
        },
        {
          "id": "coinbase-book",
          "when": "For the Coinbase book inputs, not for the definition used by a downstream feed."
        }
      ],
      "stop_when": "If the metric remains undefined, report the quotes as not comparable. Two current copies of one upstream feed do not provide independent confirmation.",
      "page_url": "https://agentdecisiongate.com/workflows/trading-agent-search-map#fresh-quote-disagreement",
      "local_guide_url": "https://agentdecisiongate.com/workflows/market-data-checkpoint#quote-definitions"
    },
    {
      "id": "liquidity-and-depth",
      "stage": "Before comparing quoted depth",
      "search_query": "order book bids asks size liquidity snapshot not executable quote CEX DEX pool",
      "question": "Does the liquidity or top-of-book price represent the size I need?",
      "answer": "Inspect price levels and sizes in the exact product book, or identify the exact DEX pool before seeking a size-specific venue quote. A last trade or a pool total alone is insufficient.",
      "inspect": [
        "product or pair address",
        "bids and asks with sizes",
        "snapshot time",
        "pool or venue",
        "intended size and units"
      ],
      "sources": [
        {
          "id": "coinbase-book",
          "when": "For the Coinbase product's visible order book."
        },
        {
          "id": "dexscreener-pairs",
          "when": "For DEX pool discovery and liquidity hints only."
        }
      ],
      "stop_when": "Do not infer executable size, a guaranteed fill, or fee from one book snapshot or a pool liquidity total.",
      "page_url": "https://agentdecisiongate.com/workflows/trading-agent-search-map#liquidity-and-depth",
      "local_guide_url": null
    },
    {
      "id": "order-status",
      "stage": "After an interrupted order response",
      "search_query": "order request timed out execution status unknown check original order id before retrying",
      "question": "Did the original order execute when the response timed out?",
      "answer": "Check the original venue, account, and locally retained status first. If it is still unresolved, read the original order record and fill size with authorized access to the venue that received the request, without sending a new order.",
      "inspect": [
        "original venue and account",
        "symbol or product",
        "original order identifier",
        "order status",
        "filled quantity"
      ],
      "sources": [
        {
          "id": "binance-order",
          "when": "For an original Binance Spot order."
        },
        {
          "id": "coinbase-order",
          "when": "For an original Coinbase Advanced Trade order."
        }
      ],
      "stop_when": "An unknown result is not a failed order. Do not resubmit automatically; follow the venue's reconciliation and operator policy.",
      "page_url": "https://agentdecisiongate.com/workflows/trading-agent-search-map#order-status",
      "local_guide_url": null
    },
    {
      "id": "chain-confirmation",
      "stage": "After an on-chain transaction",
      "search_query": "transaction receipt missing check confirmation status before retry ethereum solana",
      "question": "Is the transaction pending, failed, or confirmed on the correct chain?",
      "answer": "Query the original hash or signature on its intended chain. Separate inclusion, execution status, and the confirmation level required by your policy.",
      "inspect": [
        "chain or cluster",
        "original hash or signature",
        "receipt status or err",
        "block or slot",
        "confirmation level"
      ],
      "sources": [
        {
          "id": "ethereum",
          "when": "For an Ethereum-compatible transaction on the correct network."
        },
        {
          "id": "solana",
          "when": "For a Solana signature; distinguish a recent-cache miss from a history lookup."
        }
      ],
      "stop_when": "Do not retry or assume settlement solely from a missing status or inclusion without the required confirmation.",
      "page_url": "https://agentdecisiongate.com/workflows/trading-agent-search-map#chain-confirmation",
      "local_guide_url": null
    },
    {
      "id": "macro-release",
      "stage": "Before using macroeconomic data",
      "search_query": "economic release schedule timezone actual published data revised BLS FRED calendar",
      "question": "When did the economic release happen, and are the numbers available?",
      "answer": "Use a calendar to locate the event, then read the issuing agency's release and revision notes. Keep scheduled, published, and ingested times separate.",
      "inspect": [
        "issuing agency",
        "release and reference period",
        "scheduled time zone",
        "published timestamp",
        "revision or vintage"
      ],
      "sources": [
        {
          "id": "bls-calendar",
          "when": "For official BLS release times."
        },
        {
          "id": "fred-calendar",
          "when": "For discovery across publishers, not confirmation of data availability."
        }
      ],
      "stop_when": "Do not treat a calendar entry, forecast, or unreleased figure as a published observation.",
      "page_url": "https://agentdecisiongate.com/workflows/trading-agent-search-map#macro-release",
      "local_guide_url": null
    },
    {
      "id": "retry-budget",
      "stage": "After throttling or repeated low-progress reads",
      "search_query": "trading bot 429 retry after retry budget new evidence stop repeating reads",
      "question": "Should the bot retry after a rate limit or a repeated read?",
      "answer": "Read the original provider's documented backoff and respect the local retry, time, and spend caps. Only reassess a reversible investigation if the cap has not been exhausted and new evidence could change the next step.",
      "inspect": [
        "429 and Retry-After if provided",
        "local retry and spend limits",
        "changes in evidence"
      ],
      "sources": [
        {
          "id": "binance-limits",
          "when": "For Binance's own documented limits; substitute native documentation on another venue."
        }
      ],
      "stop_when": "Do not exceed a hard cap. Do not use this route to retry an order or authorize payment.",
      "page_url": "https://agentdecisiongate.com/workflows/trading-agent-search-map#retry-budget",
      "local_guide_url": "https://agentdecisiongate.com/gates/mission#retry-limit-new-evidence"
    }
  ],
  "source_directory": [
    {
      "id": "caip-19",
      "name": "CAIP-19 asset identifiers",
      "url": "https://standards.chainagnostic.org/CAIPs/caip-19",
      "role": "Technical standard",
      "use_for": "Represent the asset relative to a specific chain and asset namespace.",
      "limitation": "An identifier structure does not prove the token's identity, equivalence across chains, or endorsement.",
      "access": "Public documentation"
    },
    {
      "id": "coingecko-list",
      "name": "CoinGecko Coins List",
      "url": "https://docs.coingecko.com/reference/coins-list",
      "role": "Aggregator",
      "use_for": "Find candidate CoinGecko IDs and platform addresses with include_platform.",
      "limitation": "An aggregator listing is not issuer confirmation. Verify chain and address independently before joining feeds.",
      "access": "Public documentation; API key may be needed"
    },
    {
      "id": "binance-public",
      "name": "Binance Spot market-data routes",
      "url": "https://github.com/binance/binance-spot-api-docs/blob/master/faqs/market_data_only.md",
      "role": "Primary source",
      "use_for": "Find Binance Spot's public routes for recent trades, ticker, and order book.",
      "limitation": "Binance Spot observations cover that venue and product only; a trade, book update, and ticker are different observations.",
      "access": "Public market data"
    },
    {
      "id": "ccxt-timestamps",
      "name": "CCXT Manual: order book timestamps",
      "url": "https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure",
      "role": "Adapter documentation",
      "use_for": "Understand normalized timestamp and nonce fields and when an exchange may omit them.",
      "limitation": "Two adapters backed by the same exchange are not independent sources. Check the original venue's field semantics.",
      "access": "Public documentation; underlying venue terms vary"
    },
    {
      "id": "coinbase-book",
      "name": "Coinbase Advanced Trade: Public Product Book",
      "url": "https://docs.cdp.coinbase.com/api-reference/advanced-trade-api/rest-api/public/get-public-product-book",
      "role": "Primary source",
      "use_for": "Read Coinbase product book bids, asks, sizes, and book time for the selected product.",
      "limitation": "One book snapshot is not a guaranteed execution price, fee, or fill.",
      "access": "Public market data documentation"
    },
    {
      "id": "dexscreener-pairs",
      "name": "DEX Screener: pairs and liquidity",
      "url": "https://docs.dexscreener.com/api/reference",
      "role": "Aggregator",
      "use_for": "Discover pools by chainId and pairAddress; inspect baseToken, quoteToken, and liquidity.",
      "limitation": "pairCreatedAt is pool creation time, not quote time. Liquidity totals are not a size-specific executable quote.",
      "access": "Public API documentation"
    },
    {
      "id": "binance-order",
      "name": "Binance Spot: Query Order",
      "url": "https://developers.binance.com/en/docs/catalog/core-trading-spot-trading/api/rest-api/account#query-order-user_data",
      "role": "Primary source",
      "use_for": "Look up the original order by symbol and orderId or origClientOrderId on the same venue.",
      "limitation": "Requires authorized access to the original account. An inconclusive lookup is not proof that resubmission is safe.",
      "access": "Private order lookup; authorized USER_DATA access"
    },
    {
      "id": "coinbase-order",
      "name": "Coinbase Advanced Trade: Get Order",
      "url": "https://docs.cdp.coinbase.com/api-reference/advanced-trade-api/rest-api/orders/get-order",
      "role": "Primary source",
      "use_for": "Look up a Coinbase order by order_id and inspect its status and filled_size.",
      "limitation": "This is a Coinbase account order record, not an on-chain transaction receipt or settlement proof.",
      "access": "Private order lookup; authorized Coinbase access"
    },
    {
      "id": "ethereum",
      "name": "Ethereum JSON-RPC: transaction receipt",
      "url": "https://ethereum.org/developers/docs/apis/json-rpc/#eth_gettransactionreceipt",
      "role": "Primary source",
      "use_for": "Inspect receipt status and block identity through a provider on the correct Ethereum-compatible network.",
      "limitation": "A missing receipt is not proof of failure. Successful inclusion is not the same as finality or exchange account settlement.",
      "access": "Public documentation; RPC provider terms may vary"
    },
    {
      "id": "solana",
      "name": "Solana RPC: getSignatureStatuses",
      "url": "https://solana.com/docs/rpc/http/getsignaturestatuses",
      "role": "Primary source",
      "use_for": "Inspect signature status, confirmationStatus, err, and the reported slot.",
      "limitation": "Without history lookup the search is limited to recent cached statuses. A null status is not proof of failure.",
      "access": "Public documentation; RPC provider terms may vary"
    },
    {
      "id": "binance-limits",
      "name": "Binance Spot: rate limits and timeouts",
      "url": "https://developers.binance.com/en/docs/products/spot/rest-api",
      "role": "Primary source",
      "use_for": "Read venue-specific Retry-After behavior and the meaning of an unknown execution status after a timeout.",
      "limitation": "Do not apply Binance-specific behavior to another venue. A backoff window does not grant more execution budget.",
      "access": "Public documentation"
    },
    {
      "id": "bls-calendar",
      "name": "U.S. Bureau of Labor Statistics release schedule",
      "url": "https://www.bls.gov/schedule/news_release/",
      "role": "Primary source",
      "use_for": "Confirm BLS release dates and Eastern Time with the publishing agency.",
      "limitation": "A scheduled time is not a published number; check the release itself and any later revisions.",
      "access": "Public calendar"
    },
    {
      "id": "fred-calendar",
      "name": "FRED release dates",
      "url": "https://fred.stlouisfed.org/docs/api/fred/releases_dates.html",
      "role": "Aggregator",
      "use_for": "Discover macroeconomic release dates across publishers.",
      "limitation": "Publisher release dates need not be the time the values become available in FRED or ALFRED.",
      "access": "Public documentation; API key required for the API"
    }
  ]
}