ANSWERED

SDK's triggerTransaction method seems never resolve the promise in some cases.

**Web SDK** In some cases when the transaction doesn't go through (it is limited to this case at least in the limited testing we have done) in the following cases at least: - Not enough funds - Proceed anyway - Trade fails - User exits by clicking the exit button - Broker account does not have equity segment enabled. - Trades fail. - User exits by clicking the exit button. The pattern seems to be that in some natural flow of interaction, due to some case, trades fail and the exit button is presented to the user and the user exits the SDK flow by clicking it. - In these cases, the promise on the `triggerTransaction` method never `resolves` or `rejects` and it is in limbo. Some sample code for reference: ```js try { const txnRes = await sg.triggerTransaction({ transactionId: res.data.transaction_id, }); console.log("Done transacting"); console.log(txnRes); // Other logic } catch (err: any) { console.log("error: ", err); // Error handling logic } ``` In the above snippet, in the cases described above, no `log` happens and the logic is stuck in limbo. App appears normal and the app is in focus for interaction as far as DOM elements are concerned. But control never reaches consequent logic. Please let us know in case we're doing something wrong on our end.
ANSWERED

Web SDK: how to trigger transaction in leprechaun mode?

What are the different ways in which we can trigger a transaction in leprechaun mode?

Getting error while generating authentication key

'IDX10653: The encryption algorithm 'HS256' requires a key size of at least '128' bits. Key '[PII of type 'Microsoft.IdentityModel.Tokens.SymmetricSecurityKey' is hidden. For more details, see https://aka.ms/IdentityModel/PII.]', is of size: '112'. Parameter name: key'
ANSWERED

How to cancel a single order?

I want to cancel a pending order. What API can be used for cancellation? Please suggest
ANSWERED

500 internal error when guest user api is invoked

500 internal error when guest user api is invoked : 500 Internal Server Error: "{"success":false,"errors":["Internal server error"],"data":null,"errorType":"InternalError"}" http://localhost:8099/api/v1/transaction/guest-user/create x-gateway-authtoken : eyJhbGciOiJIUzI1NiJ9.eyJndWVzdCI6dHJ1ZSwiZXhwIjoxNjU2MzM0NDQ1LCJpYXQiOjE2NTU3Mjk2NDV9.AxzCZqCjxi8tMLePk78O3uGBdV9kRx4DcJoCx03t3bk Issue is when we are invoking the api with object having securities nodes as follows , it go into error : String ticker; SecurityTypeEnum type; OrderTypeEnum orderType; Long quantity; BigDecimal price; BigDecimal triggerPrice; Note: json data we provide as required only - { "intent": "TRANSACTION", "orderConfig": { "type": "SECURITIES", "securities": [ { "ticker": "WSI" } ] } When we remove the fields for price and triggerPrice , it starts working even if we provide just ticker value in json. Please help understand , how api is created so that null values for price and triggerPrice is causing problem to it. IMPACT : this is causing us to create multiple request object just to invoke similar api .
ANSWERED

Do we have API for i> Fund Balance and ii>. chnage default expiry of 5 minutes for fetched transaction Ids

i. I see only Fetch fund Api in smallcase, do we have any api to fund the wallet balance? ii. The fetched transaction is having 5 minutes of default expiry , can it be customised especially for guest user ?
ANSWERED

Getting Invalid `x-gateway-authtoken` header error despite signing JWT with api-secret. Sign the JWT with appropriate secret."

Getting Invalid `x-gateway-authtoken` header error despite signing JWT with api-secret. Sign the JWT with appropriate secret." We are posting request on https://gatewayapi.smallcase.com/gateway/kachow/transaction with headers x-gateway-authtoken and x-gateway-secret and body in json format , but we r getting token exception. Please help us asap. We have just received secret from smallcase.

About Holdings Import V2 response

In the Holdings Import V2 response, will there be cases where "quantity" key value would be less than the "smallcaseQuantity" value?
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.