Market buy — 1 contract of NQ
{
"ticker": "NQ",
"action": "buy",
"quantity": 1
}Exactly what JSON to send to your FirmGated webhook URL — required fields, optional fields, and ready-to-paste examples.
Every strategy you create in FirmGated has a unique webhook URL. Find it on your strategy page under the Webhook section. Copy that URL and paste it into TradingView, TrendSpider, or any tool that can send an HTTP POST request.
Every request must send a JSON body with Content-Type: application/json. The payload must be valid JSON — a single misplaced comma or missing quote will cause the signal to be rejected.
| Field | Type | Example | What it does |
|---|---|---|---|
ticker | string | "NQ" | The instrument symbol exactly as your broker recognizes it. Futures use the root symbol — NQ, ES, MNQ, MES, CL, etc. |
action | string | "buy" | "sell" | Direction of the trade. Must be exactly buy or sell, lowercase. |
| Field | Type | Example | What it does |
|---|---|---|---|
quantity | number | 1 | Number of contracts or shares. If omitted, FirmGated uses the quantity configured on your subscription. |
price | number | 19850.25 | Limit price. Include this when you want a limit order. Omit for a market order. |
orderType | string | "market" | "limit" | "stop" | Explicit order type override. If omitted, FirmGated defaults to market. |
sentiment | string | "long" | "short" | "flat" | Tells FirmGated what your intended position state is after this signal. Flat closes everything. |
takeProfit | number | 20100.00 | Optional take-profit price to attach to the order. |
stopLoss | number | 19700.00 | Optional stop-loss price to attach to the order. |
{
"ticker": "NQ",
"action": "buy",
"quantity": 1
}{
"ticker": "ES",
"action": "sell",
"quantity": 2,
"orderType": "limit",
"price": 5210.50,
"stopLoss": 5230.00
}{
"ticker": "MNQ",
"action": "sell",
"sentiment": "flat"
}{
"ticker": "{{ticker}}",
"action": "{{strategy.order.action}}",
"quantity": {{strategy.order.contracts}},
"price": {{strategy.order.price}}
}