Create Signal Bridge (webhook-driven template)
tt_create_signal_bridgeBuild a WEBHOOK-DRIVEN multi-symbol strategy ("Signal Bridge") for a basket, create it in the user's account, link its API token in HYBRID mode, and return everything needed to drive it from outside.
Use when the user wants to trade from THEIR OWN signals (their code, TradingView, a PMS/advisory feed, a WL partner) rather than Tradetron conditions: "send BUY/SELL from my python", "signal-driven portfolio", "API-linked template", "PMS basket with webhook signals".
What the template does (one Long + one Short set per symbol, one python block): accepts = BUY / BUY EXIT / SELL / SELL EXIT via the webhook; rejects invalid signals with a reason (_msg); sizes by Fix / Capital % / Capital Risk % / Allocation Method 1; per-trade target & SL (money/points/%); master target/SL with reset; max open positions; max capital per symbol; working days; session window; intraday square-off; square-off-all on TP/SL; futures/options expiry-day exit. Every setting is a runtime variable the webhook can change while live.
OPTIONS: an option item is a relative rule (CE/PE, strike steps from ATM SPOT, expiry label) resolved when a BUY/SELL is accepted; the strike is pinned for that entry and the exit closes the contract that was entered. Its variable is <CE|PE><ATM|ATMP|ATMM> plus _NW/_CM/_NM when the expiry is not the underlying's default (Current Week for NIFTY 50/SENSEX, Current Month otherwise) — e.g. NIFTY50_CE_ATM, NIFTY50_PE_ATMM1, NIFTYBANK_CE_ATMP2. SELL writes the option (needs the broker's writing margin; size shorts with Fix lots).
CONFIRM the basket and exchange with the user first (it creates a template). Returns template_id, view_url, api_link (hybrid state), auth_token (the user's own webhook credential: anyone holding it can send signals to this template), python_client (copy-and-run: sends one real BUY), curl_example, signal_links (four ready GET links per variable: BUY / BUY EXIT / SELL / SELL EXIT — a plain link works), guide_markdown (the full client guide), variable_reference, capabilities (built / built differently / not possible, with reasons), next_steps. Give the user python_client unchanged (it carries their token: hand it over once and do not repeat the token in later replies). If api_link.hybrid_applied is false, tell the user to set Hybrid Mode = Yes before deploying (steps are included).
It does not deploy. Tell the user how to deploy it: Live Offline (Tradetron shows each signal and places no order) or Live Auto with their broker; which one is their choice. AUTH-REQUIRED for the create and the link.
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": {
"symbols": "<symbols>"
},
"name": "tt_create_signal_bridge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| hybrid | No | Link the webhook in HYBRID mode (default, required for this template: its sizing, stops and caps are its own logic). | |
| capital | No | ||
| dry_run | No | Build and validate only; create nothing. | |
| symbols | Yes | The basket. Plain symbols with `exchange`, or EXCHANGE:SYMBOL each (e.g. ['NSE:RELIANCE','NSE:SBIN'], ['NFO:NIFTY 50'] = NIFTY future, ['MCX:CRUDEOIL'], ['DELTAINDIA:BTCUSD'], ['NASDAQ-EQ:AAPL']) for cash, futures and crypto perps. An OPTION item is an object: {"symbol": "NIFTY 50", "option": "CE"|"PE", "strike": 0 (strike steps from ATM SPOT; 2 = ATM+2, -1 = ATM-1), "expiry": "Current Week"|"Next Week"|"Current Month"|"Next Month", "exchange": "NFO"|"BFO" (optional)}. Index options NFO (NIFTY 50, NIFTY BANK, NIFTY FIN SERVICE, NIFTY MID SELECT) and BFO (SENSEX, BANKEX); stock options NFO. Weekly only for NIFTY 50 and SENSEX; stocks are monthly. No MCX options. The same underlying may appear several times (e.g. CE ATM and PE ATM). Cash, futures and options on NSE/NFO/BFO mix freely; one market clock per template. | |
| exchange | No | Default exchange for symbols written without a prefix: NSE, NFO, BFO, MCX, NASDAQ-EQ, DELTAINDIA, DELTA, COINDCX, COINSWITCH, ZEBPAY. | |
| intraday | No | ||
| session_end | No | HHMM on the market clock; default per exchange. | |
| long_product | No | MIS / NRML / CNC for the Long legs; default per exchange (NSE: CNC). | |
| working_days | No | e.g. ['Mon','Tue','Wed','Thu','Fri'] | |
| session_start | No | HHMM on the market clock; default per exchange. | |
| short_product | No | MIS / NRML for the Short legs; default per exchange (NSE: MIS). | |
| auto_expiry_exit | No | ||
| exit_minutes_before_close | No |