It looks like you're new here. If you want to get involved, click one of these buttons!
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"
}
]'
It seems like an bug. We have informed the team to take a look at this.
margin_amount = kite.basket_order_margins(order_param_basket)
Error message: 'KiteConnect' object has no attribute 'basket_order_margins'
Has the function changed?