☰
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.8K
All Categories
0
Incidents
154
Node JS client
40
Go client
793
.Net API client
378
Kite Publisher
537
.Net / VBA / Excel (3rd party)
457
Algorithms and Strategies
993
Java client
1.1K
API clients
404
PHP client
4K
Python client
346
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
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.