☰
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.9K
All Categories
0
Incidents
156
Node JS client
40
Go client
793
.Net API client
380
Kite Publisher
537
.Net / VBA / Excel (3rd party)
457
Algorithms and Strategies
998
Java client
1.1K
API clients
404
PHP client
4K
Python client
347
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
General
In this Discussion
March 2022
tapanjbhatt
March 2022
SRIJAN
NIFTY FUTURES AMO REJECTED
tapanjbhatt
March 2022
in
Python client
I use latest kite connect python client (kiteconnect==4.0.2). When i placed order like this, it gets rejected with 'instrument is invalid':
order_id = kite.place_order(tradingsymbol='NIFTY22MARFUT',
exchange=kite.EXCHANGE_NSE,
transaction_type= kite.TRANSACTION_TYPE_BUY,
quantity=50,
variety=kite.VARIETY_AMO,
order_type=kite.ORDER_TYPE_MARKET,
product=kite.PRODUCT_CNC,
validity=kite.VALIDITY_DAY)
I have doubly made sure that the trading symbol is correct one, in upper case as retrieved from "
https://api.kite.trade/instruments/NFO
".
The same order gets accepted from kite connect API if I pass symbol 'RELIANCE', why 'NIFTY22MARFUT' does not work.
Also, order for 'NIFTY22MARFUT' gets successfully placed from kite UI order window, only kite connect API fails.
Not sure this happens only for AMO orders or all orders of this instrument. it's night time so I could test only AMO as off now.
SRIJAN
March 2022
edited March 2022
You should gain some basic stock market knowledge before trying algo trading.
NFO is the exchange for all equity derivatives.
Also,CNC product type is for equity only. For derivatives,MIS or NRML should be used.
https://kite.trade/docs/connect/v3/orders/#glossary-of-constants
tapanjbhatt
March 2022
oops ...my bad...
thanks for taking time and patience to reply this
This discussion has been closed.
NFO is the exchange for all equity derivatives.
Also,CNC product type is for equity only. For derivatives,MIS or NRML should be used.
https://kite.trade/docs/connect/v3/orders/#glossary-of-constants