x402 Resource: Agent Margin Router — 45 paid data endpoints on Base

Open
#1,499 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
15/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Active
Tech stack
python

Research direction

No repository file, test, or entry point is named, and the issue does not identify the showcase list or a specific repository change. Review the linked resource, facilitator endpoint, and x402scan entry first; completion would require a maintainer-confirmed scope for adding this resource.

Written by the indexing model from the issue text.

Description

x402 Resource: Agent Margin Router — 45 paid data endpoints on Base

URL: https://agent-margin-router-production.up.railway.app
Facilitator: CDP (https://api.cdp.coinbase.com/platform/v2/x402/verify)
x402scan: https://www.x402scan.com/server/ee360492-bf6b-4775-b099-a2d2d9e6e77d

AgentKit integration

A CDP-compatible x402 resource server: 45 data endpoints (market data, on-chain, web extraction) gated by x402. AgentKit agents can call them directly — no API keys, no subscriptions.

# AgentKit: automatic x402 discovery + payment via CDP facilitator
from coinbase_agentkit import AgentKit
kit = AgentKit()
# The agent discovers the resource, pays $0.005 USDC on Base, gets OHLCV data
response = kit.fetch("https://agent-margin-router-production.up.railway.app/crypto-ohlcv", 
                     json={"symbol": "BTC", "interval": "1h", "limit": 24})

Endpoints: /crypto-ohlcv, /market-spread, /agent-wallet-snapshot, /defi-yields, /web-search, /extract-clean and 39 more.

Reply if you want to add this to a showcase list or have questions.

Dominant language
TypeScript
Stars
1.3k
Forks
822
Avg merge
13h 31m
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from coinbase/agentkit

All issues in coinbase/agentkit

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.