Skip to content

facing issue with OTT session generation #87

@keerthankumar

Description

@keerthankumar

` 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"}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions