quantokenizer
quantokenizer
You need to add a t.join() after t.start(). Have a look here: [https://stackoverflow.com/questions/65467329/server-in-a-thread-python3-9-0aiohttp-runtimeerror-cant-register-atexit-a](url)
> Thank you for the suggestion @keivanipchihagh . I tried it out but it seems to be giving me a different error when I try that. > > This is...
I can confirm this is still an issue with margin orders. The remark feature works for stop orders at least.
You don't need the second while True loop. You can put that whole try-except block under `if __name__ == '__main__'` and run it like that.