Strategy Field

Use signal settings

If you check the Use signal settings checkbox, then any settings in your webhook will be used and they will override the settings defined in your strategy. Here are some examples webhook payloads with all the different fields you can control from the webhook.

Market Order

A market order is an order to buy or sell a security immediately at the best available current price.

{
    "ticker": "AAPL",
    "action": "buy",
    "orderType": "market"
}

Limit Order

A limit order is an order to buy or sell a security at a specific price or better.

{
    "ticker": "AAPL",
    "action": "buy",
    "orderType": "limit",
    "limitPrice": 100
}

Stop Market Order

A stop order is an order to buy or sell a security when its price touches the stop price. It is converted to a market order when the stop price is reached.

{
    "ticker": "AAPL",
    "action": "buy",
    "orderType": "stop",
    "stopPrice": 100
}

Stop Limit Order

A stop limit order is an order to buy or sell a security when its price reaches a certain point, known as the stop price, and then converts into a limit order.

{
    "ticker": "AAPL",
    "action": "buy",
    "orderType": "stop_limit",
    "stopPrice": 100,
    "limitPrice": 99
}

Trailing Stop Order (dollar amount)

A trailing stop order is a stop order that can be set at a defined percentage or dollar amount away from a security's current market price. The trailing stop price is adjusted as the price moves in your favor.

{
    "ticker": "AAPL",
    "action": "buy",
    "orderType": "trailing_stop",
    "trailAmount": 1
}

Trailing Stop Order (percentage)

A trailing stop order is a stop order that can be set at a defined percentage or dollar amount away from a security's current market price. The trailing stop price is adjusted as the price moves in your favor.

{
    "ticker": "AAPL",
    "action": "buy",
    "orderType": "trailing_stop",
    "trailPercent": 1
}

Options

You can control the option chain scanning functionality from the webhook as well. Here is an example payload that will override the strategy settings and scan for options with the following criteria.

{
    "ticker": "AAPL",
    "action": "buy",
    "intrinsicValue": "itm",
    "expiration": "+6 months",
    "optionType": "call",
    "strikeCount": 12,
    "strikesAway": 2
}

Or send the exact contract you want to trade instead of using the option chain scanning functionality.

{
    "ticker": "AAPL",
    "action": "buy",
    "expiration": "2023-01-20",
    "optionType": "call",
    "strikePrice": 325
}

Or send the full option contract symbol in the ticker parameter.

{
    "ticker": "AAPL 230120C325",
    "action": "buy"
}

Ready to automate your trading? Sign up for free today.