Jupiter¶
🛠 连接器信息¶
- 文件夹: https://github.com/hummingbot/gateway/tree/development/src/connectors/jupiter
- 默认配置: https://github.com/hummingbot/gateway/blob/development/src/templates/jupiter.yml
| 组件 | 状态 | 备注 | 
|---|---|---|
| 路由连接器 | ✅ | DEX 聚合器 | 
ℹ️ 交易所信息¶
- 官网: https://jup.ag
- API 文档: https://station.jup.ag/docs/apis/swap-api
- 链: Solana
- 网络: mainnet-beta,devnet
🔑 如何连接¶
Jupiter 在 Solana 网络上运行。
| 链 | 网络 | 
|---|---|
| solana | mainnet-beta,devnet | 
有关将钱包连接到 Gateway 的说明,请参阅 Gateway Connect。
配置¶
在 /conf/connectors/jupiter.yml 中配置 Jupiter 设置。
以下是 Jupiter 配置参数及其默认值:
# Default slippage percentage for swaps (as a decimal, e.g., 1 = 1%)
slippagePct: 1
# Priority level for swap transaction processing
# Options: medium, high, veryHigh
priorityLevel: 'veryHigh'
# Maximum priority fee in lamports (for dynamic priority fees)
# Used when priorityLevel is set and no explicit priorityFeeLamports is provided
maxLamports: 1000000
# Restrict routing to only go through 1 market
# Default: false (allows multi-hop routes for better prices)
onlyDirectRoutes: false
# Restrict routing through highly liquid intermediate tokens only
# Default: true (for better price and stability)
restrictIntermediateTokens: true
# Jupiter API key (optional)
# For free tier, leave empty (uses https://lite-api.jup.ag)
# For paid plans, generate key at https://portal.jup.ag (uses https://api.jup.ag)
apiKey: ''
路由端点¶
Jupiter DEX 聚合器,用于在 Solana 上实现最优的交换路由
- /connectors/jupiter/router/quote-swap
- /connectors/jupiter/router/execute-quote
- /connectors/jupiter/router/execute-swap
如需更多信息,请以开发模式运行 Gateway,然后在浏览器中访问 http://localhost:15888 查看每个端点的详细文档。
