ranjanrak / optionchainstream

Live streaming option chain for equity derivatives using Kite connect Websocket based on redis.
MIT License
145 stars 69 forks source link

reuse kite instance #3

Closed singla96 closed 3 years ago

singla96 commented 3 years ago

Is there a way as of now to reuse kite session(created outside this package) instead of passing api_key and generating and new session

ranjanrak commented 3 years ago

@singla96 Maybe you can consider directly assigning access_token from the current active session to KiteTicker and Kite connect instance.

sriraj1122 commented 3 years ago

@ranjanrak Yes we are doing the same. Instead of passing request_token we modified it to accept access_token so that we don't need to generate new session everytime we use this.

ranjanrak commented 3 years ago

@singla96 @sriraj1122 Have added this feature to reuse the previous active session's access_token. You can read more about the usage here. You can upgrade to the latest version by: pip install optionchain_stream --upgrade