Product Updates

Enhance Your Trading with Customizable Order Types in TradersPost

With the latest update to TradersPost, you can now control the order type directly from webhooks using the new orderType field. This optional field allows you to specify the type of order—market, limit, stop_limit, stop, or trailing_stop—providing greater flexibility and precision in your trading strategies. If not specified, the default order type configured in your strategy subscription settings will be applied. Explore how to use each order type with practical JSON examples, and take your automated trading to the next level.

Jonathan Wage

Founder / CEO

Reviewed by Mike Christensen

Fact-checked by Jonathan Wage

4 Min Read
BluSky — The Future of Trading. Prop firm futures trading. Sign up at BluSky.pro.

You can now control the order type from webhooks with the new field named orderType. The orderType field is optional. If not specified, the default order type configured in your strategy subscription settings will be applied. The supported values for the orderType field are:

  • market
  • limit
  • stop_limit
  • stop
  • trailing_stop

Market Order

A market order is the simplest type of order, executed immediately at the current market price. This ensures quick execution but does not guarantee a specific price.

   
{
    "ticker": "SQ",
    "action": "buy",
    "orderType": "market"
}
   Language:JSON

Limit Order

A limit order allows you to specify the maximum price you are willing to pay when buying a stock, or the minimum price you are willing to accept when selling a stock. This ensures that you do not pay more or receive less than this specified price for the stock.

For example, to set up a limit order to buy the ticker symbol SQ at a maximum price of $200, you would use the following JSON structure:

   
{
    "ticker": "SQ",
    "action": "buy",
    "orderType": "limit",
    "limitPrice": 200
}
   Language:JSON

Stop Limit Order

A stop limit order combines the features of a stop order and a limit order. When you place a stop limit order, you specify two prices: the stopPrice and the limitPrice. The order will only be executed at the specified limit price or better, but only after the stock price reaches the stop price. This type of order gives you control over the price at which the order should be executed, helping to limit losses or protect profits.

For example, to place a stop limit order for the ticker symbol SQ to buy at a limit price of $200 only after the price rises to $201, you would use the following JSON structure:

   
{
    "ticker": "SQ",
    "action": "buy",
    "orderType": "stop_limit",
    "stopPrice": 201,
    "limitPrice": 200
}
   Language:JSON

In this example, the action is set to "buy," indicating a purchase. The orderType is stop_limit, specifying that this is a stop limit order. The stopPrice is set at $201, which is the price the stock must reach before your limit order is placed. Finally, the limitPrice is set at $200, indicating the maximum price you are willing to pay per share.

Trailing Stop Order

In this example, the orderType is trailing_stop, featuring a trailPercent of 2%. This configuration means that the order to sell the stock will activate when its price falls 2% below its peak value since the order's initiation. This mechanism allows investors to safeguard their gains by setting up an automatic sell trigger in response to price declines.

   
{
    "ticker": "SQ",
    "action": "sell",
    "orderType": "trailing_stop",
    "trailPercent": 2
}
   Language:JSON

Instead of a percentage, you can specify a trailing stop order with a fixed dollar amount using the trailAmount field. This means the order will be executed once the asset's price moves against the direction of the trade by the specified dollar amount from its peak value since the order was placed.

   
{
    "ticker": "SQ",
    "action": "sell",
    "orderType": "trailing_stop",
    "trailAmount": 5
}
   Language:JSON

In this example, buying MSFT stocks is triggered when their price decreases by $5 from the highest price since the order was placed. This method is particularly useful for stocks with higher volatility, as it allows for more precise control over the execution price.

Conclusion

With the addition of the orderType field in TradersPost, you now have more control and flexibility over your trading strategies. Whether you're using market orders, limit orders, stop orders, or trailing stops, you can tailor each trade to fit your specific needs. We hope you find these new options useful and that they help you achieve your trading goals more effectively. If you have any questions or need assistance, our team is here to help. Happy trading!

  • Product Updates Mar 9, 2026

    Pine Script strategy.exit() Changed in v6

    How to fix strategy.exit() calls when migrating from Pine Script v5 to v6, where relative and absolute parameters are now both evaluated.

  • Video
    Product Updates Nov 18, 2025

    AGI’s Impact on the Future of Trading

    Explore the potential impact of Artificial General Intelligence (AGI) on the future of trading. This comprehensive guide discusses how AGI might influence market volatility, trading strategies, and the role of human traders, along with ethical and regulatory considerations to ensure fair and beneficial market practices.

  • Video
    Product Updates Nov 18, 2025

    Are JSON Properties Case Sensitive?

    JSON properties in TradersPost are case sensitive. Users should copy property names directly from the documentation to ensure correct formatting and avoid execution errors.

  • Video
    Product Updates Feb 2, 2025

    Why Does the Sentiment Parameter Sometimes Sell Everything?

    If sentiment = flat is sent, TradersPost closes all positions, ignoring quantity settings. To avoid this, traders should use “action = sell” with a specific quantity for partial exits.

Start trading at scale today. Sign up for free.

Free 7-day trial

Set-up in 3 minutes

Paper account for testing

TradersPost operates as a non-custodial automated trading platform, enabling users to connect alerts from their preferred trading platforms to their selected brokerage or exchange accounts. It abstains from the transmission, custody, or management of customer funds, covering both traditional and cryptocurrency assets. Typically, registration requirements set by regulatory entities such as the SEC, FINRA, or FinCEN apply to entities that hold or transmit customer funds. To ensure ongoing compliance, TradersPost regularly engages with regulatory authorities to confirm its adherence to all relevant local and federal laws.

TradersPost does not provide alerts, signals, research, analysis, or trading advice of any kind. It is designed to assist traders and investors in making their own trading decisions based on their alerts. The platform does not offer recommendations regarding securities to buy or sell, nor does it provide trading or investing advice. The platform and its features, capabilities, and tools are provided 'as-is' without any warranty.

Risk Disclosure: The use of automated trading systems involves inherent risks, including the potential for significant financial loss. These systems operate based on predetermined algorithms that may not fully adapt to changing market conditions, possibly making them unsuitable for some investors. Individuals are advised to thoroughly assess their financial situation and risk tolerance before using this platform.

Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.

© 2026 TradersPost, Inc. All rights reserved.