Hi @rajanprabu
Please refer the enclosed file which list all the order status.
in status you'll get - *Modified
(previous trigger pending order)
in order status - trigger pending
Hi @rajanprabu
Please refer the enclosed file which list all the order status.
in status you'll get - *Modified
(previous trigger pending order)
in order status - trigger pending
We apologize for the discrepancy in the API documentation and the actual data received. Our API is currently limited to returning a maximum of 500 records per request. We have update the members on this post -
https://smartapi.angelbroking.com/topic/3380/issue-fetching-historical-data/12?_=1675141920884
@PareshBhatiya @mudit236 @Phanilbb
We are aware of the error being faced by clients. Our team is currently looking into the internal error issue and working towards a resolution. We apologize for the inconvenience and appreciate your patience as we work towards a solution.
Hi @Reddy We are checking this. Regret the inconvenience caused.
HI @Reddy Have you incorporated the new change which are done yesterday.
Hello, while buying and selling both, the quantity should be 50 for 1 lot in your case.
We tried to reproduce your issue, but it worked fine for us.
HI Everyone, (@Ashok @mihirshah2500 @rajanprabu @Saidareddy )
We are excited to announce the launch of our new login service that now allows users to login with their PIN in addition to their password.
The new login service solves the problem of newly onboarded Angel One clients who were unable to access SmartAPI due to non-availability of the password, and also solves the problem of users who have forgotten their passwords and were unable to reset them.
Starting today, users will be able to use either their PIN or password to authenticate with Angel One SmartAPI with the existing loginByPassword API endpoint.
The request structure of the current loginbyPassword API endpoint is as below:
{
"clientcode":"Your_client_code",
"password":"Your_Password" OR "Your_PIN"
"totp":"enter_the_code_displayed_on_your_authenticator_app"
}
Likewise, to set up the one time TOTP on https://smartapi.angelbroking.com/enable-totp to retrieve the QR code, users can either login with their password OR PIN . To learn more about TOTP and how to setup TOTP, please visit - https://smartapi.angelbroking.com/topic/2377/guide-to-secure-your-smartapi-account-with-two-factor-authentication?_=1670353255986
By the end of this month (i.e. December 31, 2022), we will be discontinuing the use of passwords for login, so we encourage all users to set up their PIN as soon as possible.
Thank you for your continued support, and we hope you enjoy trading with SmartAPI.
Hi @rajanprabu , thank you so much for the fix. Request you to please raise the PR, I'll get my tech team to review and approve the same. Open source contributions from experts and loyal SmartAPI users like you will help us to maintain the SDKs. We are exploring few options on the support for SDKs and shall restore the support soon. Thank you for your contribution again.
Hi @Ashok , the new login process will be MPIN based. We will introduce a new login endpoint giving our users sufficient time to migrate to the new login endpoint.
Hi @nickmanan
We have noticed that you are experiencing issues with our SDK due to poor error handling. The error message you are seeing, "TypeError: 'NoneType' object is not subscriptable", is a result of the SDK not handling exceptions properly. This is causing the orderResponse variable to be None, which is leading to the error you are seeing.
The correct error message from the RestAPI is "Invalid Session or Session is Expired Please Re-login" with error code "AB1010". This error is likely being caused because you are using an expired JWT token. (Read more about it here - https://smartapi.angelbroking.com/topic/3392/faqs-on-ab1010-invalid-session-or-session-expired-please-re-login?_=1671130890317)
Please note that our SDKs are open source, so you are welcome to make contributions to improve the error handling and other aspects of the code. Additionally, if you encounter any errors in the future, you can make a call to the RestAPI directly to get the correct error message and information on how to resolve the issue.
We apologize for any inconvenience this may have caused and thank you for your understanding.
@Smart You would need to set up TOTP in your authenticator app (eg. google authenticator). The string that you are sendings as a TOTP in the code is key to be configured in the authenticator app to generate the TOTP.
@S63128103 it is returning blank because no trades have happened in the contract at the time of writing this response. You can check the same on the Angel One's chart.
@S63128103 it is returning blank because no trades have happened in the contract at the time of writing this response. You can check the same on the Angel One's chart.
@sanjaymgour share more info which can help to debug. eg, for which symbol are you trying to fetch, to and from date, time period etc.
@windpacer can you please try again with a different quantity, also ensure that the quantity is in the multiples of lot size.
We tested it with the API snippet below, and orders are going fine.
{
"variety":"NORMAL",
"tradingsymbol":"NIFTY02JAN2524900CE",
"symboltoken":"52599",
"transactiontype":"BUY",
"exchange":"NFO",
"ordertype":"MARKET",
"producttype":"INTRADAY",
"duration":"DAY",
"price":"0",
"squareoff":"0",
"stoploss":"0",
"quantity":"750000000"
}
@98jkfe47 You can use only limit for ROBO orders.
@98jkfe47 please place a normal order and a GTT in case you do not want stoploss.
@jenishm the error in your case says "No historical data returned or incorrect response format".
If you check the token list here - https://margincalculator.angelone.in/OpenAPI_File/files/OpenAPIScripMaster.json
The token you are passing "35229" does not exist in the list.
@nehasrivastava you cannot use TOTP to login to Angel One web. Please use OTP from SMS for the same.
Apologies for a delayed response, can you please check if it is working fine now?