Link Strategy to API Webhook
tt_link_strategy_apiLink the Tradetron API webhook token to one of the user's own templates (idempotent — an existing token is reused, never rotated) and set Hybrid / signal-only mode. Returns the user's own webhook auth_token — a credential: anyone holding it can send signals to every deployment of this template — plus the webhook URL, the runtime variables the template's conditions read (and the value its Entry waits for), a copy-and-run python client that carries the token, and a curl example that reads it from $TT_SIGNAL_TOKEN.
Use for "connect my strategy to TradingView / my code / an API", "give me the webhook link", "make it hybrid". For a NEW basket strategy driven by BUY/SELL signals, use tt_create_signal_bridge instead.
Give the user the token and python_client unchanged, once, in this conversation only; do not repeat the token in later replies or summaries. If api_link.hybrid_applied is false, give the user the manual Hybrid steps in api_link.mode_note. AUTH-REQUIRED.
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": {
"strategy_id": "<strategy_id>"
},
"name": "tt_link_strategy_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hybrid | No | True (default) = Hybrid: the strategy keeps running its own conditions, exits and python AND reads the webhook's variables. False = signal-only (api_controlled=1): Tradetron skips the strategy's own logic — almost never what a condition-builder strategy wants. | |
| strategy_id | Yes |