New order from webhook. Tutorial setup.
Note, you can only go fully in or out of a position.
Strategy ID.
Stock ID. "stock:exchange" or "stock_id"
Order actions. Action "buy" is the same as "long", "sell" is the same as "short", "close" is the same as "flat". It is recommended for TradingView webhooks to use the {{strategy.market_position}} to get all strategy actions. See TradingView strategy alert guide for full list of automated actions.
buy, long, sell, short, close, flat User API token with newOrderWebhook permission.
Leverage to trade at. When not set, buys go 1x long and sells close. WARNING: 2x leverage orders may fail if prices move; use less than 1.95x for reliable fills.
0 <= x <= 2Must be a multiple of 0.01Request was successful.