☰
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
10.9K
All Categories
64
Node JS client
21
Go client
641
.Net API client
311
Kite Publisher
512
.Net / VBA / Excel (3rd party)
336
Algorithms and Strategies
828
Java client
829
API clients
367
PHP client
2.9K
Python client
296
Mobile and Desktop apps
1.1K
Market data (WebSockets)
2.7K
General
In this Discussion
January 5
Vishesh
GTT End Point Returns 400
Vishesh
January 5
edited January 5
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 5
sorted... quantity needed to be in integer and not float.
Discussion can be closed.
This discussion has been closed.
Discussion can be closed.