Hi, Do you have an API which returns all the nudge-related data? Like: - Which stock is illiquid - Which stock cannot be sold on same day - Which stock is in ASM/GSM list, etc etc
It will be good to have that information via API. (right now the Buy/Sell request just fails without a proper error msg)
@swas99, We don't have any API which returns a list of instruments that are illiquid, in T2T segment, in the ASM or GSM category. However, you can get the list from the utilities section of the Zerodha website's resource page.
Can you give an example where order placement fails without a proper message? All the exceptions from Kite Connect are in this format and it has a meaningful message.
@sujith Any plan to add this in API? Zerodha already displays the nudges, providing an API for it should not be much time-consuming. I request Team Zerodha to add this in the API.
@KamalChhirang, We will figure out a way to provide the illiquid scrips list in the future as API. Currently, it is not possible to provide because of the way it is set up.
@sujith, Now that TOTP is forced on API users, any protection they received against illiquid-scrips/scrips in ASM/GSM is gone. Users who had their own implementation to maintain this list can no longer do so. So does Zerodha have any plans to provide this API any time soon?
As far as I know, there is no way for API users to get the first 3 type mentioned below:
"Intraday trading is not allowed in FILATEX by default due to illiquidity. If you wish to trade intraday, [enable TOTP](https://zrd.sh/totp) on your account and place the order.
"Buying is restricted in DSSL as this is an illiquid scrip. If you wish to buy, [enable TOTP](https://zrd.sh/totp) on your account and login to place the order.
We don't have any API which returns a list of instruments that are illiquid, in T2T segment, in the ASM or GSM category.
However, you can get the list from the utilities section of the Zerodha website's resource page.
Can you give an example where order placement fails without a proper message?
All the exceptions from Kite Connect are in this format and it has a meaningful message.
I have been using
ex.toString()
&ex.printStackTrace()
to get the error details. It displays onlyInputException
for each of these error category.Let me try
ex.getMessage()
and see if it has the exact message.ex.getMessage()
also returnsnull
Issue is because the Java Client is missing a
super(message);
.ex.message
should return a valid message.- IFGLEXPOR
- IGPL
- GANECOS
- etc
Thank you
We will figure out a way to provide the illiquid scrips list in the future as API. Currently, it is not possible to provide because of the way it is set up.
Users who had their own implementation to maintain this list can no longer do so.
So does Zerodha have any plans to provide this API any time soon?
As far as I know, there is no way for API users to get the first 3 type mentioned below: