☰
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
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.