Strategy Field

Exit market price type

When your signal does not have a price, TradersPost will fetch a quote from the broker and use the configured market price type from the strategy settings instead of using the price from the signal. By default, the Midpoint will be used. For example, if you have limit orders configured and you send a signal without a limitPrice, then TradersPost will use the the price from the quote.

{
    "ticker": "AAPL",
    "action": "sell",
    "orderType": "limit"
}

Or if you specify a limitPrice, then that value will be used.

{
    "ticker": "AAPL",
    "action": "buy",
    "orderType": "limit",
    "limitPrice": 100
}

You have the following options:

  • Bid/Ask - Use the bid price for buys and the ask price for sells
  • Bid - Use the bid price for all orders
  • Ask - Use the ask price for all orders
  • Last - Use the last price for all orders
  • Midpoint - Use the midpoint of the bid and ask prices for all orders

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