Webhook Message

Quantity Type Requires Quantity

You must provide a quantity with a valid value when using quantityType.

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.

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