sushiswap-api
REST API for optimized token swapping (including executable transaction generation), swap quoting, and pricing using the SushiSwap Aggregator. Use this skill when the user wants to: - Get a swap quote between two tokens on 40+ evm networks - Generate executable swap transaction data - Fetch token prices for a specific network or token - Retrieve token metadata - Discover supported AMM liquidity sources - Integrate SushiSwap swapping or pricing logic via HTTP/REST (and not the SushiSwap Javascript API)
- License 许可
- AGPL-3.0
- 最近更新
- 2026-11-13
- Stars
- ★ 81
- Forks
- 17
01 前言 Front Matter
- name
- sushiswap-api
- description
- REST API for optimized token swapping (including executable transaction generation), swap quoting, and pricing using the SushiSwap Aggregator. Use this skill when the user wants to: - Get a swap quote between two tokens on 40+ evm networks - Generate executable swap transaction data - Fetch token prices for a specific network or token - Retrieve token metadata - Discover supported AMM liquidity sources - Integrate SushiSwap swapping or pricing logic via HTTP/REST (and not the SushiSwap Javascript API)
02 资源文件 6
- 参考文档_meta.json132 B
- 参考文档references/OPENAPI.md1.5 KB
- 参考文档references/openapi.yaml15.9 KB
- 参考文档skill-card.md2.3 KB
- 参考文档SOURCE.md289 B
- 参考文档TRUST.auto.yaml2.2 KB
03 SKILL.md 正文
SushiSwap REST API Integration
The SushiSwap API provides HTTP access to the SushiSwap Aggregator for optimized token swaps, price discovery, and transaction generation. It aggregates liquidity from multiple DEXs to determine the best execution route.
Base URL
https://api.sushi.com
API Schema
The active API schema is defined in:
Agents must always rely on the schema contents rather than hardcoded assumptions.
How To Use
- Load
references/openapi.yaml - Discover available endpoints, parameters, and response shapes dynamically
- Select the appropriate endpoint based on user intent and schema tags
- Quotes → quote endpoints (e.g.
/quote/v7/{chainId}) - Swap execution → swap endpoints (e.g.
/swap/v7/{chainId}) - Prices → price endpoints (e.g.
/price/v1/{chainId}) - Token info → token endpoints (e.g.
/token/v1/{chainId}/{tokenAddress})
- Quotes → quote endpoints (e.g.
- Construct requests that strictly conform to the schema and include a valid
referrerparameter for all quote and swap endpoints - Validate required parameters before execution
Mandatory referrer Parameter
- The
referrerparameter must be specified on swap-related endpoints (e.g./quote&/swap) - The agent or integrator must identify themselves using this field
/quoteor/swaprequests must not be sent without areferrervalue- Agents must never attempt to omit, spoof, or auto-generate this value.
Fee Customization
The SushiSwap API supports customized integrator fees on swap-related endpoints (e.g. /quote & /swap).
Default fee model
- Swap-related requests follow an 80/20 fee split by default
- 80% to the integrator (referrer)
- 20% to SushiSwap
- This split applies unless explicitly overridden by SushiSwap
Custom fee splits
- Alternative fee splits require a partnership with SushiSwap
- Agents and integrators should not assume custom splits are available. If users request alternative fee splits, agents should direct them to the SushiSwap team rather than attempting to modify request parameters.
Error Handling
422: Request parameters are invalid → fix inputs529: Server overloaded → retry with backoff500: Internal error → retry or fail gracefully
Schema Guidance
For schema usage rules and update behavior, see:
04 同仓库更多 Skills
recipe-performance
Diagnose a specific MetaMask user flow's real-app performance and Sentry critical-user-flow telemetry with deterministic mm-harness recipes. Use for CUF boundaries, cold/warm/background-resume behavior, latency regressions, lifecycle tags, duplicate or blocking network requests, long tasks, layout/paint cost, screen redraws, React rerenders, or browser trace analysis where tests alone cannot prove the real app.
mexc-spot-websocket
MEXC Spot WebSocket workflows for public streams, protobuf handling, depth maintenance, listen keys, and private streams without exposing API keys.
mexc-spot-rest
MEXC Spot REST workflows for public data, signed account requests, orders, wallet/admin actions, and secure signing without exposing API keys.
mexc-futures-websocket
MEXC Futures WebSocket workflows for public streams, private account/order/position streams, ping/pong, subscriptions, and depth maintenance.
0xklen-version-and-refresh-sanctions-lists
暂无简介
verify-tests-cover-changed-lines
Use when a PR adds code that the existing suite may not exercise. Measures patch coverage — the share of newly changed lines hit by tests — before approving.