I’m running my apps on AWS. Alternate network, firewall and anti-virus shouldn’t be the issue.
Time between requests from one thread of an app is a random number of 1 to 60 seconds, which should be enough. The issue happened thrice today.
…
The issue resolved after I increased sleep time from 1 second to a random number between 1 and 60 seconds. Including Websocket would mean major changes in my working code base.
Now I’m facing below issue:
https://kite.trade/forum/discussion…
@sujith @Sravanthi_bh
Using pykiteconnect, I'm also facing random "Error: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))". I'm not using websockets.
It happened when historical_data() and order_history() were calle…
@Nivas @rakeshr My apps run on AWS so internet connection should not be an issue. I have reduced API calls of order_history(). But still I'm occasionally facing "Connection aborted" issue.
@Nivas Can you share how to enable logs of the Kite Connect library? Is rate limit of order_history() 3 req/second per user? I was issuing more than 3 req/sec but max 2 req per app. I have 3 apps and each app can issue max 2 req/sec for kite.order_h…
Thanks for your comment. Before opening this discussion, I had gone through the discussion shared by you. Since that discussion doesn’t answer my query, I had to create this new discussion.
I wanted to know if order modifications count is expos…
@Arockiya_r I'm using final margin as below:
def check_required_margin(basket):
margin = kite.basket_order_margins(basket)
return margin["final"]["total"]
Do you suggest using margin["initial"]["total"] ? After taking a trade, can required m…
@sujith Could you please help?
I follow below steps to handle margin:
1. Fetch available margin using kite.margins()
2. Use 90% of available margin
3. Create basket and check basket margin using kite.basket_order_margins()
4. Execute only if bask…
@sujith Could you please help? Instead of checking order status, should I send order modification request straightaway and if exception occur (indicating SL-L order got completed), then handle it accordingly?
@sujith URL: https://api.kite.trade/orders/regular
Above URL and my complete code works for qty lower than freeze qty. Just stuck on iceberg orders.
According to my values, iceberg_quantity should be 1275. Please see below calculation:
quantity = 3…
@sujith Is legCount same as iceberg_legs? I used slicing as suggested and got the same error.
icebergLegs = Math.ceil(quantity / freezeQuantity);
const slice = quantity / icebergLegs;
icebergQuantity = Math.ceil((slice / lotSize)) * lotSize;
{
e…
@Sravanthi_bh Thanks for your input. Before posting this thread, I had gone through the shared post and many other posts on icebergs on the forum. The shared link's conclusion is still vague to me. Does it mean I need to modify as below?
freezeQuan…
I tried using iceberg_quantity in quantity but it executed only 1st leg of the iceberg. Lost 1k in just testing this buggy iceberg API with unclear documentation.
@sujith Does that mean in below order I should change quantity to 2400?
{
exchange: 'NFO',
variety: 'iceberg',
iceberg_legs: 2,
iceberg_quantity: 1200,
tradingsymbol: 'NIFTY25APR23800PE',
transaction_type: 'SELL',
order_t…
Instead of finding symbol from the instrument master, is there any way of finding symbol name on Kite website itself?
Trading symbol shows in Info section of traded instruments in the Orders page. But for never traded instruments, we cannot ge…