☰
Login
Signup
Home
›
Python client
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
13.2K
All Categories
0
Incidents
128
Node JS client
38
Go client
769
.Net API client
364
Kite Publisher
532
.Net / VBA / Excel (3rd party)
436
Algorithms and Strategies
970
Java client
1K
API clients
401
PHP client
3.8K
Python client
331
Mobile and Desktop apps
1.3K
Market data (WebSockets)
3.2K
General
In this Discussion
March 2
theankitdabas
March 2
rajnivp
Automation GTT
theankitdabas
March 2
in
Python client
for automation of placing two legg GTT order, and regular updating it through a trailing script.... do we need to use Socket or how it can be done ?
Tagged:
WebSocket
GTT
rajnivp
March 2
for trailing you'll need to keep monitoring live price so for that you need to use websocket connection
theankitdabas
March 2
HOW TO GET THIS DONE ??
def on_order_update(self, ws, data)
# Handle order updates
# TODO: Here we need to add code to place the order
in this section i want to get the order id of each BUY order placed and place a SELL two leg gtt order with stoploss -27% and target 12%
theankitdabas
March 2
@sujith
@rakeshr
Sign In
or
Register
to comment.
def on_order_update(self, ws, data)
# Handle order updates
# TODO: Here we need to add code to place the order
in this section i want to get the order id of each BUY order placed and place a SELL two leg gtt order with stoploss -27% and target 12%