@admin pl help to get hist data for 26000 and 26009.
Posts made by lavly
-
RE: NO HISTORICAL DATA FOR TOKEN 26000AND 26009
-
NO HISTORICAL DATA FOR TOKEN 26000AND 26009
Historical API doesn't provide any data for 26000 and 26009 tokens pl explain why. Pl help out get that.
-
RE: Unable to genrate session or refresh token
issue resolved. thanks for listening.
i din't know how but my api key got inactive. after reactivating same. code is working fine.
thanks.
-
RE: Unable to genrate session or refresh token
@admin said in Unable to genrate session or refresh token:
@lavly are you able to login into web based platform using same credentials
@admin yes i can login into web and app ba based platform -
RE: Unable to genrate session or refresh token
@admin my client id is - VDKU062
-
RE: Unable to genrate session or refresh token
@lavly said in Unable to genrate session or refresh token:
data = obj.generateSession(username, password)
refreshToken= data['data']['refreshToken']This github code is giving error after 11 dec 21.
Pl Help.Error annexed.
-
Unable to genrate session or refresh token
data = obj.generateSession(username, password)
refreshToken= data['data']['refreshToken']This github code is giving error after 11 dec 21.
Pl Help.Error annexed.
-
RE: GenerateSession and GetUserProfile getting failed each time
I am getting error while genratesession
:-
"TypeError: 'NoneType' object is not subscriptable"
I am using Google colab. My code was working fine till 10 Dec 2021.
Pl help. -
RE: Working WebSocket Sample code to retrieve LTP - Python
@James-Bond this code is giving following errorrs
ReactorNotRestartable Traceback (most recent call last)
<ipython-input-71-f3a22d8e176e> in <module>()
21 ss.on_close = on_close
22
---> 23 ss.connect( )3 frames
/usr/local/lib/python3.7/dist-packages/twisted/internet/base.py in startRunning(self)
841 raise error.ReactorAlreadyRunning()
842 if self._startedBefore:
--> 843 raise error.ReactorNotRestartable()
844 self._started = True
845 self._stopped = FalseReactorNotRestartable:
-
wrong indentation error
orderparams = {
"variety": "NORMAL",
"tradingsymbol": "SBIN-EQ",
"symboltoken": "3045",
"transactiontype": "BUY",
"exchange": "NSE",
"ordertype": "LIMIT",
"producttype": "INTRADAY",
"duration": "DAY",
"price": "390",
"squareoff": "0",
"stoploss": "0",
"quantity": "10"
}
orderId=obj.place0rder(orderparams)
print("The order id is: {}".format(orderId))
except Exception as e:
print("Order placement failed: {}".format(e.message))Iam using above code. It gives following errorr
File "<ipython-input-44-d8c4717597ee>", line 15
orderId=obj.place0rder(orderparams)
^
IndentationError: unexpected indentPl help
-
RE: unable to import websocket
@djdenish from smartapi import WebSocket
Errorr
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-47-fd07382cedc0> in <module>()
----> 1 from smartapi import WebSocket2 frames
/usr/local/lib/python3.7/dist-packages/twisted/internet/ssl.py in <module>()
56
57 # System imports
---> 58 from OpenSSL import SSL
59
60 from zope.interface import implementer, implementer_only, implementedByModuleNotFoundError: No module named 'OpenSSL'
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.To view examples of installing some common dependencies, click the
"Open Examples" button below. -
RE: unable to import websocket
@djdenish installed. I'm getting my profile. But the codes given for WebSocket, order placement and gtt giving errors, like module not found or wrong indentation , define e. Etc
-
RE: unable to import websocket
@James-Bond i am working with Google collaboratory. I'm getting my profile. Evry thing is ok.
When I put cmd from smartapi import Web Socket it shows error no module found -
unable to import websocket
WebSocket
from smartapi import WebSocket
FEED_TOKEN= "your feed token"
CLIENT_CODE="your client Id"
token="channel you want the information of" #"nse_cm|2885&nse_cm|1594&nse_cm|11536"ss = WebSocket(FEED_TOKEN, CLIENT_CODE)
def on_tick(ws, tick):
print("Ticks: {}".format(tick))def on_connect(ws, response):
ws.send_request(token)def on_close(ws, code, reason):
ws.stop()Assign the callbacks.
ss.on_ticks = on_tick
ss.on_connect = on_connect
ss.on_close = on_closess.connect( )
This code giving error 1 line itself.