FAQs
Explainer: smallcase pending actions
What are pending action in invested smallcase?
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 over 2 years ago
What is `smallcaseAuthId`?
### Explainer on what, when & where of `smallcaseAuthId`
Posted by smallcase Gateway about 2 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 almost 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 over 2 years ago
Why am I getting a market_closed error while placing order?
Posted by Pratik Gadhiya almost 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 over 1 year 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 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 about 2 years ago