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 Bid-ask 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
}

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