Webhook Message

Invalid Quantity Type For Asset Class

The provided quantityType is invalid for the strategy asset class. Dynamic quantity calculation methods such as dollar_amount, risk_dollar_amount, percent_of_equity, and percent_of_position cannot be used with the futures asset class.

This message indicates that the quantityType provided in the request is invalid for the configured asset class in the webhook. TradersPost requires that the quantityType be compatible with the asset class being traded. If the quantityType is not applicable to the asset class, the request will be denied.

For example, if Asset class is set to Futures on your webhook, the following quantityType values cannot be used:

  • amount_per_position
  • risk_per_position
  • percent_of_equity

Because the buying power used when trading futures is calculated using broker specific margin requirements, we are not able to dynamically calculate quantities for the futures asset class because our system is not currently aware of the margin requirements for each ticker and broker.

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