Error in getting margin

donisback
I'm getting the below error in getting margins. It was working till yesterday.
Below is the curl command. I have removed the authorization header.

curl --location --request POST 'https://api.kite.trade/margins/basket?consider_positions=true&mode=compact' \
--header 'Content-Type: application/json' \
--header 'X-Kite-Version: 3' \
--data-raw '[
{
"tradingsymbol": "BANKNIFTY23JAN42600PE",
"quantity": 175,
"exchange": "NFO",
"transaction_type": "SELL",
"order_type": "MARKET",
"product": "MIS",
"validity": "DAY",
"tag": "wzTTI2aA"
},
{
"tradingsymbol": "BANKNIFTY23JAN42600CE",
"quantity": 175,
"exchange": "NFO",
"transaction_type": "SELL",
"order_type": "MARKET",
"product": "MIS",
"validity": "DAY",
"tag": "wzTTI2aA"
}
]'


Response body:

{
"status": "error",
"message": "error building portfolio: invalid trigger_price: 0",
"data": null,
"error_type": "InternalException"
}
Sign In or Register to comment.