Skip to main content
Glama
droyd-ai
by droyd-ai

droyd_manage_trade

Manage existing cryptocurrency trading positions by closing, adding buys, executing partial sells, or modifying strategy legs like stop losses and take profits.

Instructions

Manage existing trading positions. Close positions, execute additional buys/sells, or modify strategy legs.

Actions:

  • close - Exit entire position at market

  • buy - Add to existing position (requires amountUSD)

  • sell - Partial exit (requires sellPercent, e.g., 0.5 = sell 50%)

  • update - Modify stop losses and take profits

Examples:

  • Close position: { "strategy_id": 789, "action": "close" }

  • Partial sell: { "strategy_id": 789, "action": "sell", "sellPercent": 0.25 }

  • Add buy: { "strategy_id": 789, "action": "buy", "amountUSD": 50 }

  • Add stop loss: { "strategy_id": 789, "action": "update", "legs": [ { "leg_action": "add", "type": "stop_loss", "amountUSD": 100, "triggerPercent": 0.10 } ]}

  • Update existing leg: { "strategy_id": 789, "action": "update", "legs": [ { "leg_action": "update", "leg_id": 123, "triggerPercent": 0.15 } ]}

  • Remove leg: { "strategy_id": 789, "action": "update", "legs": [ { "leg_action": "remove", "leg_id": 456 } ]}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
strategy_idYesStrategy ID to manage
actionYesAction to perform
amountUSDNoAmount in USD (required for buy action)
portfolio_percentNoPortfolio percent for buy (0-100)
sellPercentNoPortion to sell 0-1 (required for sell action)
project_idNoOverride project for buy/sell
legsNoLeg modifications (required for update action)

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/droyd-ai/droyd-mcp-server'

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