By when can you provide the historical data of nifty and bank nifty?
Phanilbb
@Phanilbb
Best posts made by Phanilbb
-
Can u provide the historical data of NIFTY and BANKNIFTY ?
-
Postback call for what all order status
For what all order status do we receive the postback call? Its not mentioned in the document.
-
Not receiving the postback calls
I have set my postback URL as but im not receiving the order updates.
Client Id : L128041
https://7near4m73hujvcqlnpwqxk5lzm0rppuj.lambda-url.ap-south-1.on.aws/
Latest posts made by Phanilbb
-
RE: Not able to connect to the websocket, please help!
@trader_noob One of the things I hate with smart API is that there is no instant support. have to wait days to get an issue resolved.
-
RE: What is the issue with this request.. Im getting Invalid Token error
@Moderator_2 The document is outdated. when i passed the refresh_token and make it post API, it worked.
-
Not receiving the postback calls
I have set my postback URL as but im not receiving the order updates.
Client Id : L128041
https://7near4m73hujvcqlnpwqxk5lzm0rppuj.lambda-url.ap-south-1.on.aws/
-
Connection Error while login.
Im getting the below error while trying to login.
ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
This is the code. Its working sometimes and sometimes not.
def create_session(angel_one_details): headers = { 'Content-Type': 'application/json', 'Accept': 'application/json', 'X-UserType': 'USER', 'X-SourceID': 'WEB', 'X-PrivateKey': angel_one_details['api_key'], 'X-ClientLocalIP': "127.0.0.1", 'X-ClientPublicIP': "106.193.147.98", 'X-MACAddress': ':'.join(re.findall('..', '%012x' % uuid.getnode())), } totp = pyotp.TOTP(angel_one_details['totp']) payload = { 'clientcode': angel_one_details['id'], 'password': angel_one_details['pin'], 'totp': str(totp.now()) } r = requests.post(ANGEL_ONE_LOGIN_URL, data=json.dumps(payload), headers=headers) print("Angle one login response : {}".format(r.text)) if r.status_code != 200: raise errors.CustomError("Angle one login Failed {}".format(r.text)) return r.json()
-
What is the issue with this request.. Im getting Invalid Token error
def get_profile(angel_one_details, jwtToken): url = "https://apiconnect.angelbroking.com/rest/secure/angelbroking/user/v1/getProfile" headers = { 'Content-Type': 'application/json', 'Accept': 'application/json', 'X-UserType': 'USER', 'X-SourceID': 'WEB', 'X-PrivateKey': angel_one_details['api_key'], 'X-ClientLocalIP': "127.0.0.1", 'X-ClientPublicIP': "106.193.147.98", 'X-MACAddress': ':'.join(re.findall('..', '%012x' % uuid.getnode())), 'Authorization': "Bearer {}".format(jwtToken) } r = requests.get(url, headers) print(r.json())
Im getting the below response
{'success': False, 'message': 'Invalid Token', 'errorCode': 'AG8001', 'data': ''}
-
Can u provide the historical data of NIFTY and BANKNIFTY ?
By when can you provide the historical data of nifty and bank nifty?