Skip to main content
Glama
okx-wallet-H

hvip MCP Server

by okx-wallet-H

agent_quick_trade

When a user says 'buy 0.1 BTC', this tool handles the entire order process in one call: checks balance, calculates max open, verifies price limits, places the order, and returns a structured confirmation.

Instructions

[L:WRITE] CAT:[系统] | ## 功能:一步完成交易全流程——自动查余额、算最大可开、检查限价、下单,返回结构化交易确认

场景:Agent 收到用户"买入0.1 BTC"时直接调用,无需分别调余额/可开/限价/下单

关键词:一键交易, quick trade, 下单全流程, 自动检查, 一步到位

参数:

- instId: 产品ID,如 BTC-USDT-SWAP

- side: buy=买入, sell=卖出

- sz: 下单数量(币数或张数)

- tdMode: cash=现货, cross=全仓, isolated=逐仓

- px: 限价(选填,不填市价单)

- ordType: 订单类型,默认limit

鉴权:⚠️ 需要 API Key(交易权限)

风险:WRITE — 真实下单,Agent 需用户确认后调用

返回量:微小 ~1KB — 含预检结果+订单确认+风控提醒

关联:agent_risk_overview 看风险 → 本工具下单 → okx_get_order 确认 → agent_pnl_report 复盘

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pxNo限价(选填,不填则市价)
szYes下单数量(币数或张数)
sideYes买卖方向
instIdYes产品ID,如 BTC-USDT-SWAP
tdModeYes交易模式
ordTypeNo订单类型,默认limit
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided; description discloses it is a WRITE operation (real order), requires API key with trade permission, and returns ~1KB data. Does not detail side effects beyond placing order, but sufficient.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Description is structured with headings and bullet points, front-loading function and scenario. Some redundancy but overall clear and easy to parse.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers function, scenario, parameters, auth, risk, return size, and related tools. Without output schema, explains return includes precheck results, order confirmation, and risk reminders. Complete for a multi-step tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage 100% so baseline 3. Description adds Chinese translations, notes optional px, default ordType, and explains parameters in context of quick trade, adding value beyond schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states it performs a one-step trade with automatic balance, max quantity, price limit checks, and order placement, returning structured confirmation. Distinguishes itself from separate tools like okx_place_order.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly says to call when user says 'buy 0.1 BTC' and that no need to call separate tools. Lacks explicit when-not conditions, but context is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/okx-wallet-H/hvip-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server