@admin Min of 2, max I have tried is 3 scrips.
merryemmons642
@merryemmons642
Best posts made by merryemmons642
Latest posts made by merryemmons642
-
RE: Error info: Connection to remote host was lost. Connection to remote host was lost.posted in General Discussion
-
RE: Error info: Connection to remote host was lost. Connection to remote host was lost.posted in General Discussion
This has happened today at 12:24 again, this time with a different error code
-
RE: Error info: Connection to remote host was lost. Connection to remote host was lost.posted in General Discussion
@admin while your team is working on a resolution, please provide a way or a code snippet to reconnect the WebSocket , this will be really helpful as the connection to the host was lost error is coming every now and then.
-
RE: Error info: Connection to remote host was lost. Connection to remote host was lost.posted in General Discussion
Got the same error today again:
2021-06-15 10:38:07.204511 : Start task in the background
{'task': 'hb', 'channel': '', 'token': '', 'user': '', 'acctid': ''} (removed acctid and token for privacy issue)
457.7 10:38:07
478.4 10:38:08
Error info: Connection to remote host was lost.
Connection to remote host was lost. -
RE: Error info: Connection to remote host was lost. Connection to remote host was lost.posted in General Discussion
@admin I have faced the similar issue a while back for crude oil.
How do I reconnect to the websocket incase of an event like this.
-
RE: Which API to get All positions for an option expiryposted in General Discussion
https://smartapi.angelbroking.com/docs/Portfolio#position
You can use the above API call to get your positions.
Filter only the net positions to get the carry positions and initiate your next steps accordingly.
Hope that helps!
-
RE: Which API to get All positions for an option expiryposted in General Discussion
@vamseeds Can you elaborate more with an example? I didn't get your question.
-
RE: Technical Indicatorposted in General Discussion
@athul_4554 You have to pull the historical data for stocks, push that data to a dataframe and get your indicator values using talib library
-
RE: How do I reuse the refreshtoken without having to generate it throughout the day whenever I want to use the API?posted in Python SDK
@rajanprabu Can you please provide a code snippet for python? I tried but I am still getting the following response:
{'success': False, 'message': 'Invalid Token', 'errorCode': 'AG8001', 'data': ''}
-
How do I reuse the refreshtoken without having to generate it throughout the day whenever I want to use the API?posted in Python SDK
How do I reuse the refreshtoken without having to generate it throughout the day whenever I want to use the API?
Currently I am generating token every time I have to use the API.
