{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/coinrule-com/json-schema/coinrule-com-post-api-webhooks-tradingview-strategyid-request-schema.json",
  "title": "PostApiWebhooksTradingviewStrategyidRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/coinrule-com-openapi-generated.yml#/components/schemas/PostApiWebhooksTradingviewStrategyidRequest",
  "type": "object",
  "properties": {
    "secret": {
      "type": "string",
      "description": "Webhook secret generated by Coinrule; used for authentication (constant‑time compare) or via X‑Coinrule‑Signature HMAC header."
    },
    "id": {
      "type": "string",
      "description": "Optional unique identifier for the signal (e.g., \"{{timenow}}-{{ticker}}\")."
    },
    "symbol": {
      "type": "string",
      "description": "Trading symbol (e.g., \"{{ticker}}\")."
    },
    "side": {
      "type": "string",
      "description": "Trade side; accepts buy, sell, open_long, close_long, open_short, close_short, and equivalents."
    },
    "price": {
      "type": "string",
      "description": "Execution price (e.g., \"{{close}}\")."
    }
  },
  "required": [
    "secret",
    "side"
  ]
}