https://api.kite.trade/margins/equity shows wrong data

raminde
this problem has been persistent for long. and is getting worst, normaly we (for that matter any trader) picks stocks for intraday and then keeps on monitoring it for the entry points to make profits. when we pick stocks we check if they have margins available for that we use
1) api
https://api.kite.trade/margins/equity'

OR

2) zerodha's own margin calculator
https://zerodha.com/margin-calculator/Equity/

Yet when we actually trade on stocks where both of them are showing margin availalble it show as margin not available (blocked) when we try to trade.

Today's live examples
127 GEECEE:EQ 1x 3x
136 GMBREW:EQ 1x 3x
164 HEIDELBERG:EQ 1x 3x
above stocks clearly shows margins available and is 3x yet when we tried trading it showed as blocked note both
https://api.kite.trade/margins/equity'
https://zerodha.com/margin-calculator/Equity/

both above methods shows margin available for GEECEE:EQ, GMBREW:EQ & HEIDELBERG:EQ but yet we cant trade

Now there is further more problem
now both the methods since yesterday are not showing the same data either
https://zerodha.com/margin-calculator/Equity/
showing 476 data of stocks tradable with margin
while api shows 489 stocks tradeble with margin

eg, ASHAPURMIN can be traded with margin as per margin api ( https://api.kite.trade/margins/equity')
whereas as per https://zerodha.com/margin-calculator/Equity/
is not tradeable.

This problem has been there since real long time just wonder when will it get solved? Its definately not rocket science, rather its easy. Just makes us wonder why there are duplication of data? and each tool is sourcing info from differet database tables results into different lists of avaiable data for trading...



  • sujith
    Hi @raminde,
    Margins API is updated only once a day whereas the source file of the website can be updated multiple times during the day by RMS based on the liquidity and many other reasons.
    From now on we will update API also when website data is updated.

    For the GEECEE:EQ, GMBREW:EQ & HEIDELBERG:EQ kind of issue wherein even though you have margins and order gets rejected. Please do let us know on the same day you come across the issue. We will check and get back to you.
    One of the scenarios I know of is it also depends on the open positions one has if it is going in loss then actual margin required will vary.
  • raminde
    No dear I fully understand of how much margin money I have in my account issue is ...
    in api also in margin calculator there are stocks wich shows as margin is available but only when you trade we come to know about the block (MIS block) ie., we cant trade intraday on those stock. Again for the sake of repeating... Margin calculator and API shows the stock can be traded intraday with margins but when we do actual trade we come to know u cant trade on some of those stocks.

    This same issue I have also been following up on [email protected] which is your support site for non api trades.. as the issue is related to both. The reponse I got is was same but when I explained they understood and they told me they are working on it and till then they asked me to check an google spreadsheet url which shows which stocks are blocked for MIS.

    So in nutshell you have to check both
    1) API or Margin calculator for picking stock
    2) Plus u also need to check if the same stocks are not blocked in the google spreadsheet.

    However inspite of that trouble the problem doesnt end there... inspite of checking both.. 1 and 2 still there are stocks which shows as avaialble on (1) and not blocked in (2) still when you try to trade you get a block of it... and trust me these are not always circuit breaker stocks.
    ... last one I encountered is VISHNU .. which was not blocked in the spreadsheet also shows 3x margin available on margin calculator https://zerodha.com/margin-calculator/Equity/ or api, but when you try trading it shows as blocked
  • sujith
    Hi @raminde,
    There was one more issue after the above comment. Even though margin calculator and margins API was updated. Because of some configuration issue, changes made during the day to the margins API were not reflecting end users but later it was fixed.
    Let me know a live example which could have happened on the same day. We will use that case as the scenario to figure out what is happening here.
  • raminde
    Look at stock SHARDAMOTR it shows 3x available yet we cannot trade
    https://zerodha.com/margin-calculator/Equity/
    also in margin api it says it available
  • sujith
    Because of some issue, it was blocked. From tomorrow you can trade on SHARDAMOTR.
This discussion has been closed.