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