Skip to main content
POST
newOrderWebhook

Body

application/json
strategy_id
string
required

AlphaInsider strategy identifier.

stock_id
string
required

AlphaInsider stock identifier, or SYMBOL:EXCHANGE in requests.

action
enum<string>
required

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.

Available options:
buy,
long,
sell,
short,
close,
flat
api_token
string<JWT>
required

User API token with newOrderWebhook permission.

leverage
number
default:1

Leverage to trade at. Defaults to 1 if not set.

Required range: 0 <= x <= 2Must be a multiple of 0.01
pyramiding
integer

Number of same-direction trades needed to reach full leverage. Each same-direction alert steps the position by leverage / pyramiding toward full leverage. Once at full leverage, additional same-direction alerts rebalance the position back to exactly leverage. An opposite-direction alert reverses the position to the first step on the new side. Ignored for "close"/"flat", which liquidates the strategy. If not set, each alert goes fully in or out of the position at leverage.

Required range: 1 <= x <= 100
slippage
number
default:0.002

Slippage represents the percentage offset from the current bid/ask price when placing a limit order. This adjustment helps ensure that orders are more likely to fill by accounting for potential price movements. Defaults to 0.002 if not set.

Required range: 0 <= x <= 0.05Must be a multiple of 0.001

Response

Request was successful.

success
boolean

True when the request succeeded.

response
object

Endpoint-specific response payload, or an error message when success is false.