WenLong: Hyperliquid trading for AI agents
Trade Hyperliquid perps, stocks, gold, oil and pre-IPO from AI agents. Hosted; keys can't withdraw.
Should I use this
Quality & Safety
Findings (2)
- LOWin get_open_orders
- LOWin get_price
Based on automated analysis of tool definitions and protocol compliance.
Context Cost
This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.
Install
One-Click Install
Add this to your `claude_desktop_config.json` file:
{
"mcpServers": {
"hyperliquid": {
"url": "https://app.wenlong.io/api/mcp"
}
}
}Remote endpoints
https://app.wenlong.io/api/mcpstreamable-httpWhat it can do
Tool inventory
Tools (8)
🟢get_account
The account's balance: perp equity, free margin (available), margin in use, spot USDC, per extra dex.
Input Schema
{
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
}🟢get_positions
Open perpetual positions: side, size, entry, value, unrealized PnL, leverage, liquidation price.
Input Schema
{
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
}🟢get_open_orders
Resting orders (limits and TP/SL triggers) with their order ids.
Input Schema
{
"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.
Input Schema
{
"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.
Input Schema
{
"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.
Input Schema
{
"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).
Input Schema
{
"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.
Input Schema
{
"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
}Community
Evidence