Selling stocks via SmartAPI & doubts regarding websockets
-
When we use the AngelOne app to sell a stock, we have enter the TPIN and OTP (once for the day).
So if I use the smart api, do i still have to do these things manually?
- If yes then I am not sure if I can build a fully automated platform. Can you guys suggest some alternatives? Can we disable TPIN and OTP for the API sell orders?
How do you guys usually place orders via the smart api?
Also how do you guys leverage the websockets api? I am trying to have some custom strategy at my end.
There are two way I am thinking of doing it:- use the websockets to continously read and process the data
(data is continous, i don't want to use any queuing system right now as this will only be a sort of POC. Any good inmemory queuing system for python/nodejs?) - poll regularly and apply the strategy(limits issue)
Thanks
-
@rajanprabu said in Selling stocks via SmartAPI & doubts regarding websockets:
Not sure what are you asking here.. You want to do algo trading right ??
I would recommend spend some time reading about it. This is a technical forum to raise questions about usage. Your questions are beyond the scope of it.Will check more about algo trading. Thanks.
-
@rajanprabu said in Selling stocks via SmartAPI & doubts regarding websockets:
Just change the buy to sell, it will sell it for you
So in this case no need of TPIN and all those things (as we have it in the APP while selling) right?
-
@rgs17 said in Selling stocks via SmartAPI & doubts regarding websockets:
All the examples and docs are demonstrated for BUY transaction but not for SELL. I am not sure if I can place SELL order using API.
Just change the buy to sell, it will sell it for you
@rgs17 said in Selling stocks via SmartAPI & doubts regarding websockets:
Can you please explain what do you mean by rule based system?
Not sure what are you asking here.. You want to do algo trading right ??
I would recommend spend some time reading about it. This is a technical forum to raise questions about usage. Your questions are beyond the scope of it.
-
@admin said in Selling stocks via SmartAPI & doubts regarding websockets:
I have been through the docs. I just want to know the correct way to use them,
I can use websockets and process them in memory lets say frontend app( i am not using any async queuing system like kafka or other) , is it recommended?
Or should I poll frequently? -
@admin said in Selling stocks via SmartAPI & doubts regarding websockets:
Yo can develop a fully automated rule based system using SmartAPI
Can you please explain what do you mean by rule based system?
Is it related to GTT?
All the examples and docs are demonstrated forBUY
transaction but not forSELL
. I am not sure if I can placeSELL
order using API.My doubt is whether TPIN and OTP is asked on placing a SELL order via API? I am expecting a YES/NO. I want to be sure before trying it out on my portfolio.
-
@rgs17 said in Selling stocks via SmartAPI & doubts regarding websockets:
So if I use the smart api, do i still have to do these things manually?
If yes then I am not sure if I can build a fully automated platform. Can you guys suggest some alternatives? Can we disable TPIN and OTP for the API sell orders?
Yo can develop a fully automated rule based system using SmartAPI
@rgs17 said in Selling stocks via SmartAPI & doubts regarding websockets:
How do you guys usually place orders via the smart api?
Also how do you guys leverage the websockets api? I am trying to have some custom strategy at my end.
There are two way I am thinking of doing it:use the websockets to continously read and process the data
(data is continous, i don't want to use any queuing system right now as this will only be a sort of POC. Any good inmemory queuing system for python/nodejs?)
You need to go through below doc to understand different APIs availible