☰
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
347
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
General
In this Discussion
February 2017
kapilaggr
February 2017
beast123
February 2017
sujith
kite.order_place error
beast123
February 2017
in
Python client
I am calling the order_place function like this in python. The variables I have taken from the excel file !
order_id = kite.order_place(exchange, tradingsymbol, transaction_type, quantity, price, product, order_type,validity,squareoff_value, stoploss_value, trailing_stoploss, variety)
but it is giving the following error on this line..
kiteconnect.exceptions.OrderException: `disclosed_quantity` cannot be greater than `quantity`
Please help me . Thanks !
Tagged:
Python Client
sujith
February 2017
@beast123
,
You are suppose to pass disclosed quantity to this method, checkout params of order_place
here
.
beast123
February 2017
In the link you provided there is no disclosed quantiy variable . Order is getting place without it . Please look into it as this is the only line where I am stuck !
sujith
February 2017
Checkout this method in the repository, def order_place(self,
exchange, tradingsymbol, transaction_type, quantity, price=None, product=None,
order_type=None,
validity=None, disclosed_quantity=None, trigger_price=None,
squareoff_value=None,
stoploss_value=None,
trailing_stoploss=None,
variety="regular",tag=""):
You need to pass disclosed quantity.
kapilaggr
February 2017
@sujith
I tried to place an order using
response = requests.post("
https://api.kite.trade/orders/regular
", data=payload)
as given in link
https://kite.trade/docs/connect/v1/#placing-orders
The same shows error however the other kite.order_place functionality works fine. Why is the former set of command not working? How do I place a modify order in that case.
sujith
February 2017
edited February 2017
@kapilaggr
,
What client are you using? Python?
kapilaggr
February 2017
@sujith
yes
sujith
February 2017
@kapilaggr
,
Check out python
documentation
.
Sign In
or
Register
to comment.
You are suppose to pass disclosed quantity to this method, checkout params of order_place here.
exchange, tradingsymbol, transaction_type, quantity, price=None, product=None,
order_type=None,
validity=None, disclosed_quantity=None, trigger_price=None,
squareoff_value=None,
stoploss_value=None,
trailing_stoploss=None,
variety="regular",tag=""):
You need to pass disclosed quantity.
response = requests.post("https://api.kite.trade/orders/regular", data=payload)
as given in link https://kite.trade/docs/connect/v1/#placing-orders
The same shows error however the other kite.order_place functionality works fine. Why is the former set of command not working? How do I place a modify order in that case.
What client are you using? Python?
Check out python documentation.