From b48b8fd039622994ad5b594ab0f5091211a9de32 Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Sun, 2 Feb 2025 00:40:17 +0200 Subject: [PATCH] asytncro windows --- crypto/brian/index.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crypto/brian/index.py b/crypto/brian/index.py index b108685..18b1e10 100644 --- a/crypto/brian/index.py +++ b/crypto/brian/index.py @@ -1,5 +1,9 @@ #!/usr/bin/env python3 +import sys import asyncio +if sys.platform == 'win32': + asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) + import os import time import ccxt.async_support as ccxt