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
The issue is with the place_order(). Minimum arguments have been supplied but still it is showing the same error as shown below:
TypeError : place_order() takes at least 8 arguments (8 given).
Please help if anything is missed.
Thanks in advance.
Please provide the version of the api and code.
The version of the api is 3 and the code is this :
order_id = kite.place_order(tradingsymbol="REL",exchange = kite.EXCHANGE_NSE,transaction_type = kite.TRANSACTION_TYPE_BUY,quantity = 10,order_type = kite.ORDER_TYPE_MARKET,product = kite.PRODUCT_NRML,disclosed_quantity = 20)
You seem to be passing the wrong tradingsymbol.
Have checked it with another symbol as well. The error is :
File "document_for_connect_changed.py", line 14, in
order_id = kite.place_order(tradingsymbol="ACC",exchange = kite.EXCHANGE_NS
E,transaction_type = kite.TRANSACTION_TYPE_BUY,quantity = 10,order_type = kite.O
RDER_TYPE_MARKET,product = kite.PRODUCT_NRML,disclosed_quantity = 20)
TypeError: place_order() takes at least 8 arguments (8 given)
Did you find any solution for this? I'm facing the same issue.
You seem to be missing some params check out
No.. am still facing the same issue..
... Checking it from the python doc.. have tried with lots of combinations.. ll check it with the provided doc.. Thanks
are you still facing this issue or have u solved it, if so, please let me know ?
There is one param named "variety=kite.VARIETY_REGULAR", which is necessary. after supplying this, issue will be solved. it can be BO, CO or regular. Hope it helps.
This discussion has been closed.