Join us live for TradersPost Tutor Sessions today at 1pm EST. Join us to learn, ask questions, and level up your automation game. Watch on YouTube
Webhook Message

Quantity Type Requires Quantity

The quantity field is required when using a quantityType. A valid numeric value must be provided for the quantity.

This message indicates that a quantity parameter must be provided with a valid value when using quantityType. TradersPost requires that whenever a quantityType is specified, a corresponding quantity must also be provided. If the quantity is missing or invalid, the request will not be processed.

Ensure that your request includes a valid quantity when specifying a quantityType to avoid this error.

Invalid quantityType example with missing quantity:

{
    "ticker": "AAPL",
    "action": "buy",
    "orderType": "limit",
    "limitPrice": 150,
    "quantityType": "fixed_quantity"
}

Valid quantityType example:

{
    "ticker": "AAPL",
    "action": "buy",
    "orderType": "limit",
    "limitPrice": 150,
    "quantityType": "fixed_quantity",
    "quantity": 10
}

In the above examples, a valid request includes both a quantityType and a corresponding quantity, ensuring the request meets the required parameters for processing.

Start trading at scale today. Sign up for free.

Free 7-day trial

Set-up in 3 minutes

Paper account for testing

Start now