FAQs
Explainer: smallcase pending actions
What are pending action in invested smallcase?
Posted by smallcase Gateway over 2 years ago
What is `smallcaseAuthId`?
### Explainer on what, when & where of `smallcaseAuthId`
Posted by smallcase Gateway over 2 years ago
no proper tutorial
Why there is no proper example on internet, so much issue during installation , taken so much time on installation and still unstable some time, can you please provide any proper references ,
Posted by varsha almost 3 years ago
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'
Posted by shatis about 2 years ago
Guest user is not connected even after completing broker login.
Hi, I am initializing the SDK with guest auth token and then perform broker login, but I am still being prompted to login with a broker if I try to execute buy/sell transaction. This does not happen if I provide an auth token created by signing an auth id.
After transaction workflow is completed I am decoding the authtoken I received and storing the authid. My question is whether I have to reinitialize the client sdk with the auth id I received for the guest user to be authenticated properly and prevent any further login prompts.
I tried reinitializing but when I try to trigger any buy/sell workflows, the sdk still prompts me with login to broker page.
Here is my source code:
https://gist.github.com/BhayanakMoth/db06c9963be521b5d40f62c847ce2514
Posted by Nipun Ramani almost 3 years ago
Why am I getting a market_closed error while placing order?
Posted by Pratik Gadhiya about 3 years ago
How to do broker logout for Transactional flows
I am try to do transaction through small case JavaScript SDK .
I am currently using Transactional flows by initializing SDK and then triggering transaction (example: login with zerodha ) for every thing work fine but now on second time I want to use another zerodha account but I can't find any way to logout from previous account.
Posted by Ankit Patel almost 2 years ago
How to veriffy webhook checksu
const smallcaseAuthId = "XXXX"
const timestamp = "2021-12-20T09:20:53.130Z"
const message = timestamp+smallcaseAuthId;
const secret = 'XXXX';
const options = {
algorithm: 'HS256'
};
const secret = API_SECRET;
const checksum = jwt.sign(
message,
secret,
options
);
should i just use raw concatenated string of timestamp and smallcaseAuthId or put it in json as
to generate json webtoken, a sample code will be appreciated
{
message : message
}
Posted by Saurav over 2 years ago
How to cancel a single order?
I want to cancel a pending order. What API can be used for cancellation? Please suggest
Posted by Abhay Braja about 2 years 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 over 2 years ago