Product Updates

Introducing Quantity Types in TradersPost Webhooks for Dynamic Order Sizing

With the new quantityType field in TradersPost webhooks, you can now dynamically calculate order sizes directly from your webhook signals. This enhancement allows you to specify quantities using methods such as fixed quantities, dollar amounts, risk-based amounts, percentages of equity, and percentages of open positions. Discover how each quantityType value works with practical examples for seamless integration into your trading strategies.

Jonathan Wage

Founder / CEO

Reviewed by Mike Christensen

Fact-checked by Jonathan Wage

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

Below are the allowed values for quantityType and examples for each.

  • fixed_quantity
  • dollar_amount
  • risk_dollar_amount
  • percent_of_equity
  • percent_of_position

Fixed Quantity

The fixed quantity is the simplest quantity type. In this example it will simply buy 10 shares of AAPL.

   
{
    "ticker": "AAPL",
    "action": "sell",
    "quantityType": "fixed_quantity",
    "quantity": 10
}
   Language:JSON

Dollar Amount

In this example it will buy $10000 worth of AAPL. If the current price of AAPL Is $100, then it will calculate a quantity of 100.

   
{
    "ticker": "AAPL",
    "action": "buy",
    "quantityType": "dollar_amount",
    "quantity": 10000
}
   Language:JSON

Risk Dollar Amount

In this example it will buy 10 shares because we've said that the most we want to be able to lose is $100. If we get filled at $180 and we have a stop loss at $170, then if we get stopped out we'll lose $10 per share, which means we can afford to buy 10 shares.

   
{
    "ticker": "AAPL",
    "action": "buy",
    "orderType": "limit",
    "limitPrice": 180,
    "quantityType": "risk_dollar_amount",
    "quantity": 100,
    "stopLoss": {
        "type": "stop",
        "stopPrice": "170"
    }
}
   Language:JSON

Percent of Equity

In this example, if you have a $100000 account and you want to buy AAPL using 10% of your total equity, and your limitPrice is $100, then it will calculate a quantity of 100 shares.

   
{
    "ticker": "AAPL",
    "action": "buy",
    "orderType": "limit",
    "limitPrice": 100,
    "quantityType": "percent_of_equity",
    "quantity": 10
}
   Language:JSON

Percent of Position

In this example, we are selling 50% of the open AAPL position. If the total quantity of the AAPL position was 100 shares, then it would calculate a quantity of 50.

   
{
    "ticker": "AAPL",
    "action": "sell",
    "quantityType": "percent_of_position",
    "quantity": 50
}
   Language:JSON

Conclusion

The addition of the quantityType field to TradersPost webhooks marks a significant enhancement in how you can manage and automate your trades. By allowing for dynamic calculation of order sizes, it provides greater flexibility and precision in executing your trading strategies. Whether you're working with fixed quantities, dollar amounts, risk-based amounts, or percentages of your equity or positions, this new feature simplifies the process and ensures your trades align with your strategic objectives. Integrate these options into your webhook settings today and experience more controlled and tailored trading automation with TradersPost.

  • 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.