the-firstock / pyfirstockconnect

The official Python client library for Firstock Connect trading APIs
MIT License
5 stars 3 forks source link

How to reuse the login object once created to run 2 different algos? #18

Open ashishgupta1350 opened 6 months ago

ashishgupta1350 commented 6 months ago

Hi, I am logging into firstock using :

login = thefirstock.firstock_login(
        userId=userId,
        password=password,
        TOTP=str(authkey),
        vendorCode=vendorCode,
        apiKey=apiKey,
    )

login object has susertoken, actid, username and email with status. How can I use this to initiate another login using same token to run another algo? I can't obviously use pickle to save login object. That would be useless.

Is there a way to login into a different algo using same 'susertoken' generated from 1st login to initiate trades into a different algo?