ANSWERED

How much does smallcase charge for API Gateway?

How much does smallcase charge for API Gateway?
ANSWERED

What is invalid request

What is invalid request when I login to up stock account
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

Webhook HTTP Method

Hi, what kind of HTTP method will the single stock update webhook take?
ANSWERED

Explainer: smallcase pending actions

What are pending action in invested smallcase?
ANSWERED

Getting error while using virtual token

Hi, we are using virtual tokens for testing. While using virtual tokens some of our teammates are getting invalid errors as follows. ``` We received an invalid token from our servers We are having trouble logging you in. Can you please try again? ``` Below is one of the errors from the console. ``` Refused to execute inline script because it violates the following Content Security Policy directive: "script-src-elem 'self' https://www.googletagmanager.com https://cdn.mxpnl.com https://www.google-analytics.com https://www.googleadservices.com https://pagead2.googlesyndication.com https://googleads.g.doubleclick.net https://chat.fuguchat.com". Either the 'unsafe-inline' keyword, a hash ('sha256-jfNCCJ7jkCc1iQIP8AxiB3XtlnyMnwbLslzSJnPzxi8='), or a nonce ('nonce-...') is required to enable inline execution. ``` Can you help me with this?
ANSWERED

InitGateway Issue in Flutter SDK

Hello Team, I am facing issue while initialising Gateway using ScgatewayFlutterPlugin. I have set Environment config params: (GatewayEnvironment.DEVELOPMENT, {my_gateway}, true, []) that returns with Future {"success": true} Code for initialising Gateway ``` ScgatewayFlutterPlugin.setConfigEnvironment( GatewayEnvironment.DEVELOPMENT, {my_gateway}, true, []).then((value) { String authToken = {my_auth_token}; ScgatewayFlutterPlugin.initGateway(authToken).then((value) { print("Init gateway complete: $value"); }); }); ``` authToken is generated with secret provided, expiresIn time "1d" and {guest: true} using jwt as suggested in documentation. I am getting output as: D/Android_Native_Scgateway( 6338): onFailure: internal_error I/flutter ( 6338): Init response: {"errorCode":2000,"errorMessage":"internal_error"} I/flutter ( 6338): Init gateway complete: {"errorCode":2000,"errorMessage":"internal_error"} Please help me with this asap Thanks
ANSWERED

How to enter into testing mode with single broker?

We are showing a single broker in the smallcase SDK to authenticate with. While showing a single broker, we are unable to enter into the test mode. Is it possible to enter into the test mode with single broker?
ANSWERED

Not getting proper response

as per docs in tiggertransaction promise if I am using expired transactionId then I should get transactionId expired error .... but always I am getting Error occurred during transaction . await SmallcaseGateway.triggerTransaction("TRX_792147332a7444aea91bd89885c33f9c") .then((res) => console.log("res", res)) .catch((err) => console.log("err", err)); Even when I am trying to login and cancel in between then also I just get Error occurred during transaction... not getting error code or any other msg in res...
ANSWERED

Getting error while triggering a transaction

I am getting a `Network Error` while triggering a transaction. The flow is as follows. 1. User login with Smallcase SDK. 2. Got the Smallcase Auth token. 3. User changes the auth token in the cookies and refreshes the page. 4. User clicks on the login button as we already have Smallcase auth token we have initialized the SDK (with the invalid token). 5. The initialization fails, so we have asked the user to log in again. 6. When the user tries to log in we are going `Network Error` at the `triggerTransaction` method of SDK. Moreover, it's not showing any error info except `Network Error`. Can you help us to resolve this issue?