Anybody working on v3 async calls?
This one is working (is_async=False) and getting correct values while printing
fyers = fyersModel.FyersModel(client_id=client_id, is_async=False, token=access_token, log_path=os.getcwd())
async def async_main():
profile = fyers.get_profile()
print(profile)
if __name__ == "__main__":
asyncio.run(async_main())
This one is not working (is_async=True) and not getting correct values while printing
fyers = fyersModel.FyersModel(client_id=client_id, is_async=True, token=access_token, log_path=os.getcwd())
async def async_main():
profile = await fyers.get_profile()
print(profile)
if __name__ == "__main__":
asyncio.run(async_main())
Interesting thing is I am getting error as Β {'s': 'error', 'code': 200, 'message': 'Bad request'}
Code as "200" and message as "Bad request"