autogen icon indicating copy to clipboard operation
autogen copied to clipboard

Community x402 data provider: AgentServices - 50+ APIs for AutoGen agents (crypto, market intel, search, inference)

Open vbkotecha opened this issue 4 months ago • 1 comments

AgentServices: x402 Data APIs for AutoGen Agents

AgentServices provides 50+ API endpoints that agents can discover and pay for via x402 micropayments ($0.01-$0.25/call, USDC on Base). Perfect fit for AutoGen agents that need real-world data.

Why this matters for AutoGen

AutoGen already has x402 support via ag402 (monkey-patches httpx for auto 402-payment). AgentServices gives AutoGen agents a comprehensive data layer to consume.

What agents get

Free endpoints (11):

  • GET /v1/prices/{symbol} - crypto prices (BTC, ETH, 100+)
  • GET /v1/fear-greed - market sentiment index
  • GET /v1/trending - trending tokens
  • GET /v1/news - crypto news
  • GET /v1/gas - gas prices

Paid endpoints (39, $0.01-$0.25):

  • GET /v1/indicators/{symbol} - RSI, MACD, Bollinger Bands ($0.02)
  • GET /v1/yields - DeFi yields across protocols ($0.02)
  • GET /v1/portfolio?symbol=BTC - portfolio intelligence: risk + sentiment + verdict ($0.10)
  • GET /v1/market-pulse - fear/greed + trending + news + whales ($0.05)
  • GET /v1/defi-strategy - cross-protocol yield comparison + risk assessment ($0.25)
  • GET /v1/onchain-overview - whale flows + exchange flows + stablecoin flows ($0.15)
  • GET /v1/arbitrage?symbol=BTC - cross-DEX arbitrage with profitability modeling ($0.08)
  • POST /v1/research - search + extract + synthesize ($0.05)
  • POST /v1/inference - LLM inference (GPT, Claude, Gemini) ($0.03)

MCP Integration (zero-config)

AgentServices also provides a remote MCP endpoint at https://agentservices.to/mcp with 37 tools. AutoGen agents can connect via McpWorkbench with SSE or Streamable HTTP transport.

Differentiator vs raw data APIs

AgentServices provides synthesis endpoints that compute decisions:

  • Portfolio Intelligence aggregates 4 data sources into a risk-adjusted investment verdict
  • Cross-DEX Arbitrage models profitability across exchanges at different trade sizes
  • DeFi Strategy compares yields with gas-adjusted returns and risk flags

Links

  • Website: https://agentservices.to
  • GitHub: https://github.com/vbkotecha/aiservices-api
  • MCP: https://agentservices.to/mcp
  • Examples: https://agentservices.to/examples
  • x402 manifest: https://agentservices.to/.well-known/x402.json
  • Full OpenAPI: https://agentservices.to/openapi.json

Would love to hear feedback from the AutoGen community on what additional data/analysis endpoints would be valuable!

vbkotecha avatar Jul 08 '26 05:07 vbkotecha

Good to see x402 landing in the AutoGen ecosystem. One thing worth designing in from the start: the moment an agent can auto-pay for an API, the payment-authorization path becomes an attack surface of its own — the payTo address changing between challenge and settlement, a payment authorization redirected to the wrong recipient, a fabricated session token replayed after payment.

We maintain an open x402 test harness (x402_harness.py, 52 cases) that exercises exactly these against a provider — e.g. dynamic-routing / payTo swap (X4-004), wrong-recipient payment (X4-005), fabricated session token (X4-008). Could be a useful conformance layer for validating AgentServices integrations before agents are trusted to settle against them.

Repo: https://github.com/msaleme/red-team-blue-team-agent-fabric

msaleme avatar Jul 10 '26 13:07 msaleme