☰
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
14.1K
All Categories
0
Incidents
158
Node JS client
43
Go client
801
.Net API client
386
Kite Publisher
538
.Net / VBA / Excel (3rd party)
465
Algorithms and Strategies
1K
Java client
1.1K
API clients
408
PHP client
4.1K
Python client
349
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.4K
General
In this Discussion
January 2022
Vishesh
GTT End Point Returns 400
Vishesh
January 2022
edited January 2022
in
Python client
Doing a HTTP post to :url = "
https://api.kite.trade/gtt/triggers
"
PAYLOAD: {'type': 'two-leg', 'condition': '{"exchange":"NFO", "tradingsymbol":"NIFTY22JAN17950CE", "trigger_values":[201.0,231.0], "last_price": 226.0}', 'orders': '[{"exchange":"NFO", "tradingsymbol": "NIFTY22JAN17950CE", "transaction_type": "SELL", "quantity": 50.0, "order_type": "LIMIT","product": "NRML", "price": 201.0},{"exchange":"NFO", "tradingsymbol": "NIFTY22JAN17950CE", "transaction_type": "SELL", "quantity": 50.0, "order_type": "LIMIT","product": "NRML", "price": 231.0}]'}
RESPONSE comes back as "<<Response [400]>>"
Any idea what is wrong?
Tagged:
Python Client
GTT
#gtt #kite #python
Vishesh
January 2022
sorted... quantity needed to be in integer and not float.
Discussion can be closed.
This discussion has been closed.
Discussion can be closed.