Order Margin API

anudeepsharma
Buy 2 lots of 14450 pe current week expiry MIS Market Normal order
and Short 1 lot of 15400 PE current week expiry MiS Market Normal order.

Doing above on kite web basket order shows final margin of 35098 Rs but api returns 16815 Rs

(
  • rakeshr
    @anudeepsharma
    Basket APIs is returning correct data at our end. We have used the same param as yours.
    Input param:
    [
    {
    "exchange": "NFO",
    "tradingsymbol": "NIFTY21MAY15400PE",
    "transaction_type": "SELL",
    "variety": "regular",
    "product": "MIS",
    "order_type": "MARKET",
    "quantity": 75
    },
    {
    "exchange": "NFO",
    "tradingsymbol": "NIFTY21MAY14450PE",
    "transaction_type": "BUY",
    "variety": "regular",
    "product": "MIS",
    "order_type": "MARKET",
    "quantity": 150
    }
    ]
    Response:
    "final": {
    "type": "",
    "tradingsymbol": "",
    "exchange": "",
    "span": 26525.07,
    "exposure": 12040.665,
    "option_premium": -3380.625,
    "additional": 0,
    "bo": 0,
    "cash": 0,
    "var": 0,
    "pnl": {
    "realised": 0,
    "unrealised": 0
    },
    "total": 35185.11
  • anudeepsharma
    Thanks . Found the error in my code and yes the api is correct.
This discussion has been closed.