Webhook Message

Invalid Quantity

Invalid quantity.

This message indicates that the quantity provided in the request is invalid. A quantity must be a numeric value that is greater than zero. It can be a string, integer or float as long as it is a numeric value. If the quantity provided is not a valid number, the request will not be processed.

Invalid quantity example:

{
    "ticker": "AAPL",
    "action": "buy",
    "quantity": "ten shares"
}

Here is an example of a valid request that will buy 10 shares of AAPL:

{
    "ticker": "AAPL",
    "action": "buy",
    "quantity": 10
}

Or if you want to use a string for the value, you can as well. As long as it is a numeric value, TradersPost can understand it:

{
    "ticker": "AAPL",
    "action": "buy",
    "quantity": "10"
}

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