Exit orders were cancelled after buy was filled

I placed a bracket order today at 3:15 ET via API. Here is the json:

data = {
“symbol”: webhook_message[‘ticker’],
“qty”: math.floor(1000 / limit_price),
“side”: “buy”,
“type”: “limit”,
“limit_price”: limit_price,
“time_in_force”: “day”,
“order_class”: “bracket”,
“take_profit”: {
“limit_price”: webhook_message[‘close’] * 1.03
“stop_loss”: {
“stop_price”: webhook_message[‘close’] * 0.90,

When the buy order was filled the two exit orders were automatically cancelled. I cannot figure out what I am doing wrong. Any help is appreciated!