It looks like you're new here. If you want to get involved, click one of these buttons!
.Net API client
.Net / VBA / Excel (3rd party)
Algorithms and Strategies
Mobile and Desktop apps
Market data (WebSockets)
In this Discussion
Kite Order - Trying to pass Exchange
Here is the code:
exchange = "NSE"
kiteExchange = "kite.EXCHANGE_" + exchange
kiteExchange = str(kiteExchange)
id = kite.place_order(
As you can see I am trying to pass exchange, but errors out saying:
Traceback (most recent call last):
kiteconnect.exceptions.InputException: Invalid `exchange`.
If I pass the exact string "kite.EXCHANGE_NSE" that works fine. I have tried to see what is wrong for quite some time, made sure the type is str, but still errors out.
Can you run in debug mode and paste the complete stack trace here?
Make sure to remove the app and client-specific details.