Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

facing issue with OTT session generation #87

Open
keerthankumar opened this issue May 16, 2022 · 1 comment
Open

facing issue with OTT session generation #87

keerthankumar opened this issue May 16, 2022 · 1 comment

Comments

@keerthankumar
Copy link

keerthankumar commented May 16, 2022

` url = 'https://tradeapi.kotaksecurities.com/apim/session/1.0/session/2FA/oneTimeToken'

    data = json.dumps({"userid" : cred_content['user_id']})

    headers = { 
        'accept': 'application/json', 
        'oneTimeToken': ott_val, 
        'consumerKey': cred_content['api_key'], 
        'ip': '127.0.0.1', 
        'appId': cred_content['app_id'], 
        'Content-Type': 'application/json', 
        'Authorization': "Bearer "+cred_content['access_token'], 
    } 

    res = requests.post(url, headers=headers, data=data)`

I get error-
{"fault":{"code":999024,"description":"https://ctradeapi.kotaksecurities.com/","message":"Request can not be processed, please process your request through provided domain"}}

@kalilinux-png
Copy link

are you still facing this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants