Skip to main content
Glama
nirholas

Binance.US MCP Server

by nirholas

binance_us_cust_oco_order

Place OCO orders on Binance.US with a custodial solution to automatically cancel one order when the other executes, managing risk in cryptocurrency trading.

Instructions

Place a new OCO (One-Cancels-the-Other) order through the custodial solution.

⚠️ REQUIRES CUSTODIAL SOLUTION API KEY

OCO orders combine a limit order with a stop-loss order. When one executes, the other is automatically canceled.

Price Restrictions:

  • SELL: Limit Price > Last Price > Stop Price

  • BUY: Limit Price < Last Price < Stop Price

Quantity: Both legs must have the same quantity (iceberg qty can differ).

Note: OCO counts as 2 orders against rate limits.

Response includes orderListId, orders array, and orderReports with details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
railYesCustodial partner name (e.g., ANCHORAGE, BITGO). Must be uppercase.
symbolYesTrading pair (e.g., BTCUSD, ETHUSD)
sideYesOrder side: BUY or SELL
quantityYesOrder quantity (same for both legs)
priceYesLimit order price
stopPriceYesStop trigger price
limitClientOrderIdNoUnique ID for the limit order
limitIcebergQtyNoIceberg qty for limit leg
stopClientOrderIdNoUnique ID for the stop leg
stopLimitPriceNoLimit price for stop-limit leg
stopIcebergQtyNoIceberg qty for stop leg
stopLimitTimeInForceNoTime in force for stop-limit leg
assetNoAsset for ExpressTrade
allowExpressTradeNoEnable ExpressTrade
Behavior4/5

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

With no annotations provided, the description carries full burden and adds valuable behavioral context: it discloses the API key requirement, explains that OCO counts as 2 orders against rate limits, and describes the response structure. It doesn't cover all potential behavioral aspects like error conditions or execution guarantees, but provides substantial operational details.

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?

The description is well-structured with clear sections (warning, OCO explanation, price restrictions, quantity note, rate limit impact, response details). It's appropriately sized for a complex tool, though some sentences could be more concise (e.g., the OCO explanation is slightly verbose). Most content earns its place.

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

Completeness4/5

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

For a complex trading tool with 14 parameters, no annotations, and no output schema, the description provides good context: explains OCO mechanics, API requirements, rate limit impact, and response structure. It doesn't cover all edge cases or provide complete output documentation, but gives sufficient operational understanding for most use cases.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents all 14 parameters thoroughly. The description adds some semantic context about quantity (both legs must have same quantity) and price restrictions for BUY/SELL, but doesn't provide significant additional parameter meaning beyond what's in the schema. Baseline 3 is appropriate when schema does heavy lifting.

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?

The description clearly states the specific action ('Place a new OCO order') and resource ('through the custodial solution'), distinguishing it from non-custodial OCO tools like 'binance_us_new_oco' and other custodial tools. It explains what an OCO order is, making the purpose explicit and differentiated from siblings.

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?

The description provides clear context with the warning '⚠️ REQUIRES CUSTODIAL SOLUTION API KEY', indicating when this tool is applicable (custodial context). However, it doesn't explicitly state when to use this versus alternatives like 'binance_us_cust_new_order' or non-custodial OCO tools, missing explicit alternative guidance.

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/nirholas/Binance-US-MCP'

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