1inch/1inch-ai

1inch-market-data

- Fetch spot token prices, gas prices, and price charts via the 1inch MCP productapi tool.

查看源码

使用方法

  1. 复制安装命令,在自己的智能体环境安装前先检查源码包。
  2. 从原始文档核对所需工具、凭据和支持的宿主。
  3. 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/1inch/1inch-ai --skill 1inch-market-data

开始前需了解

  • 安装不包含模型订阅、API 额度或访问文件的权限。
  • 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
仓库原始内容

按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。

Market Data (product_api)

Call the authenticated tool `product_api` with the recipes in references/RECIPES.md. Call `authenticate` first if you are not already a real user (initialize 200 is still anonymous).

Prefer these intents

User askCall
Token price (USD)Spot Price — always set currency=USD unless native WEI is requested
Current gasGas Price — GET /gas-price/v1.6/{chainId}
Candles / chartCharts — confirm exact path via search if unsure

Critical gotcha

Spot Price returns native token WEI unless you pass currency (e.g. USD).

Fallback

If a path 404s, read file://1inch-mcp/guides/api-index or call search, then retry.

Example prompts

  • "What's the USD price of this token on Ethereum?"
  • "Current gas price on Base"
  • "Show a 1d price chart for WETH"

按任务相关推荐

来自同一仓库

更多 Skills

全部 Skills