Send trade alert
nyria_send_alertSend a trade alert to your Nyria strategy. The alert is parsed and forwarded to every bot on the strategy. If the strategy has live bots, this places real orders in your broker account, exactly like the webhook; the alert also reaches accounts that copy the strategy. Preview first when unsure. Alerts cannot set position size on entries (the bot controls sizing); an exit may close a share of the position with "percent", above 0 to 100. Stop orders are attached only when a JSON alert carries them (see the message field). The reply lists an order_id per order leg; pass it to nyria_order_status to see each bot's fill.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"message": "<message>"
},
"name": "nyria_send_alert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | The alert message, e.g. 'BUY AAPL' or 'SELL TO CLOSE SPY 450C 12/20'. A JSON alert may add order keys: order_type (market, limit, stop, stop_limit, trailing_stop), stop_price, limit_price, trail_percent or trail_amount, stop_loss and take_profit (a price, or a share of the entry price like "2%"; for stocks, ETFs and options only, never crypto; Tradier needs a limit or stop entry), stop_loss_limit, percent (exits: close this share of the position, above 0 to 100, for stocks, ETFs and crypto, not options; the rest stays open until a later exit or FLATTEN, and the close cancels the trade's working stop and target), bots (a list of bot ids to route to; the first 8 characters are enough). Action FLATTEN cancels working orders, then closes every open position the strategy's bots hold. A broker that cannot place a requested order type refuses the alert; it is never sent as a market order. |