Back to All

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", ... }
}
...
}

  1. 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.