Thanks for the suggestion.
For now , you can use the loop functionality to achieve the same.
Regards,
SmartAPI Team
Thanks for the suggestion.
For now , you can use the loop functionality to achieve the same.
Regards,
SmartAPI Team
Attaching a sample code for generating TOTP using pyotp.
import pyotp as tp
secret_key = "SECRET CODE HERE" # Replace this with your actual secret key
totp = tp.TOTP(secret_key)
current_otp = totp.now()
Regards,
SmartAPI Team
TOTP expires within a minute.
Storing a TOTP in env variable will not work
Regards,
SmartAPI Team
Hi @ravitandur
Currently, OrderTag characters restricted to 15 characters if it goes beyond 15 characters will get rejected in Angel One.
Regards, Smart API Team
Hi @Rakhi
Please use Order Book API to get to know order status.
API URL :
https://apiconnect.angelone.in/rest/secure/angelbroking/order/v1/getOrderBook
Please refer doc to consume order book API.
https://smartapi.angelbroking.com/docs/Orders
Hi @sac
Informed respective team about this issue will update you soon on this.
Regards, Smart API Team
Please share actual request, response & client id along with date & time order placed.
Regards, Smart API Team
Verified. Able to see data for CRUDEOIL MCX with expiry 2024-12-16. Please try again.
Regards, Smart API Team
Hi @dhruv2599
With uniqueorderid you can't cancel the order. I can able to see the order id for SBIN stock. Please try again.
Regards, Smart API Team
Informed respective team about this issue will update you soon on this.
Regards, Smart API Team
Hi @rahul00125
In login response you'll get refresh token. You can make of use of entire session. With that refresh token you can generate JWT token & refresh token with below Generate Token API.
API Doc
https://smartapi.angelbroking.com/docs/User#flow
API URL :
https://apiconnect.angelone.in/rest/auth/angelbroking/jwt/v1/generateTokens
Sample Request :
{
"refreshToken": "3MzM1MDM4Mzh9.oYwF7PD68xyVZrwi-ku1ZWlMHmU8Wpwy1e5x2ZO9Kmx3Aw0pj2tkqHlk0_vQXJfAccKo6cM5GBo8qGfqMaZm_A"
}
Sample Response :
{
"status": true,
"message": "SUCCESS",
"errorcode": "",
"data": {
"jwtToken": "eyJhbGciOiJIUzUxMiJ9.eyJ1c2VybmFtZSI6IkRJWUQyMjgxMyIsInJvbGVzIjowLCJ1c2VydHlwZSI6IlVTRVIiLCJ0b2tlbiI6ImV5SmhiR2NpT2lKU1V6STFOaUlzSW5SNWNDSTZJa3BYVkNKOS5leUoxYzJWeVgzUjVjR1VpT2lKamJHbGxibl"
}
}
Hi @sourav344
Use SearchScrip API for Implementing search feature
URL :
https://apiconnect.angelone.in/rest/secure/angelbroking/user/v1/searchScrip
Sample Request :
{
"exchange": "NSE",
"searchscrip": "Reliance Industries Limited"
}
Sample Response :
{
"status": "success",
"message": "",
"error_code": "",
"data": {
"dataList": [
{
"type": "scrip",
"icon": "icons/scrip/eq_v1.png",
"tradeSymbol": "RELIANCE-EQ",
"isCashWithFno": true,
"nseCashToken": "2885",
"bseCashToken": "500325",
"curFutToken": "",
"details": "RELIANCE INDUSTRIES LTD",
"expirydate": "01 Jan 1980",
"instName": "",
"isinCode": "INE002A01018",
"mktSegID": "1",
"optType": "",
"priceTck": "0.05",
"regLot": "1",
"secDesc": "RELIANCE INDUSTRIES LTD",
"strkPrice": "-1",
"symbolName": "RELIANCE",
"token": "2885",
"isCommodityWithOption": false,
"isIndices": false,
"maxSingleTransactionQty": "67658",
"compName": "RELIANCE INDUSTRIES LTD",
"npriceNum": "1",
"npriceDen": "1",
"sector": "Refineries",
"marketCapCategory": "Large Cap",
"mktcap": "1787896.63",
"scripType": "nseCash",
"isMTFEligible": true,
"astCls": "cash",
"series": "EQ",
"segmentSubType": "stockCash",
"minLot": "1",
"lotSize": "",
"divider": "100",
"filterTypes": [
"STOCKCASH"
]
},
{
"type": "scrip",
"icon": "icons/scrip/eq_v1.png",
"tradeSymbol": "RELIANCE",
"isCashWithFno": false,
"nseCashToken": "2885",
"bseCashToken": "500325",
"curFutToken": "",
"details": "RELIANCE INDUSTRIES LTD.",
"expirydate": "01 Jan 1980",
"instName": "",
"isinCode": "INE002A01018",
"mktSegID": "3",
"optType": "",
"priceTck": "0.05",
"regLot": "1",
"secDesc": "RELIANCE INDUSTRIES LTD.",
"strkPrice": "-1",
"symbolName": "RELIANCE",
"token": "500325",
"isCommodityWithOption": false,
"isIndices": false,
"maxSingleTransactionQty": "0",
"compName": "RELIANCE INDUSTRIES LTD",
"npriceNum": "1",
"npriceDen": "1",
"sector": "Refineries",
"marketCapCategory": "Large Cap",
"mktcap": "1787896.63",
"scripType": "bseCash",
"isMTFEligible": true,
"astCls": "cash",
"series": "A",
"segmentSubType": "stockCash",
"minLot": "1",
"lotSize": "",
"divider": "100",
"filterTypes": [
"STOCKCASH"
]
}
],
"suggester": {
"suggester": []
},
"categories": [
{
"keyword": "",
"displayValue": "All"
},
{
"keyword": "STOCKCASH",
"displayValue": "Cash"
}
],
"scripExperiment": ""
}
}
Regards, Smart API Team
HI @mydomain
Describe your issue clearly with error screenshot. So, we can help you with a fix.
Regards, Smart API Team
Hi @mydomain
If password length exceed 4 characters then you have switch to MPIN. You will get msg like "LoginbyPassword is not allowed. Please switch to Login by MPIN now".
Please share client code & length of your password.
Regards, SmartAPI Team.
Hi @futunc
The total limit/quota of token subscriptions is 1000 per WebSocket session.
Please refer WebSocket Streaming 2.0 documentation to get know limitations :
https://smartapi.angelbroking.com/docs/WebSocket2
Regards, SmartAPI Team
Hi @Daksh
Please share subscription request which helps to get identify the issue.
Regards, Smart API Team
Hi @SVG,
Please share user id, request &header values to get to know more about the issue.
Regards, Smart API Team.