Strategy Message

Oto Orders Not Supported

One Triggers Other (OTO) orders are not supported by your broker. You are required to send both a take profit and stop loss.

This message indicates that One Triggers Other (OTO) orders are not supported by your broker. TradersPost requires that both a take profit and stop loss be sent independently when OTO orders are not available.

Invalid OTO example:

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

Some brokers do not support OTO orders and they only support bracket orders where both a takeProfit and stopLoss are specified. Here is a valid example:

{
    "ticker": "AAPL",
    "action": "buy",
    "orderType": "limit",
    "limit": 100,
    "takeProfit": {
        "limitPrice": 150
    },
    "stopLoss": {
        "stopPrice": 90
    }
}

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