We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
How to use custom on_message on neo_api_client.subscribe
on_message
live_data = {} def on_feed(message): global live_data try: print(f"message : {message}") for i in message: live_data[i['ts']] = i['ltp'] except Exception as e: print(f"Error {e}") inst_tokens = [{"instrument_token": "65373", "exchange_segment": "nse_fo"}] def stream(): c.subscribe(instrument_tokens=inst_tokens, on_message=on_feed) Thread(target=stream).start()
@Kotak-Neo Can you add this functionality?
The text was updated successfully, but these errors were encountered:
i use #63
Sorry, something went wrong.
We are soon releasing a new version which will contain the same. Will keep you guys posted :)
@Kotak-Neo When is the new version coming up? the callback function is not working for anyone trying it lately
No branches or pull requests
How to use custom
on_message
on neo_api_client.subscribe@Kotak-Neo Can you add this functionality?
The text was updated successfully, but these errors were encountered: