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
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | No | Project ID to trade (use this OR contract_address) | |
| contract_address | No | Contract address to trade (use this OR project_id) | |
| chain | No | Blockchain (required if using contract_address) | solana |
| legs | Yes | Trade legs (1-10) | |
| rationale | No | Rationale for the trade |