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 sellsBid - Use the bid price for all ordersAsk - Use the ask price for all ordersLast - Use the last price for all ordersMidpoint - Use the midpoint of the bid and ask prices for all orders