How to get the margins available on particular securities?

Sowmay
Sowmay edited April 2017 in API clients
By requesting this:

curl "https://api.kite.trade/instruments/NSE/INFY?api_key=xxx&access_token=yyy"

We get this response:

{
"status": "success",
"data": {
"last_price": 1083.15,
"change_percent": 0.0,
"change": 0.0,
"volume": 0,
"buy_quantity": 0,
"sell_quantity": 0,
"open_interest": 0,
"last_quantity": 5,
"last_time": "2015-12-15 10:16:36",

"ohlc": {
"open": 1103.4,
"high": 1103.4,
"low": 1079.45,
"close": 1083.15
},
"depth": {
"buy": [{
"price": 0,
"orders": 0,
"quantity": 0
}],
"sell": [{
"price": 0,
"orders": 0,
"quantity": 0
}]
}
}
}

Question: How to get the margin available (or MIS Multiplier) on particular security in MIS product? There's no field in above example response object.
Tagged:
  • sujith
    Hi @Sowmay,
    This API call is for fetching the market quote. Check out this thread for margins.
  • Sowmay
    Thanks you Sujith.
  • Sowmay
    I got the links:

    https://api.kite.trade/margins/futures
    https://api.kite.trade/margins/equity
    https://api.kite.trade/margins/commodity
    https://api.kite.trade/margins/currency

    On more question:

    When are these APIs are updated? When should I store them in my DB to get updated version?
  • sujith
    Hi @Sowmay,
    It will be updated by 9:30 AM, you can try fetching data after that.
  • Sowmay
    We are getting 2 types of margins when fetched equity margin from above-stated link. Here's an example:

    {
    "margin": 0,
    "co_lower": 4.0,
    "mis_multiplier": 3.0,
    "tradingsymbol": "3MINDIA",
    "co_upper": 16.5,
    "nrml_margin": 0,
    "mis_margin": 33.0
    },

    There we get many fields other than mis_multiplier and tradingsymbol. Waht does they mean?
  • sujith
    Hi @Sowmay,
    margin: 0 means for CNC orders, we provide 0 margins.
    Margins on cover order ranges between the lower and upper level based on the stop-loss you set. In this case between 3 to 16.5 times.
    So if you have Rs 100, you can buy 3M for between Rs 300 to Rs 1650 based on where you set SL.
    mis_multiplier: 3 means for MIS orders you can buy for 3 times the margin in your account of this stock. So if Rs 100, you can buy for Rs 300 of 3M.
    mis_margin: 33 means for MIS orders we provide 33% margins. (essentially MIS_multiplier and MIS_margin are the same) To buy Rs 300 worth of 3M, you need 33% or Rs 100.
  • Sowmay
    How to check whether the security is blocked on MIS product?

    This link (https://api.kite.trade/margins/equity) provides details of around 400 equities which have MIS margins above 1. Remaining have 1 MIS_multiplier. But as per this spreadsheet there are still some securities which are blocked on MIS trades. How to get them programmatically?
  • sujith
    Hi @Sowmay,
    You can get it from this link.
  • Sowmay
    Is there any programmatically way to get them? Adding values from the spreadsheet will be quite cumbersome if did daily?
  • vijaysahu
    Http failure response for http://api.kite.trade/margins/futures: 0 Unknown Error

    Getting above error while calling from angular or javascript..


    Any suggestion why it's not working...
  • sujith
    @Sowmay,
    As of now, we don't have any other solution as of now since the whole OMS setup is vendor-based and there is very little scope for changes to that. We will provide a better solution in the future.

    @vijaysahu,
    You don't need to use that. You can check required margins here.
Sign In or Register to comment.