☰
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
15.3K
All Categories
0
Incidents
186
Node JS client
52
Go client
870
.Net API client
411
Kite Publisher
557
.Net / VBA / Excel (3rd party)
512
Algorithms and Strategies
1.1K
Java client
1.3K
API clients
410
PHP client
4.4K
Python client
370
Mobile and Desktop apps
1.5K
Market data (WebSockets)
3.7K
General
In this Discussion
May 2021
sujith
Error placing options order
jennings
May 2021
in
Python client
A piece of code I use successfully to place NIFTY options order is bombing while trying to place equity option orders. Any ideas?
Payload:
{'tradingsymbol': 'BRITANNIA21MAY3400PE', 'exchange': 'NFO', 'transaction_type': 'BUY', 'order_type': 'MARKET', 'quantity': 200, 'product': 'NRML', 'validity': 'DAY', 'tag': 'stockviz'}
400 Client Error: Bad Request for url:
https://api.kite.trade/orders/regular
sujith
May 2021
edited May 2021
@jennings
,
MARKET order is not allowed for stock options. You need to place LIMIT order at LTP.
You can always read the exception.message to know the correct reason.
Sign In
or
Register
to comment.
MARKET order is not allowed for stock options. You need to place LIMIT order at LTP.
You can always read the exception.message to know the correct reason.