WenLong: Hyperliquid trading for AI agents
Trade Hyperliquid perps, stocks, gold, oil and pre-IPO from AI agents. Hosted; keys can't withdraw.
사용해야 할까요
품질 및 안전성
발견 사항 (2)
- LOWget_open_orders에서
- LOWget_price에서
도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.
컨텍스트 비용
이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.
설치
원클릭 설치
`claude_desktop_config.json` 파일에 다음을 추가하세요:
{
"mcpServers": {
"hyperliquid": {
"url": "https://app.wenlong.io/api/mcp"
}
}
}원격 엔드포인트
https://app.wenlong.io/api/mcpstreamable-http할 수 있는 일
도구 목록
도구 (8)
🟢get_account
The account's balance: perp equity, free margin (available), margin in use, spot USDC, per extra dex.
입력 스키마
{
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
}🟢get_positions
Open perpetual positions: side, size, entry, value, unrealized PnL, leverage, liquidation price.
입력 스키마
{
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
}🟢get_open_orders
Resting orders (limits and TP/SL triggers) with their order ids.
입력 스키마
{
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
}🟢get_markets(dex)
Tradable markets with their mid price and maximum leverage. Main Hyperliquid dex by default; pass dex (e.g. xyz) for a builder dex.
입력 스키마
{
"type": "object",
"properties": {
"dex": {
"type": "string",
"description": "Builder dex name, e.g. xyz. Omit for the main dex."
}
},
"required": [],
"additionalProperties": false
}🟢get_price(coin)
Current mid, mark and oracle price, funding and 24h volume for one market.
입력 스키마
{
"type": "object",
"properties": {
"coin": {
"type": "string",
"description": "Market name as on Hyperliquid, e.g. BTC, ETH, xyz:GOLD"
}
},
"required": [
"coin"
],
"additionalProperties": false
}🔴place_order(coin, side, size_usd, leverage, order_type, ...)
Place a REAL order. Market orders are priced by WenLong from its own mark with a small slippage buffer. leverage (integer) is applied to the market before an opening order; omitted, the open position's leverage is used (required when there is no position). take_profit / stop_loss: on a limit order they ride the order; on a market order they are placed as reduce-only triggers after the fill.
입력 스키마
{
"type": "object",
"properties": {
"coin": {
"type": "string",
"description": "Market name as on Hyperliquid, e.g. BTC, ETH, xyz:GOLD"
},
"side": {
"type": "string",
"enum": [
"buy",
"sell"
]
},
"size_usd": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Order size in USD notional"
},
"leverage": {
"type": "integer",
"minimum": 1
},
"order_type": {
"type": "string",
"enum": [
"market",
"limit"
]
},
"limit_price": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Required for a limit order"
},
"take_profit": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Take-profit trigger price"
},
"stop_loss": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Stop-loss trigger price"
},
"reduce_only": {
"type": "boolean",
"description": "Only reduce an open position"
},
"margin_mode": {
"type": "string",
"enum": [
"cross",
"isolated"
],
"description": "For a new position; default cross, or isolated where the market allows only isolated. An open position keeps its own mode."
},
"client_order_id": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{32}$",
"description": "Optional idempotency id (0x + 32 hex), a new one for every new order. Send the same one when retrying the same order: a repeat is not placed twice."
}
},
"required": [
"coin",
"side",
"size_usd",
"order_type"
],
"additionalProperties": false
}🔴cancel_order(coin, order_id)
Cancel one resting order by its order id (see get_open_orders).
입력 스키마
{
"type": "object",
"properties": {
"coin": {
"type": "string",
"description": "Market name as on Hyperliquid, e.g. BTC, ETH, xyz:GOLD"
},
"order_id": {
"type": "integer",
"minimum": 1
}
},
"required": [
"coin",
"order_id"
],
"additionalProperties": false
}🔴close_position(coin, fraction, client_order_id)
Close an open position at market (reduce-only). fraction in (0, 1], default 1 = the whole position.
입력 스키마
{
"type": "object",
"properties": {
"coin": {
"type": "string",
"description": "Market name as on Hyperliquid, e.g. BTC, ETH, xyz:GOLD"
},
"fraction": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1
},
"client_order_id": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{32}$",
"description": "Optional idempotency id (0x + 32 hex), as for place_order."
}
},
"required": [
"coin"
],
"additionalProperties": false
}커뮤니티
증거