ANSWERED
ANSWERED
ANSWERED
ANSWERED

Single Stock Update Webhook - Average Price

In the response of single stock update webhook, We have following response: { "batchId": "XXXXXXXXXXXXXX", "buyAmount": 0, "sellAmount": 24360.119999999995, "quantity": 1, "filled": 1, "status": "COMPLETED", "variety": "regular", "completedDate": "2022-01-07T14:17:23.276Z", "orders": [ { "status": "COMPLETE", "quantity": 10, "tradingsymbol": "RELIANCE", "transactionType": "SELL", "averagePrice": 2436.0119999999997, "exchange": "NSE", "orderType": "MARKET", "product": "CNC", "filledQuantity": 10, "exchangeOrderId": "XXXXXXXXXXXXXXXXXXXXXXXXXXXX" } ], "unplaced": [], "transactionId": "XXXXXXXXXXXXXXXXXXXXXXXX", "broker": "kite-leprechaun", "smallcaseAuthId": "XXXXXXXXXXXXXXXXXXXXX", "timestamp": "2022-01-07T14:17:23.286Z", "checksum": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" } Here, when the transaction type is SELL and we get the average price. What does this average Price represents? Is it the Sell Price per Share for this SELL transaction? Similarly, when the transaction type is BUY and we get the average price. Is it the price at which those shares were bought or the weighted average price of all the shares for that ticker? For ex. We buy 2 share of ticker X at price A and 1 share of same ticker X at price B. The average price that we'll get in the BUY order of X at price B, is it the weighted average price for the current holdings (2 (at price A) +1 (at price B) = 3 shares) or the price at which that share was bought (B in this case) ?
ANSWERED
ANSWERED
ANSWERED
ANSWERED

Securities Transaction: Basket Order

Hi Team, I have some questions about securities transaction API when we place a basket order: 1. If I place a basket order with securities transaction API, what will be the order update trigger that I'll receive via single stock update webhook? Let's say, the basket order contains 4 stocks in the securities list. Will I receive four separate updates as and when those orders are completed or a single update when all of them are completed? Let's say if one stock order is completed successfully, will I get the all four orders in the order update trigger with the schema something like this: { ... orders: { "stock1": { "status": "COMPLETED", ... }, "stock2": { "status": "PLACED", ... }, "stock3": { "status": "PLACED", ... }, "stock4": { "status": "PLACED", ... } } ... } OR only the completed order with schema something like this: { ... orders: { "stock1": { "status": "COMPLETED", ... } } ... } 2. Is it checking for the validity of funds to place all the stock orders in the securities list of the basket? For ex. If 2 stock orders are completed and now the user doesn't have enough funds to place other two stock orders.
ANSWERED