☰
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)
458
Algorithms and Strategies
998
Java client
1.1K
API clients
404
PHP client
4K
Python client
348
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
General
In this Discussion
January 2022
sprashant5
January 2022
SRIJAN
kiteconnect.exceptions.InputException: Unknown `tradingsymbol`
sprashant5
January 2022
in
Python client
price = kite.ltp('MCX:' + tokens[token]) -----// is working fine giving LTP
//If run below command ---- NSE working fine ----problem with MCX
kite.place_order(variety=kite.VARIETY_REGULAR, exchange=kite.EXCHANGE_MCX,
order_type=kite.ORDER_TYPE_LIMIT, tradingsymbol='GOLDPETAL22MARFUT',
transaction_type=kite.TRANSACTION_TYPE_BUY, quantity=qty1, price=lim103,
validity=kite.VALIDITY_DAY, product=kite.PRODUCT_NRML)
//Gives below error ---
Traceback (most recent call last):
File "C:\Users\Prashant\PycharmProjects\ZERODHA_1301\empty2.py", line 130, in
buy_order10 = kite.place_order(variety=kite.VARIETY_REGULAR, exchange=kite.EXCHANGE_MCX,
File "C:\Users\Prashant\AppData\Local\Programs\Python\Python39-32\lib\site-packages\kiteconnect\connect.py", line 355, in place_order
return self._post("order.place",
File "C:\Users\Prashant\AppData\Local\Programs\Python\Python39-32\lib\site-packages\kiteconnect\connect.py", line 841, in _post
return self._request(route, "POST", url_args=url_args, params=params, is_json=is_json, query_params=query_params)
File "C:\Users\Prashant\AppData\Local\Programs\Python\Python39-32\lib\site-packages\kiteconnect\connect.py", line 913, in _request
raise exp(data["message"], code=r.status_code)
kiteconnect.exceptions.InputException: Unknown `tradingsymbol`.
SRIJAN
January 2022
It should be exchange='MCX'.
sprashant5
January 2022
using exchange=kite.EXCHANGE_MCX
for placing order.
sprashant5
January 2022
thnx... SRIJAN
exchange='MCX'.
Worked.
but exchange=kite.EXCHANGE_MCX is not working...why?
SRIJAN
January 2022
It's some internal problem from api side.
Sign In
or
Register
to comment.
for placing order.
exchange='MCX'.
Worked.
but exchange=kite.EXCHANGE_MCX is not working...why?