@Phanilbb @Moderator_2 any update on this?
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?
-
Why my limit order executed before the limit price?
My limit order has been executed before the trigger price. Am i sending anything wrong in the request.
{
"variety": "NORMAL",
"tradingsymbol": "NIFTY12JAN2318000CE",
"symboltoken": "49705",
"transactiontype": "BUY",
"exchange": "NFO",
"ordertype": "LIMIT",
"producttype": "INTRADAY",
"price": "127.0",
"duration": "DAY",
"quantity": "50"
}It got executed at price 121.4
This is the order ID. : 230109000193355
-
RE: how to close open position
Hi Admin.. It would be great that you provide exit by order ID and exit all APIs. that would be of great help for us
-
Postback call for what all order status
For what all order status do we receive the postback call? Its not mentioned in the document.
-
Error while placing market order
'NoneType' object is not subscriptable
Sometimes getting the error like this while placing orders. But on trying with same payload, its getting successful in the 3rd or 4th attempt.. My order execution is getting delayed bcoz of this.
{
"variety": "NORMAL",
"tradingsymbol": "ADANIPORTS-EQ",
"symboltoken": "15083",
"transactiontype": "SELL",
"exchange": "NSE",
"ordertype": "MARKET",
"producttype": "INTRADAY",
"duration": "DAY",
"quantity": 1
}