Does anyone know how to structure the request body to set a Take Profit and Stop Loss?
Right now, I’m doing something like this:
await alpaca.createOrder({
symbol: 'SPY',
qty: 10,
side: "sell",
type: "market",
time_in_force: "day",
take_profit: {
limit_price: takeProfit
},
stop_loss: {
stop_price: stopLoss
}
});
but I don’t see the take profit and stop loss values shown in the Alpaca dashboard