Verified Partner

A verified partner can directly pass an etoken in the query params to auto login the user inside quantsapp embedded module. Below are the steps to generate the etoken:

STEP 1 : Get the partner Encryption Salt and name

To get these details, email us at [email protected]

STEP 2: Encrypt user info with the above salt

The user info has to be a json object with the following keys:

Key
Value

email

User's email Id. (eg. "email": "[email protected]")

epoch

Epoch time in string. (eg. "epoch": "1671627013")

country

Country code (eg. "country": "in")

app_type

This has to be set "o" for all cases.

mobile

User's mobile number prefixed with country code. (eg. "mobile": "91-3331112221")

name

User's name. (eg. "name": "Rahul Biswa")

NOTE: The above json object has to be stringified and right justified (256) encoded before encryption.

The above string has to be then encrypted using AES encption with mode ECB and the salt provided.

// SAMPLE REQUEST
{
    "profile": "kTput%2Bo39q%2F5L3vBVUEbUpE6brfqN%2Fav%2BS97wVVBG1KROm636jf2r%2Fkve8FVQRtSkTput%2Bo39q%2F5L3vBVUEbUpE6brfqN%2Fav%2BS97wVVBG1KROm636jf2r%2Fkve8FVQRtSkTput%2Bo39q%2F5L3vBVUEbUjsnfweifwfwif3weJFWSwweSXvLd1yp9mhGEOpBp6dXIp4V3vfblSV5nFxFsFptaUBA6h0f7X1XIEq6kZi2g6W2wFYtY32MkEuVMgCF27mGbyVVXKYUjyNX8XRHVJyqznsvvXWYPkORwNZk8nhcaX%2FpckYFez%2B%2B48F1xHKnSxeNjJLUbVwxa9Ju90%2BMOWHQ%3D%3D"
}

STEP 3: POST request for eToken

URL: https://partners.quantsapp.com/login/:partner_code

Body: The body will contain a JSON object with the following keys:

Key
Value

profile

This will contain the encrypted string from STEP2

POST https://partners.quantsapp.com/login/

Path Parameters

Name
Type
Description

partner_code*

String

This is the partner code given by quantsapp from STEP1

Request Body

Name
Type
Description

profile*

String

This will contain the encrypted string from STEP2

ERROR CODES:

CODE EXAMPLE:

Few Example Urls:

  • https://iframe.quantsapp.com/option-chain/NIFTY?eToken=liuyVGOlf8ohX8tWkgPMdR%2B9gNkSxYM6FZmWE7SixoUmEXKy2KMGFBmQMfy7RsaJQ3jNBcKOo7imUPvyy2btX07aZPD9Q75%2F4yDwtMXL0MMVxLf48EzMhPdF7z6lHzjOrtuUe1jIN0IYYKgm7GICVmjZvsVFOCKzIvqAj7hqSeW%2FBiTCXyM%2FliSiaoiZ%2FX%2BrUkcvr693CgbyNJ24EcQIRWw%3D%3D

  • https://iframe.quantsapp.com/option-gain?eToken=liuyVGOlf8ohX8tWkgPMdR%2B9gNkSxYM6FZmWE7SixoUmEXKy2KMGFBmQMfy7RsaJQ3jNBcKOo7imUPvyy2btX07aZPD9Q75%2F4yDwtMXL0MMVxLf48EzMhPdF7z6lHzjOrtuUe1jIN0IYYKgm7GICVmjZvsVFOCKzIvqAj7hqSeW%2FBiTCXyM%2FliSiaoiZ%2FX%2BrUkcvr693CgbyNJ24EcQIRWw%3D%3D

Last updated