Please send PIN via email as well. only mobile will cause lots of inconveniences.
Posts made by rajanprabu
-
RE: Important Announcement: Change in Angel One Login Policy
-
RE: Websocket 2.0
@admin and Team,
I had spent sometime in python SDK to see whats the issue. In the SmartWebSocketV2 file in GitHub (https://github.com/angel-one/smartapi-python/blob/AMX-3393-Smart-Api-Python-Library/SmartApi/smartWebSocketV2.py )
line 310 that is converting byte string to token is not working. If I simply comment it out and give the token number directly it can now print Ticks.
def _parse_binary_data(self, binary_data): try: parsed_data = { "subscription_mode": self._unpack_data(binary_data, 0, 1, byte_format="B")[0], "exchange_type": self._unpack_data(binary_data, 1, 2, byte_format="B")[0], #"token": SmartWebSocketV2._parse_token_value(binary_data[2:27]), "token": 234876, "sequence_number": self._unpack_data(binary_data, 27, 35, byte_format="q")[0], "exchange_timestamp": self._unpack_data(binary_data, 35, 43, byte_format="q")[0], "last_traded_price": self._unpack_data(binary_data, 43, 51, byte_format="q")[0] }
lines 353 to 360. This functions needs a re look.
@staticmethod def _parse_token_value(binary_packet): token = "" for i in range(len(binary_packet)): if binary_packet[i] == b'\x00': return token token += binary_packet[i].encode("UTF-8") return token
I could re write the function but I would request the team to have a look .
-
RE: API BUG
Try the SDK from angel-one
https://github.com/angel-one/smartapi-python
This resolved some of my order errors.. Although im not sure if this will resolve your issue,,
-
Websocket 2.0
Hello @admin and all,
Did you anyone managed to get Ticks via the new smartWebSocketv2 using python SDK. I only get Pings ans Pongs and no ticks.
on open
In on pong function==> b'\x00'
In on pong function==> b'\x00'
In on pong function==> b'\x00'
In on pong function==> b'\x00'
In on pong function==> b'\x00'
In on pong function==> b'\x00'
In on pong function==> b'\x00'
In on pong function==> b'\x00'
In on pong function==> b'\x00'
In on pong function==> b'\x00'
In on pong function==> b'\x00'It would be helpful to get some feedback from people who used it successfully.
Thanks
-
Websockets drop one instrument randomly
Hi @admin and Team,
We discovered a major issue today that was nagging us for a while. This never happened before August. We subscribed to Nifty and BankNifty Futures and few more options data ( different strikes ) using web sockets. while ticks for options were coming properly randomly Futures ticks stopped coming. This happened at least dozen times today.
We could get ticks once we restart the script. But this is not anywhere close to being optimal as order being sent around each minute. Please take this as a priory and diagnose whats really the issue.
We are using latest python SDK. Until August everything was stable and we hardly had to intervene. It went downhill from there.
-
RE: RMS:Blocked for NON-INTRADAY BO Remarks
@vishant You have ti enable intraday trading.. contact your broker.
-
RE: Unable to get live data
Again we cant get data via web socket :(
I hope you guys realise that its our hard earned money on the stake here.
-
RE: Unable to get live data
please fix it asap. This morning we cant get data via websockets. Yesterday webpage was issue and today this is.
-
RE: Login Password has been Expired
Just change the password in your trading portal. passwords have one year validity.. it should work after you change the password.
-
RE: Not able to receive websocket data since 1 week
Great ! Thanks for writing..
-
RE: Not able to receive websocket data since 1 week
I painstakingly explore all log files and found out that password has an expiry. Eventhough it lets you login through the web portal. As Ashok mentioned suddenly websockets stopped giving data. Reset the password in trade.angelbroking.com and try to connect.
This should work.
best
Rajan -
RE: Not able to receive websocket data since 1 week
u mean equity data or fno ?
-
no web sockets data for India cements
Hi @admin,
While ago I have complained about no data coming for ABFRL. Today India Cements is not coming..
if you are serious about Algo trading at least provide data for all FNO scrips at least.
Highly frustrating..
-
No candles for scrip ABFRL
Hi @admin,
There is no candles coming through web sockets for scrip ABFRL. Its a FNO stock. Could you please fix this..
best
rajan -
RE: Websocket Order status
I have used my custom code to do this before and it worked. But with Angel main issues is time to time we get HearBeat Failed message. Imgine missing a order notification due to HB failure.
Having said that have you tried this for your live trading ? is it stable especially when market makes a big move in short time.
Thanks.
-
RE: Tempory technical issue: 22-11-2021
"Couldn't parse the JSON response received from the server: {content}".format(
smartapi.smartExceptions.DataException: Couldn't parse the JSON response received from the server: b'<!doctype html><html lang="en"><head><title>HTTP Status 500 \xe2\x80\x93 Internal Server Error</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 500 \xe2\x80\x93 Internal Server Error</h1></body></html>' -
RE: order book API down ?
Its down again.. Its our hard earned money for gods sake..
-
order book API down ?
raise ex.DataException("Couldn't parse the JSON response received from the server: {content}".format(
smartapi.smartExceptions.DataException: Couldn't parse the JSON response received from the server: b''please fix it asap.
best
rajan