☰
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.8K
All Categories
0
Incidents
153
Node JS client
40
Go client
793
.Net API client
378
Kite Publisher
537
.Net / VBA / Excel (3rd party)
457
Algorithms and Strategies
993
Java client
1.1K
API clients
404
PHP client
4K
Python client
346
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
General
In this Discussion
July 2023
pseudo
July 2023
sujith
basket_order_margins giving error very frequently
pseudo
July 2023
edited July 2023
in
Python client
My Code example for today:
order_param_basket = [{'exchange': 'NFO', 'tradingsymbol': 'BANKNIFTY2371344800CE', 'transaction_type': 'SELL', 'variety': 'regular', 'product': 'MIS', 'order_type': 'MARKET', 'quantity': 25}, {'exchange': 'NFO', 'tradingsymbol': 'BANKNIFTY2371344800PE', 'transaction_type': 'SELL', 'variety': 'regular', 'product': 'MIS', 'order_type': 'MARKET', 'quantity': 25}]
kite.basket_order_margins(order_param_basket, mode='compact')
Following is the error: "error computing charges: could not get instrument details : instrument not found: NSE:BANKNIFTY2371344800CE"
My algos are failing often due to these errors, I have also implemented retries after every 1 sec for 10 times, but not helping. Please help asap.
Tagged:
python
fetch margin
sujith
July 2023
As the error explains the instrument name can't be found in the NSE exchange, it should be NFO exchange.
pseudo
July 2023
basket seems correct, looks like something is going wrong elsewhere in code. Thank you for your quick response.
Sign In
or
Register
to comment.