FAQs
What is `smallcaseAuthId`?
### Explainer on what, when & where of `smallcaseAuthId`
Posted by smallcase Gateway 4 months ago
Order Details and Single Stock Update Webhook - Queries
<1> Order Details:
We’re not getting a broker field in the response of order details for a user while in the documentation’s example we’ve the broker field under data.
<2> Smallcase Single Stock Update:
In case of LIMIT order, if the quantity=10 and filledQuantity<10 (for ex. 5, 6 etc.) then what will be status?
Posted by Meet Patel 5 months ago
How much does smallcase charge for API Gateway?
How much does smallcase charge for API Gateway?
Posted by Aditya 5 months ago
What is invalid request
What is invalid request when I login to up stock account
Posted by Om 5 months ago
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) ?
Posted by Meet Patel 5 months ago
Webhook HTTP Method
Hi, what kind of HTTP method will the single stock update webhook take?
Posted by Nipun Ramani 6 months ago
Explainer: smallcase pending actions
What are pending action in invested smallcase?
Posted by smallcase Gateway 6 months ago
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?
Posted by Hafeezul Kareem 6 months ago
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
Posted by Rishabh Sharma 6 months ago
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?
Posted by Hafeezul Kareem 6 months ago