title: New to Asyncio - I'm trying to implement asyncio with ccxt and i'm getting this error
body: <p>I'm trying to start simple here just so I can get the hang of this stuff. I understand the premise of asyncio but its so confusing trying to use it with ccxt. Is there any recommended resources besides the asyncio documentation that someone can forward me to?</p>
  <pre><code>import time
  import ccxt.async_support as ccxt
  import configpro
  
  exchange = ccxt.coinbasepro({
      'apiKey': configpro.apiKey,
      'secret':configpro.secret,
      'password': configpro.password,
      'enableRateLimit': True})
  
  async def test():
      async with exchange as session:
          print(await session.fetch_ticker('BTC/USD'))
      
      
      
  async def main():
      
  
      print(f&quot;started at {time.strftime('%X')}&quot;)
  
      await test()
  
      print(f&quot;finished at {time.strftime('%X')}&quot;)
      
  asyncio.run(main())
  </code></pre>
  <p>And my error:</p>
  <pre><code>Exception ignored in: &lt;function _ProactorBasePipeTransport.__del__ at 0x000001ED6BE8EDC0&gt;
  Traceback (most recent call last):
    File &quot;C:\Users\micha\AppData\Local\Programs\Python\Python39\lib\asyncio\proactor_events.py&quot;, line 116, in __del__
      self.close()
    File &quot;C:\Users\micha\AppData\Local\Programs\Python\Python39\lib\asyncio\proactor_events.py&quot;, line 108, in close
      self._loop.call_soon(self._call_connection_lost, None)
    File &quot;C:\Users\micha\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py&quot;, line 746, in call_soon
      self._check_closed()
    File &quot;C:\Users\micha\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py&quot;, line 510, in _check_closed
      raise RuntimeError('Event loop is closed')
  RuntimeError: Event loop is closed
  </code></pre>