in
https://github.com/angel-one/smartapi-python/blob/main/setup.py
packages=["smartapi"],
it should have been
packages=["SmartApi"],
in
https://github.com/angel-one/smartapi-python/blob/main/setup.py
packages=["smartapi"],
it should have been
packages=["SmartApi"],
while placing order for stock options,
what should be the quantity,
e.g for GRASIM 1900CE
I want to buy 1 lot
so quantity should be 1 or 475?
try:
orderparams = {
"variety": "NORMAL",
"tradingsymbol": tradingsymbol,
"symboltoken": symboltoken,
"transactiontype": "BUY",
"exchange": "NFO",
"ordertype": "MARKET",
"producttype": "CARRYFORWARD",
"duration": "DAY",
"quantity": "1"
}
@admin looping through instruments is time consuming it takes around 80 seconds to fetch ltp for 175 instruments, in kite api it takes merely 0.30 seconds, please make the function to fetch ltp for mutliple instruments
@rajanprabu as per the documentation ap parameter in script feed is Vwap Average Price is it same as vwap indicator?
@admin I tried passing 2000 instrument token in single websocket session, and it didnt work,
received only time feed, (i an using python sdk)
but it works fine when i pass upto 200 tokens
what is the ideal limit to pass instrument tokens in single websocket?
@nahas_n connect_ws is not predefined method, right?
@nahas_n error occurs after streaming some ticks
@rajanprabu I don't think there is anything to debug, websocket works fine for few minutes and then error occurs
I have tried this in flask app
As well as tried running a single script
Both time the error happens
So the issue is at APIs end.
In upgraded version of websocket there is no option to make it threaded, why?
when i start the web socket it works for few minutes and
then i get following error
Error info: [WinError 10054] An existing connection was forcibly closed by the remote host
[WinError 10054] An existing connection was forcibly closed by the remote host
how to resolve this?