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

droyd_open_trade

Open cryptocurrency trading positions with configurable legs including market buys, limit orders, stop losses, take profits, and momentum-based triggers to manage risk and automate strategies.

Instructions

Open a new trading position with flexible leg configurations.

Leg Types & Trigger Interpretation:

  • market_buy - Immediate buy at market price (no trigger needed)

  • limit_order - Buy when price drops by triggerPercent (0.05 = buy at 5% below current)

  • stop_loss - Sell when price drops by triggerPercent (0.10 = sell at 10% below entry)

  • take_profit - Sell when price rises by triggerPercent (0.20 = sell at 20% above entry)

  • quant_buy - Buy when momentum score reaches triggerPercent (e.g., 15)

  • quant_sell - Sell when momentum score reaches triggerPercent (e.g., -10)

Examples:

  • Simple buy: { "project_id": 123, "legs": [{ "type": "market_buy", "amountUSD": 100 }] }

  • With stop loss: { "project_id": 123, "legs": [ { "type": "market_buy", "amountUSD": 100 }, { "type": "stop_loss", "amountUSD": 100, "triggerPercent": 0.15 } ]}

  • Scaled take profits: { "project_id": 123, "legs": [ { "type": "market_buy", "amountUSD": 100 }, { "type": "stop_loss", "amountUSD": 100, "triggerPercent": 0.10 }, { "type": "take_profit", "amountUSD": 50, "triggerPercent": 0.25, "positionPercent": 0.5 }, { "type": "take_profit", "amountUSD": 50, "triggerPercent": 0.50, "positionPercent": 0.5 } ]}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idNoProject ID to trade (use this OR contract_address)
contract_addressNoContract address to trade (use this OR project_id)
chainNoBlockchain (required if using contract_address)solana
legsYesTrade legs (1-10)
rationaleNoRationale for the trade

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